【Flux TensorRT 模型部署踩坑(三)】error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413

模型部署系列

问题描述

将 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

原因以及解决(尚未解决)

  1. 根据博客(https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413),可能是 web server 对大文件
  2. 但本文情况并未使用 nginx 或 Apache
  3. 尝试下载 nginx 并在/etc/nginx/nginx.conf 中加上了 filesclient_max_body_size 53687091200;
  4. 报错仍然存在。。。

折中方案

下载到本地、然后通过 Upload files 手动上传备份😂请添加图片描述

参考

  1. linux服务器上传模型到huggingface
  2. https://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413
  3. https://github.com/gitblit-org/gitblit/issues/461
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值