一键导入
modelscope-lfs-upload
Guide for uploading large files to ModelScope using Git LFS. Use when users need to upload large files, datasets, or models to ModelScope.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for uploading large files to ModelScope using Git LFS. Use when users need to upload large files, datasets, or models to ModelScope.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | modelscope-lfs-upload |
| description | Guide for uploading large files to ModelScope using Git LFS. Use when users need to upload large files, datasets, or models to ModelScope. |
| license | MIT |
This skill provides step-by-step instructions for uploading large files to ModelScope using Git LFS, including specific guidance for the test case provided.
Use this skill when:
For the test case, follow these specific steps:
git lfs install
Use the provided OAuth URL:
git clone https://oauth2:ms-c1b331d2-38ea-47f8-960b-8f3ac78f59ba@www.modelscope.cn/datasets/syliubupt2025/ixi_bupt_mcx_shiyu.git
# Track all large files
git lfs track "*.pt" # For PyTorch models
git lfs track "*.pth" # For PyTorch checkpoints
git lfs track "*.ckpt" # For general checkpoints
git lfs track "*.bin" # For binary files
git lfs track "*.zip" # For compressed files
git lfs track "*.tar.gz" # For compressed archives
# Track entire directories (optional)
git lfs track "data/**" # Track all files in data directory
git lfs track "models/**" # Track all files in models directory
# Add files
git add .
# Commit changes
git commit -m "Add large files"
git push origin main
For the provided test case:
Clone the repository:
git clone https://oauth2:ms-c1b331d2-38ea-47f8-960b-8f3ac78f59ba@www.modelscope.cn/datasets/syliubupt2025/ixi_bupt_mcx_shiyu.git
Navigate to the repository:
cd ixi_bupt_mcx_shiyu
Install Git LFS:
git lfs install
Configure Git LFS tracking for your large files:
git lfs track "*.pt" "*.pth" "*.ckpt" "*.bin" "*.zip" "*.tar.gz"
Add your large files to the repository:
# Copy your large files here
git add .
Commit and push:
git commit -m "Add large files"
git push origin main
If you encounter authentication issues, ensure:
Increase Git buffer size if pushing very large files:
git config http.postBuffer 524288000 # 500MB buffer
Check network connectivity if pushes fail
Verify Git LFS is properly installed
When successful, you'll see output like:
Uploading LFS objects: 100% (3/3), 1.2 GB | 10.5 MB/s, done.
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 8 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (15/15), 2.15 KiB | 2.15 KiB/s, done.
Total 15 (delta 3), reused 0 (delta 0), pack-reused 0
To https://www.modelscope.cn/datasets/syliubupt2025/ixi_bupt_mcx_shiyu.git
1a2b3c4..5d6e7f8 main -> main