huggingface-cli login#or using an environment variablehuggingface-cli login --token$HUGGINGFACE_TOKEN 要创建一个新存储库,请运行以下代码: fromhuggingface_hubimportcreate_repocreate_repo(repo_id="super-cool-model") 上传文件 上传单个文件,请运行以下代码 ...
Name Last commit message Last commit date Latest commit Cannot retrieve latest commit at this time. History 1,611 Commits .github contrib docs i18n src/huggingface_hub tests utils .gitignore .pre-commit-config.yaml CODE_OF_CONDUCT.md CONTRIBUTING.md ...
shell输入: huggingface-cli login 输入第2步生成的token,之后这台机器跑代码就不再需要token了。 登陆成功 6. 创建一个本地hub的目录 mkdir ~/Documents/huggingface_local_hub cd ~/Documents/huggingface_local_hub git init 7. 把本地hub推到远程hub output_dir是本地存放的目录 hub_model_id是远程存放的用...
It's possible to login using OAuth ("Sign in with HF"). This will allow you get an access token to use some of the API, depending on the scopes set inside the Space or the OAuth App. import{oauthLoginUrl,oauthHandleRedirectIfPresent}from"@huggingface/hub";constoauthResult=awaitoauthHandl...
huggingface-cli login # 在提示框中输入刚刚申请的token0x02 hf上创建模型 hf首页右上角头像 → new model,然后创建一个model,比如这里叫example_model. 0x03 本地创建git commit 这里的事情会多一些。我现在已经有了一个checkpoint,然后现在cd到了checkpoint文件夹下面。
The official Python client for the Huggingface Hub. - GitHub - huggingface/huggingface_hub at v0.19.3
src/huggingface_hub commands inference serialization templates utils README.md __init__.py _commit_api.py _commit_scheduler.py _inference_endpoints.py _local_folder.py _login.py _multi_commits.py _snapshot_download.py _space_api.py
huggingface-cli login Switch between tokens and choose the one that will be used for all interactions with the Hub: huggingface-cli auth switch List available access tokens on your machine: huggingface-cli auth list Delete a specific token from your machine with: ...
huggingface-cli login --token $HUGGINGFACE_TOKEN ``` 或者,你可以在笔记本电脑或脚本中使用 [`login`] 来进行程序化登录,请运行以下代码: ```py >>> from huggingface_hub import login >>> from huggingface_hub import login >>> login() ``` Expand All @@ -72,20 +72,20 @@ huggingface-cli...