Downloads · 30 days
15
12% of all-time downloads
Sunbird/Sunflower-32B-W8A8
Sunflower-32B-W8A8 is a text generation model from Sunbird. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is a quantized version of Sunbird/Sunflower-32B using the W8A8 quantization scheme. This model has been optimized for efficient inference while maintaining model quality.
Downloads · 30 days
15
12% of all-time downloads
All-time downloads
121
Public
Parameters
32.8B
34.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors34.3 GB · 100%
How the weights are stored.
I831.2B · 95%
From the Hugging Face model README
This is a quantized version of Sunbird/Sunflower-32B using the W8A8 quantization scheme. This model has been optimized for efficient inference while maintaining model quality.
🌻 Sunflower-32B is a multilingual language model developed by Sunbird AI for Ugandan languages. Built on the Qwen 3-32B architecture, the model supports translation and text generation across 31 Ugandan languages plus English. The model achieves the highest translation accuracy among evaluated models in 24 of 31 language pairs.
Developed by: Sunbird AI
Model type: Causal language model
Languages: 31 Ugandan languages + English (see language codes above)
This quantized model maintains the capabilities of the base 32B parameter model while offering significant improvements in memory usage and inference speed.
First, install the required dependencies:
pip install vllm llmcompressor
from vllm import LLM
from vllm.sampling_params import SamplingParams
# Load the quantized model
model = LLM("Sunbird/Sunflower-32B-W8AB", enforce_eager=True)
# Define sampling parameters
sampling_params = SamplingParams(
temperature=0.7,
top_p=0.9,
max_tokens=1000
)
# Method 1: Using chat template (recommended)
messages = [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Translate to Luganda: Uganda is a landlocked country in East Africa."}
]
# Apply chat template to format the messages
formatted_prompt = model.get_tokenizer().apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
# Generate response
outputs = model.generate([formatted_prompt], sampling_params)
print(outputs[0].outputs[0].text)
# Method 2: Direct text generation
prompt = "Explain the importance of biodiversity:"
outputs = model.generate([prompt], sampling_params)
print(outputs[0].outputs[0].text)
Recommended:
Minimum:
This quantized model provides significant memory savings compared to the original FP16 model:
Fast inference with INT8 tensor cores. The quantized model typically shows:
Note: Actual performance may vary based on hardware, batch size, and sequence length.
This model was quantized using the llmcompressor library from vLLM. Here's how you can reproduce the quantization:
from llmcompressor import oneshot
from llmcompressor.transformers import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
# Quantization recipe for W8A8
recipe =
quant_scheme: W8A8
quant_modifiers:
QuantizationModifier:
scheme: W8A8
oneshot(
model="Sunbird/Sunflower-32B",
recipe=recipe,
output_dir="Sunbird/Sunflower-32B-W8AB",
)
While quantization provides significant benefits in memory and speed, users should be aware of:
Best suited for:
Consider full-precision model for:
If you use this model, please cite both the base model and the quantization work:
BibTeX:
@misc{Sunbird_Sunflower_32B_W8AB,
title={{Sunflower-32B W8AB Quantized Model}},
author={{Sunbird AI}},
year={{2025}},
publisher={{HuggingFace}},
howpublished={{\url{https://huggingface.co/Sunbird/Sunflower-32B-W8AB}}}
}
APA:
Sunbird AI. (2025). Sunflower-32B W8AB Quantized Model. HuggingFace. https://huggingface.co/Sunbird/Sunflower-32B-W8AB
For questions or feedback about this quantized model:
Model card generated on 2025-10-09