You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/models/llama2/README.md
+38-2Lines changed: 38 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,44 @@ This example tries to reuse the Python code, with modifications to make it compa
26
26
27
27
28
28
# Instructions:
29
+
### Setup
29
30
1. Follow the [tutorial](https://pytorch.org/executorch/stable/getting-started-setup) to set up ExecuTorch
30
31
2.`cd examples/third-party/llama`
31
32
3.`pip install -e .`
32
-
4. Go back to `executorch` root, run `python3 -m examples.models.llama2.export_llama`. The exported program, llama2.pte would be saved in current directory using the dummy checkpoint.
33
-
5. Llama2 pretrained parameters can be downloaded [here](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and run with `python3 -m examples.models.llama2.export_llama --checkpoint <checkpoint.pth> --params <params.json>`.
33
+
4. Go back to `executorch` root, run `bash examples/models/llama2/install_requirements.sh`.
34
+
35
+
### Export llama2 models
36
+
2. From `executorch` root, run `python3 -m examples.models.llama2.export_llama`. The exported program, llama2.pte would be saved in current directory using the dummy checkpoint.
37
+
3. Llama2 pretrained parameters can be downloaded [here](https://ai.meta.com/resources/models-and-libraries/llama-downloads/) and run with `python3 -m examples.models.llama2.export_llama --checkpoint <checkpoint.pth> --params <params.json>`.
38
+
39
+
### Export and run stories110M model
40
+
41
+
1. Download `stories110M.pt` and `tokenizer.model` from Github.
0 commit comments