Spaces:
Runtime error
Runtime error
Download model.py from Victorano/Ecommerce-Customer-Support-Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/Victorano/Ecommerce-Customer-Support-Chatbot/resolve/main/model.py
- Command line
-
hf download hf://spaces/Victorano/Ecommerce-Customer-Support-Chatbot/model.py
-
curl -L -o model.py https://huggingface.co/spaces/Victorano/Ecommerce-Customer-Support-Chatbot/resolve/main/model.py
277 Bytes
| from llama_cpp import Llama | |
| import os | |
| model_path = "llama-3.2-1B-it-Ecommerce-ChatBot-merged-F16.gguf" | |
| n_threads = os.cpu_count() | |
| llm = Llama( | |
| model_path=model_path, | |
| n_ctx=512, | |
| n_batch=64, | |
| n_threads=n_threads, | |
| n_gpu_layers=-1, | |
| chat_format="llama-3" | |
| ) | |