模型部署系列
- 【保姆级教程附代码】Pytorch (.pth) 到 TensorRT (.plan) 模型转化全流程
- 【保姆级教程附代码(二)】Pytorch (.pth) 到 TensorRT (.plan) 模型转化全流程细化
- 【官方文档解读】torch.jit.script 的使用,并附上官方文档中的示例代码
- 【CLIP模型从.pt到.onnx】ValueError: Unsupported type for attn_mask: 5 已解决
- 【Flux TensorRT 模型部署踩坑(一)】onnx_export 模型输入乱序,TypeError: takes 3 positional arguments but 4 were given
- 【Flux TensorRT 模型部署踩坑(二)】TypeError: z_(): incompatible function arguments. Invoked with: %329
问题描述
将 Flux 的 onnx 模型上传至 hugging face 上,遇到以下报错
Uploading LFS objects: 100% (3/3), 352 MB | 0 B/s, done.
Enumerating objects: 228, done.
Counting objects: 100% (228/228), done.
Delta compression using up to 48 threads
Compressing objects: 100% (225/225), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (227/227), 7.15 GiB | 4.57 MiB/s, done.
Total 227 (delta 0), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
原因以及解决(尚未解决)
- 根据博客(https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413),可能是 web server 对大文件
- 但本文情况并未使用 nginx 或 Apache
- 尝试下载 nginx 并在/etc/nginx/nginx.conf 中加上了 filesclient_max_body_size 53687091200;
- 报错仍然存在。。。
折中方案
下载到本地、然后通过 Upload files 手动上传备份😂
参考
- linux服务器上传模型到huggingface
- https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413
- https://github.com/gitblit-org/gitblit/issues/461