Downloads · 30 days
10
18% of all-time downloads
KovaAILabs/Primus
Primus is a machine learning model from KovaAILabs. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A coding model that fixes what developers actually complain about.
Downloads · 30 days
10
18% of all-time downloads
All-time downloads
55
Public
Parameters
299B
598 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors598 GB · 100%
How the weights are stored.
BF16299B · 100%
From the Hugging Face model README
A coding model that fixes what developers actually complain about.
Primus is a 295B-parameter coding model fine-tuned using the APEX method stack. Unlike frontier models optimized for benchmark scores, Primus is optimized for the five complaints developers have about AI coding assistants:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"kovacreations/primus",
trust_remote_code=True,
device_map="auto",
torch_dtype="bfloat16"
)
tok = AutoTokenizer.from_pretrained("kovacreations/primus", trust_remote_code=True)
messages = [
{"role": "system", "content": "You are Primus, a coding assistant. Write clean, minimal code."},
{"role": "user", "content": "Fix the null pointer in auth.py"}
]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=2048)
print(tok.decode(out[0], skip_special_tokens=True))
Pre-registered 15-axis scorecard with all results published (wins and losses):
See PRIMUS_PAPER.md for the full method description, training details,
Apache 2.0. Decontaminated training data. All losses published.
Primus: first, do no harm to the codebase.