Downloads · 30 days
78
8% of all-time downloads
de-coder/UlizaLlama_Q4_K_M-gguf
UlizaLlama_Q4_K_M-gguf is a text generation model from de-coder. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
UlizaLlamaQ4KM-gguf is a 4-bit quantized version of the UlizaLlama model, a 7B parameter language model fine-tuned for Swahili and English. This quantized model offers the same bilingual capabilities as the original U…
Downloads · 30 days
78
8% of all-time downloads
All-time downloads
948
Public
Repo size
4.2 GB
Likes
1
Public
Click a slice to open those files.
.gguf4.2 GB · 100%
From the Hugging Face model README
UlizaLlama_Q4_K_M-gguf is a 4-bit quantized version of the UlizaLlama model, a 7B parameter language model fine-tuned for Swahili and English. This quantized model offers the same bilingual capabilities as the original UlizaLlama but with significantly reduced model size and improved inference speed, making it ideal for deployment in resource-constrained environments.
To use UlizaLlama-QQUF, you'll need a library that supports 4-bit quantized models. We recommend using the bitsandbytes library:
!pip install ctransformers
Here's a simple example of how to load and use de-coder/UlizaLlama_Q4_K_M-gguf
from ctransformers import AutoModelForCausalLM
# Load the model
llm = AutoModelForCausalLM.from_pretrained(
"de-coder/UlizaLlama_Q4_K_M-gguf",
model_file="Q4_K_M.gguf",
lib="avx2" # or "basic" if avx2 isn't supported
)
# Generate text
prompt = "Niambie kuhusu historia ya Kilimanjaro."
print(llm(prompt))
UlizaLlama-QQUF offers substantial improvements in model size and inference speed. However, there might be a slight degradation in performance compared to the full-precision model. We encourage users to benchmark the model on their specific tasks to understand these trade-offs.
If you use UlizaLlama_Q4_K_M-gguf in your work, please cite:
@misc{UlizaLlama_Q4_K_M-gguf,
title={UlizaLlama_Q4_K_M-gguf: A Bilingual Language Model for Swahili and English},
author={Kelvin Githu(de-coder)},
year={2024},
publisher={Kelvin Githu},
howpublished={\url{https://huggingface.co/de-coder/UlizaLlama_Q4_K_M-gguf}},
}