28 Downloads Updated 1 week ago
ollama run SystemMan/Nova-CodeV3:20B-Q4
ollama launch claude --model SystemMan/Nova-CodeV3:20B-Q4
ollama launch opencode --model SystemMan/Nova-CodeV3:20B-Q4
ollama launch hermes --model SystemMan/Nova-CodeV3:20B-Q4
ollama launch openclaw --model SystemMan/Nova-CodeV3:20B-Q4
🧠 Base model: gpt-oss:20b by OpenAI — Hugging Face · OpenAI announcement
Nova-CodeV3 est un fine-tune de gpt-oss:20b spécialisé en code et
cybersécurité défensive, entraîné par QLoRA sur 31 000 exemples corrigés
(15 500 code + 15 500 cyber). Le raisonnement est inclus dans la perte au
format Harmony (<|channel|>analysis), ce qui donne un modèle qui « pense »
puis répond de façon structurée.
Deux variantes, même entraînement (checkpoint 1200), seule la quantification diffère :
| Tag | Quantification | Taille | Usage |
|---|---|---|---|
20B-Q8 |
Q8_0 | ~22 GB | Qualité maximale |
20B-Q4 |
Q4_K_M | ~15 GB | Compromis vitesse / mémoire |
ollama pull SystemMan/Nova-CodeV3:20B-Q4
ollama pull SystemMan/Nova-CodeV3:20B-Q8
ollama run SystemMan/Nova-CodeV3:20B-Q4
Mode Flash (réponse directe) : "think": false
Mode Thinking (raisonnement visible) : "think": true — recommandé pour
le raisonnement et la cybersécurité.
curl http://localhost:11434/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "SystemMan/Nova-CodeV3:20B-Q4",
"messages": [{"role": "user", "content": "Explique comment prévenir une injection SQL en Python."}],
"think": true,
"max_tokens": 512
}'
Paramètres recommandés : temperature 0–0,3, num_ctx 8192, stop
<|return|>. Le template Harmony natif de gpt-oss est conservé (gestion de
think / reasoning_effort).
<extrait>. »Le modèle répond avec <|channel|>analysis puis <|channel|>final, et
termine par <|return|>.
| Benchmark | base Flash | base Thinking | Nova Flash | Nova Thinking |
|---|---|---|---|---|
| MMLU-Pro | 30 % | 50 % | 40 % | 40 % |
| GPQA Diamond | 10 % | 55 % | 15 % | 50 % |
| CyberMetric | 75 % | 85 % | 80 % | 85 % |
| SecQA | 100 % | 100 % | 100 % | 100 % |
| CTIBench MCQ | 40 % | 65 % | 55 % | 60 % |
| SecEval | 25 % | 75 % | 65 % | 65 % |
| MMLU computer-security | 65 % | 90 % | 85 % | 85 % |
En mode Flash — tout est gagné :
| Benchmark | Delta | Détail |
|---|---|---|
| SecEval | +40 pts | 25 % → 65 % : le gain le plus fort |
| MMLU computer-security | +20 pts | 65 % → 85 % |
| CTIBench MCQ | +15 pts | 40 % → 55 % |
| MMLU-Pro | +10 pts | 30 % → 40 % |
| CyberMetric | +5 pts | 75 % → 80 % |
| GPQA Diamond | +5 pts | 10 % → 15 % |
| SecQA | 0 | déjà à 100 % (plafond) |
En mode Thinking — la cybersécurité tient, le raisonnement pur baisse :
| Benchmark | Delta | Détail |
|---|---|---|
| CyberMetric | 0 | 85 % = 85 % (égalité) |
| SecQA | 0 | 100 % = 100 % (plafond) |
| MMLU-Pro | −10 pts | 50 % → 40 % : perte la plus nette |
| GPQA Diamond | −5 pts | 55 % → 50 % |
| CTIBench MCQ | −5 pts | 65 % → 60 % |
| SecEval | −10 pts | 75 % → 65 % |
| MMLU computer-security | −5 pts | 90 % → 85 % |
Lecture : le fine-tune spécialise le modèle. Le mode Flash bénéficie énormément de l’entraînement (cybersécurité +15 à +40 pts), tandis que le mode Thinking du modèle de base reste meilleur sur le raisonnement général (MMLU-Pro, GPQA). C’est le compromis attendu d’une spécialisation : on gagne en réponse directe sur le domaine cible, on perd un peu de raisonnement « chain-of-thought » hors domaine. Pour un usage cyber, privilégie Flash. Pour un usage général, le base reste compétitif en Thinking.
Fine-tune QLoRA (r=16, alpha=32, 7 modules, seed 3407, thinking inclus dans la perte) réalisé sur GPU L4 (Modal), puis fusion en RAM sur serveur HP G8. Basé sur gpt-oss:20b (OpenAI) et les outils Unsloth.
Nova-CodeV3 is a fine-tune of gpt-oss:20b specialized in code and
defensive cybersecurity, trained with QLoRA on 31,000 corrected examples
(15,500 code + 15,500 cyber). Reasoning is included in the loss using the
Harmony format (<|channel|>analysis), so the model “thinks” then answers in
a structured way.
Two variants, same training (checkpoint 1200), only the quantization differs:
| Tag | Quantization | Size | Use |
|---|---|---|---|
20B-Q8 |
Q8_0 | ~22 GB | Maximum quality |
20B-Q4 |
Q4_K_M | ~15 GB | Speed / memory trade-off |
ollama pull SystemMan/Nova-CodeV3:20B-Q4
ollama pull SystemMan/Nova-CodeV3:20B-Q8
ollama run SystemMan/Nova-CodeV3:20B-Q4
Flash mode (direct answer): "think": false
Thinking mode (visible reasoning): "think": true — recommended for
reasoning and cybersecurity.
curl http://localhost:11434/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "SystemMan/Nova-CodeV3:20B-Q4",
"messages": [{"role": "user", "content": "Explain in 3 points how to prevent SQL injection in Python."}],
"think": true,
"max_tokens": 512
}'
Recommended settings: temperature 0–0.3, num_ctx 8192, stop
<|return|>. The native gpt-oss Harmony template is kept (think /
reasoning_effort handling).
<snippet>.”The model answers with <|channel|>analysis then <|channel|>final, ending
with <|return|>.
| Benchmark | base Flash | base Thinking | Nova Flash | Nova Thinking |
|---|---|---|---|---|
| MMLU-Pro | 30 % | 50 % | 40 % | 40 % |
| GPQA Diamond | 10 % | 55 % | 15 % | 50 % |
| CyberMetric | 75 % | 85 % | 80 % | 85 % |
| SecQA | 100 % | 100 % | 100 % | 100 % |
| CTIBench MCQ | 40 % | 65 % | 55 % | 60 % |
| SecEval | 25 % | 75 % | 65 % | 65 % |
| MMLU computer-security | 65 % | 90 % | 85 % | 85 % |
Flash mode — everything is a gain:
| Benchmark | Delta | Detail |
|---|---|---|
| SecEval | +40 pts | 25 % → 65 %: biggest gain |
| MMLU computer-security | +20 pts | 65 % → 85 % |
| CTIBench MCQ | +15 pts | 40 % → 55 % |
| MMLU-Pro | +10 pts | 30 % → 40 % |
| CyberMetric | +5 pts | 75 % → 80 % |
| GPQA Diamond | +5 pts | 10 % → 15 % |
| SecQA | 0 | already 100 % (ceiling) |
Thinking mode — cybersecurity holds, pure reasoning drops:
| Benchmark | Delta | Detail |
|---|---|---|
| CyberMetric | 0 | 85 % = 85 % (tie) |
| SecQA | 0 | 100 % = 100 % (ceiling) |
| MMLU-Pro | −10 pts | 50 % → 40 %: biggest drop |
| GPQA Diamond | −5 pts | 55 % → 50 % |
| CTIBench MCQ | −5 pts | 65 % → 60 % |
| SecEval | −10 pts | 75 % → 65 % |
| MMLU computer-security | −5 pts | 90 % → 85 % |
Takeaway: the fine-tune specializes the model. Flash benefits hugely from training (cybersecurity +15 to +40 pts), while the base model’s Thinking mode remains better on general reasoning (MMLU-Pro, GPQA). This is the expected trade-off of specialization: you gain direct answers in the target domain, you lose a bit of out-of-domain chain-of-thought reasoning. For cyber use, prefer Flash. For general use, the base stays competitive in Thinking.
QLoRA fine-tune (r=16, alpha=32, 7 modules, seed 3407, reasoning included in the loss) on an L4 GPU (Modal), then merged in RAM on an HP G8 server. Based on gpt-oss:20b (OpenAI) and Unsloth.