Spaces:
Runtime error
Runtime error
File size: 359 Bytes
e2bb63f d85d507 e2bb63f d85d507 0296cd8 d85d507 |
1 2 3 4 5 6 7 8 9 |
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") |