Run this model with HF Jobs

Run hassanshka/Biomni-R0-32B-AWQ-INT4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/hassanshka/Biomni-R0-32B-AWQ-INT4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/hassanshka/Biomni-R0-32B-AWQ-INT4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/hassanshka/Biomni-R0-32B-AWQ-INT4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Biomni-R0-32B-AWQ-INT4

This is an AWQ INT4 quantized version of Biomni-R0-32B-Preview.

Quantization Details

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

Usage

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]))

Quantization Script

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),
)

Performance

  • Memory Reduction: ~75% compared to BF16
  • Inference Speed: Optimized for consumer GPUs (RTX 3090/4090)
  • Accuracy: Minimal degradation due to custom calibration on biomedical data

License

Apache 2.0 (same as base model)

Citation

If you use this model, please cite the original Biomni model.

Downloads last month
11
Safetensors
Model size
6B params
Tensor type
F32
路
I64
路
I32
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for hassanshka/Biomni-R0-32B-AWQ-INT4

Base model

Qwen/Qwen3-32B
Quantized
(6)
this model