티스토리 뷰
반응형
Getting started with our git and git-lfs interface
If you need to create a repo from the command line (skip if you created a repo from the website)
$pip install huggingface_hub
#You already have it if you installed transformers or datasets
$huggingface-cli login
#Log in using a token from huggingface.co/settings/tokens
#Create a model or dataset repo from the CLI if needed
$huggingface-cli repo create repo_name --type {model, dataset, space}
Clone your model or dataset locally
#Make sure you have git-lfs installed
#(https://git-lfs.github.com)
$git lfs install
$git clone https://huggingface.co/username/repo_name
Then add, commit and push any file you want, including larges files
# save files via `.save_pretrained()` or move them here
$git add .
$git commit -m "commit from $USER"
$git push
In most cases, if you're using one of the compatible libraries, your repo will then be accessible from code, through its identifier: username/repo_name
For example for a transformers model, anyone can load it with:
tokenizer = AutoTokenizer.from_pretrained("username/repo_name")
model = AutoModel.from_pretrained("username/repo_name")
반응형
'etc' 카테고리의 다른 글
Azure 서비스 목록 (0) | 2024.03.16 |
---|---|
db eda tool (0) | 2023.12.24 |
Kubenetes reference (0) | 2023.06.09 |
Flight Phase (0) | 2023.05.29 |
jvm setting flag 의미 (0) | 2023.03.09 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- pytorch
- LeetCode
- tag hello
- mongodb
- Shell
- geometry
- quiz
- extract archive multiple files
- nvidia #gan
- 자바
- Neo4j
- LECTURE
- 통계
- 기본
- ML
- 파이썬
- MachineLearning
- amazon
- Paper
- linkedin-skill-assessments-quizzes
- 알고리즘
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
글 보관함