Views
No views yet
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|---|---|---|---|---|---|
| yuj-v1.Q4_K_M.gguf | Q4_K_M | 4 | 4.17 GB | 6.87 GB | medium, balanced quality - recommended |
!pip install llama-cpp-python huggingface-hub!huggingface-cli download shuvom/yuj-v1-GGUF yuj-v1.Q4_K_M.gguf --local-dir . --local-dir-use-symlinks False1from llama_cpp import Llama
2
3llm = Llama(
4 model_path="./yuj-v1.Q4_K_M.gguf", # Download the model file first
5 n_ctx=2048, # The max sequence length to use - note that longer sequence lengths require much more resources
6 n_threads=8, # The number of CPU threads to use, tailor to your system and the resulting performance
7 n_gpu_layers=35 # The number of layers to offload to GPU, if you have GPU acceleration available
8)1llm = Llama(model_path="/content/yuj-v1.Q4_K_M.gguf", chat_format="llama-2") # Set chat_format according to the model you are using
2llm.create_chat_completion(
3 messages = [
4 {"role": "system", "content": "You are a story writing assistant."},
5 {
6 "role": "user",
7 "content": "युज शीर्ष द्विभाषी मॉडल में से एक है"
8 }
9 ]
10)