Skip to content

修复同步超时的问题 #13

@kebe7jun

Description

@kebe7jun

同步出错:

Successfully installed InquirerPy-0.3.4 aiohappyeyeballs-2.6.1 aiohttp-3.12.15 aiosignal-1.4.0 filelock-3.18.0 frozenlist-1.7.0 fsspec-2025.7.0 hf-xet-1.1.7 huggingface_hub-0.34.4 multidict-6.6.3 pfzy-0.3.4 prompt-toolkit-3.0.51 propcache-0.3.2 qiniu-7.17.0 tqdm-4.67.1 wcwidth-0.2.13 yarl-1.20.1
Uploading stream to models/openai/gpt-oss-120b/.gitattributes
Uploading stream to models/openai/gpt-oss-120b/LICENSE
Uploading stream to models/openai/gpt-oss-120b/README.md
Uploading stream to models/openai/gpt-oss-120b/USAGE_POLICY
Uploading stream to models/openai/gpt-oss-120b/chat_template.jinja
Uploading stream to models/openai/gpt-oss-120b/config.json
Uploading stream to models/openai/gpt-oss-120b/generation_config.json
Uploading stream to models/openai/gpt-oss-120b/metal/model.bin
Traceback (most recent call last):
  File "/home/runner/work/baize-ai-download/baize-ai-download/sync.py", line 161, in <module>
    upload_hf_repo(
  File "/home/runner/work/baize-ai-download/baize-ai-download/sync.py", line 132, in upload_hf_repo
    upload_stream(q, bucket_name, f, remote_path, file_name, item.size)
  File "/home/runner/work/baize-ai-download/baize-ai-download/sync.py", line 83, in upload_stream
    raise RuntimeError(resp)
RuntimeError: _ResponseInfo__response:None, exception:HTTPConnectionPool(host='up.qiniup.com', port=80): Max retries exceeded with url: /buckets/baize-ai/objects/bW9kZWxzL29wZW5haS9ncHQtb3NzLTEyMGIvbWV0YWwvbW9kZWwuYmlu/uploads/68998b4081a5f26f1f828f55region02z0/1 (Caused by ProtocolError('Connection aborted.', TimeoutError('timed out'))), url:None, status_code:-1, text_body:None, req_id:None, x_log:None, error:HTTPConnectionPool(host='up.qiniup.com', port=80): Max retries exceeded with url: /buckets/baize-ai/objects/bW9kZWxzL29wZW5haS9ncHQtb3NzLTEyMGIvbWV0YWwvbW9kZWwuYmlu/uploads/68998b4081a5f26f1f828f55region02z0/1 (Caused by ProtocolError('Connection aborted.', TimeoutError('timed out')))

有办法修复这个问题吗,put_stream_v2 并没有提供超时参数,能修改 HTTPConnectionPool 的吗?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions