Skip to content

Commit 45cf00d

Browse files
author
Ubuntu
committed
Removed commented code and updated model_dir
1 parent bc0c4d8 commit 45cf00d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

recipes/quickstart/Running_Llama2_Anywhere/Running_Llama_on_HF_transformers.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,11 @@
248248
"import transformers\n",
249249
"from transformers import AutoModelForCausalLM, AutoTokenizer\n",
250250
"\n",
251-
"\n",
252-
"model_dir = \"/home/ubuntu/release/Meta-Llama-3-8B-Instruct-HF\"\n",
251+
"model_dir = \"${path_the_converted_hf_model}\"\n",
253252
"model = AutoModelForCausalLM.from_pretrained(\n",
254253
" model_dir,\n",
255254
" device_map=\"auto\",\n",
256255
" )\n",
257-
"# model = LlamaForCausalLM.from_pretrained(model_dir)\n",
258256
"tokenizer = AutoTokenizer.from_pretrained(model_dir)\n"
259257
]
260258
},

0 commit comments

Comments
 (0)