Run this model with HF Jobs

Run prism-ml/Ternary-Bonsai-27B-AWQ-4bit 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/prism-ml/Ternary-Bonsai-27B-AWQ-4bit. 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/prism-ml/Ternary-Bonsai-27B-AWQ-4bit 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/prism-ml/Ternary-Bonsai-27B-AWQ-4bit. 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.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/prism-ml/Ternary-Bonsai-27B-AWQ-4bit. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Ternary-Bonsai-27B โ€” AWQ 4-bit

Serve (sglang)

pip install sglang

python -m sglang.launch_server \
    --model prism-ml/Ternary-Bonsai-27B-AWQ-4bit \
    --port 8000 \
    --dtype bfloat16

Use

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"prism-ml/Ternary-Bonsai-27B-AWQ-4bit","messages":[{"role":"user","content":"Who are you?"}],"max_tokens":100}'

Multi-GPU (8ร— H100)

# TP=2 DP=4 โ€” 4 replicas, each split across 2 GPUs (throughput sweet spot)
python -m sglang.launch_server \
    --model prism-ml/Ternary-Bonsai-27B-AWQ-4bit \
    --tp-size 2 --dp-size 4 \
    --load-balance-method total_tokens \
    --port 8000 --dtype bfloat16

# TP=2 โ€” single replica split across 2 GPUs
python -m sglang.launch_server \
    --model prism-ml/Ternary-Bonsai-27B-AWQ-4bit \
    --tp-size 2 \
    --port 8000 --dtype bfloat16
Downloads last month
195
Safetensors
Model size
27B params
Tensor type
BF16
ยท
I32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including prism-ml/Ternary-Bonsai-27B-AWQ-4bit