GithubHelp home page GithubHelp logo

huggingface's Introduction

huggingface 的上传文件流程

python -m pip install huggingface_hub
# 登录 使用token
huggingface-cli login

如果之前登录过了,直接运行这个代码就能登录成功。

huggingface-cli whoami
# 输入token 请注意是read还是write

安装git-lfs

git lfs install

如果文件大于5GB,需要执行下面的代码

huggingface-cli lfs-enable-largefiles .

将创建好的仓库,clone到本地

git clone https://huggingface.co/<your-username>/<your-model-name>
cd <your-model-name>
git lfs install
git lfs track * # 追踪所有要上传的大文件
git add .gitattributes # 添加先上传的属性文件
git  commit -m "Add attributes"  # 添加属性文件上传的说明
git push  # 上传属性文件
git add * # 添加要上传的大文件,*表示路径下的所有文件
git commit -m "git LFS commit" # 添加大文件上传的说明
git push  # 上传文件


# 测试"# huggingface" 

huggingface's People

Contributors

dhaizei avatar

Watchers

 avatar

huggingface's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.