Spaces:
Runtime error
Runtime error
Download app.py from zac/llama-cpp-python-test2: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/zac/llama-cpp-python-test2/resolve/main/app.py
- Command line
-
hf download hf://spaces/zac/llama-cpp-python-test2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/zac/llama-cpp-python-test2/resolve/main/app.py
359 Bytes
| from llama_cpp import llama | |
| from huggingface_hub import hf_hub_download #load from huggingfaces | |
| print("loading . . .") | |
| llm = llama(model_path= hf_hub_download(repo_id="TheBloke/Vigogne-2-7B-Instruct-GGML", filename="vigogne-2-7b-instruct.ggmlv3.q4_1.bin"), n_ctx=2048) #download model from hf/ n_ctx=2048 for high ccontext length | |
| print("model is loaded") |