使用GIT BASH,CD到本地想要建立仓库的地方。
使用Git Bash,CD到本地想要建立Git仓库的目录。在https://huggingface.co/中用自己的账号上传一个模型。以下步骤是public资源的上传方式,private资源需要在git clone命令中加入[username]:[password]@,注意是@,我之前误看成/后白花了不少时间。
git clone https://huggingface.co/dragonStyle/bert-303-step35000
执行完后会新建一个仓库目录。
cd bert-303-step35000(CD到这个仓库目录里)
git add .
下面的报警暂时不知道是否会产生什么影响。
warning: LF will be replaced by CRLF in config.json.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in train_results.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in trainer_state.json.
The file will ha
本文介绍了如何使用Git Bash在本地创建仓库,并通过Huggingface平台上传和管理模型。详细步骤包括克隆公共仓库、提交更改以及处理大文件的上传策略。注意,对于大文件,建议先上传小文件,再单独处理大文件,以确保操作成功。
订阅专栏 解锁全文
6335

被折叠的 条评论
为什么被折叠?



