-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Llama3 changes #793
Llama3 changes #793
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/793
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit ff63068 with merge base 83785f9 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
docs/source/api_ref_models.rst
Outdated
|
||
.. code-block:: bash | ||
|
||
tune download meta-llama/Llama-3-8b-hf --hf-token <ACCESS_TOKEN> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to update this
docs/source/tutorials/llama3.rst
Outdated
|
||
.. code-block:: bash | ||
|
||
tune download meta-llama/Llama-3-8b-hf \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update
recipes/configs/llama3/8B_full.yaml
Outdated
# Tokenizer | ||
tokenizer: | ||
_component_: torchtune.models.llama3.llama3_tokenizer | ||
path: /tmp/Llama-3-8b-hf/tokenizer.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path: /tmp/Llama-3-8b-hf/tokenizer.model | |
path: /tmp/Meta-Llama-3-8B/original/tokenizer.model |
checkpointer: | ||
_component_: torchtune.utils.FullModelHFCheckpointer | ||
checkpoint_dir: /tmp/Llama-3-8b-hf/ | ||
checkpoint_files: [ | ||
pytorch_model-00001-of-00003.bin, | ||
pytorch_model-00002-of-00003.bin, | ||
pytorch_model-00003-of-00003.bin, | ||
] | ||
recipe_checkpoint: null | ||
output_dir: /tmp/Llama-3-8b-hf/ | ||
model_type: LLAMA3 | ||
resume_from_checkpoint: False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this:
checkpointer:
_component_: torchtune.utils.FullModelMetaCheckpointer
checkpoint_dir: /tmp/Meta-Llama-3-8B
checkpoint_files: [
consolidated.00.pth
]
recipe_checkpoint: null
output_dir: /tmp/Meta-Llama-3-8B
model_type: LLAMA3
resume_from_checkpoint: False
docs/source/tutorials/llama3.rst
Outdated
.. code-block:: yaml | ||
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelHFCheckpointer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_component_: torchtune.utils.FullModelHFCheckpointer | |
_component_: torchtune.utils.FullModelMetaCheckpointer |
recipes/configs/llama3/8B_full.yaml
Outdated
# Tokenizer | ||
tokenizer: | ||
_component_: torchtune.models.llama3.llama3_tokenizer | ||
path: /tmp/Llama-3-8b-hf/original/tokenizer.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path: /tmp/Llama-3-8b-hf/original/tokenizer.model | |
path: /tmp/Meta-Llama-3-8B/original/tokenizer.model |
recipes/configs/llama3/8B_full.yaml
Outdated
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelMetaCheckpointer | ||
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ | |
checkpoint_dir: /tmp/Meta-Llama-3-8B/original/ |
recipes/configs/llama3/8B_full.yaml
Outdated
consolidated.00.pth | ||
] | ||
recipe_checkpoint: null | ||
output_dir: /tmp/Llama-3-8b-hf/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output_dir: /tmp/Llama-3-8b-hf/ | |
output_dir: /tmp/Meta-Llama-3-8B |
# Tokenizer | ||
tokenizer: | ||
_component_: torchtune.models.llama3.llama3_tokenizer | ||
path: /tmp/Llama-3-8b-hf/original/tokenizer.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path: /tmp/Llama-3-8b-hf/original/tokenizer.model | |
path: /tmp/Meta-Llama-3-8B/original/tokenizer.model |
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelMetaCheckpointer | ||
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ | |
checkpoint_dir: /tmp/Meta-Llama-3-8B/original/ |
consolidated.00.pth | ||
] | ||
recipe_checkpoint: null | ||
output_dir: /tmp/Llama-3-8b-hf/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output_dir: /tmp/Llama-3-8b-hf/ | |
output_dir: /tmp/Meta-Llama-3-8B |
recipes/configs/llama3/8B_lora.yaml
Outdated
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelMetaCheckpointer | ||
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ | |
checkpoint_dir: /tmp/Meta-Llama-3-8B/original/ |
recipes/configs/llama3/8B_lora.yaml
Outdated
consolidated.00.pth | ||
] | ||
recipe_checkpoint: null | ||
output_dir: /tmp/Llama-3-8b-hf/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
output_dir: /tmp/Llama-3-8b-hf/ | |
output_dir: /tmp/Meta-Llama-3-8B |
# Tokenizer | ||
tokenizer: | ||
_component_: torchtune.models.llama3.llama3_tokenizer | ||
path: /tmp/Llama-3-8b-hf/original/tokenizer.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path: /tmp/Llama-3-8b-hf/original/tokenizer.model | |
path: /tmp/Meta-Llama-3-8B/original/tokenizer.model |
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelMetaCheckpointer | ||
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ | |
checkpoint_dir: /tmp/Meta-Llama-3-8B/original/ |
# Tokenizer | ||
tokenizer: | ||
_component_: torchtune.models.llama3.llama3_tokenizer | ||
path: /tmp/Llama-3-8b-hf/original/tokenizer.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path: /tmp/Llama-3-8b-hf/original/tokenizer.model | |
path: /tmp/Meta-Llama-3-8B/original/tokenizer.model |
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelMetaCheckpointer | ||
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checkpoint_dir: /tmp/Llama-3-8b-hf/original/ | |
checkpoint_dir: /tmp/Meta-Llama-3-8B/original/ |
docs/source/tutorials/llama3.rst
Outdated
.. code-block:: yaml | ||
|
||
checkpointer: | ||
_component_: torchtune.utils.FullModelHFCheckpointer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_component_: torchtune.utils.FullModelHFCheckpointer | |
_component_: torchtune.utils.FullModelMetaCheckpointer |
--------------------------- | ||
|
||
First, let's download the model from Hugging Face. You will need to follow the instructions | ||
on the `official Meta page <https://github.com/meta-llama/llama3/blob/main/README.md>`_ to gain access to the model. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to HF page for access? Much easier and straightforward.
No description provided.