Downloads · 30 days
17
4% of all-time downloads
hassanshka/Biomni-R0-32B-AWQ-INT4
Biomni-R0-32B-AWQ-INT4 is a text generation model from hassanshka. 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 an AWQ INT4 quantized version of Biomni-R0-32B-Preview.
Downloads · 30 days
17
4% of all-time downloads
All-time downloads
386
Public
Parameters
5.7B
22.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors22.8 GB · 100%
How the weights are stored.
I3231.2B · 95%
From the Hugging Face model README
This is an AWQ INT4 quantized version of Biomni-R0-32B-Preview.
| Parameter | Value |
|---|---|
| Scheme | W4A16 (4-bit weights, 16-bit activations) |
| Method | AWQ (Activation-aware Weight Quantization) |
| Group Size | 128 |
| Calibration | Custom biomedical dataset |
| Framework | LLM Compressor |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"hassanshka/Biomni-R0-32B-AWQ-INT4",
device_map="auto",
torch_dtype="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("hassanshka/Biomni-R0-32B-AWQ-INT4")
# Inference
messages = [{"role": "user", "content": "Your medical question here"}]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0]))
from llmcompressor.modifiers.awq import AWQModifier
from llmcompressor import oneshot
recipe = AWQModifier(
scheme="W4A16",
targets="Linear",
ignore=["lm_head"],
)
oneshot(
model=model,
dataset=calibration_data,
recipe=recipe,
max_seq_length=2048,
num_calibration_samples=len(calibration_data),
)
Apache 2.0 (same as base model)
If you use this model, please cite the original Biomni model.