Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lm-hackers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,15 @@
}
],
"source": [
"llm = Llama(model_path=\"/home/jhoward/git/llamacpp/llama-2-7b-chat.Q4_K_M.gguf\")"
"# Download model from HF hub\n",
"from huggingface_hub import hf_hub_download; \n",
"downloaded_model_path = hf_hub_download(repo_id='TheBloke/Llama-2-7b-Chat-GGUF',\n",
" filename='llama-2-7b-chat.Q4_K_M.gguf',\n",
" use_auth_token=True\n",
" )\n",
"\n",
"# Create model\n",
"llm = Llama(model_path=downloaded_model_path)"
]
},
{
Expand Down