Skip to content

Commit

Permalink
Add changes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
fduwjj committed Jul 30, 2024
1 parent 97b2de7 commit 6a862ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ Once you have confirmed access, you can run the following command to download th
```bash
# Get your HF token from https://huggingface.co/settings/tokens

# llama3.1 tokenizer.model
python torchtitan/datasets/download_tokenizer.py --repo_id meta-llama/Meta-Llama-3.1-8B --tokenizer_path "original" --hf_token=...

# llama3 tokenizer.model
python torchtitan/datasets/download_tokenizer.py --repo_id meta-llama/Meta-Llama-3-8B --tokenizer_path "original" --hf_token=...
# llama3 or 3.1 tokenizer.model
python torchtitan/datasets/download_tokenizer.py --repo_id meta-llama/Meta-Llama-3-8B --local_dir "torchtitan/datasets/tokenizer/" --tokenizer_path "original" --hf_token=...

# llama2 tokenizer.model
python torchtitan/datasets/download_tokenizer.py --repo_id meta-llama/Llama-2-13b-hf --hf_token=...
Expand Down
4 changes: 2 additions & 2 deletions torchtitan/datasets/download_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def hf_download(

try:
hf_hub_download(
repo_id,
tokenizer_path,
repo_id=repo_id,
filename=tokenizer_path,
local_dir=local_dir,
local_dir_use_symlinks=False,
token=hf_token,
Expand Down

0 comments on commit 6a862ee

Please sign in to comment.