HPC Assistant 8B: a Qwen3-8B HPC and Slurm assistant with thinking
A larger sibling of ClusterPilot-4B. Qwen3-8B was
distilled for HPC and Slurm questions with the same recipe as the 4B release: answers from
Qwen3-235B-A22B-Instruct-2507, with the teacher's top-20 log-probabilities. It can think before it answers.
Thinking is on by default; switch it with the chat template argument enable_thinking.
- With thinking on it scores 0.912, against 0.861 for ClusterPilot-4B 1.3 on the same three test sets. With thinking off it is level with the 4B (0.866).
- Fewer wrong answers on 184 European cluster questions with real tool calls: 23 (thinking on) and 27 (thinking off), against 36 for the 4B.
- Files: bf16 weights (16.4 GB) and two GGUF files for llama.cpp: Q4_K_M (5.0 GB) and Q8_0 (8.7 GB).
- Not tested for this model: tool calling and agent mode. The GGUF files load and answered a test prompt correctly, but they were not scored; all numbers below are for the full bf16 weights.
Quickstart
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "VaibhavKKM/hpc-assistant-qwen3-8b"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "Write a Slurm script that runs 100 array tasks, at most 10 at a time."}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, enable_thinking=True, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(ids, max_new_tokens=4096)[0][ids.shape[1]:], skip_special_tokens=True))
GGUF with llama.cpp:
hf download VaibhavKKM/hpc-assistant-qwen3-8b gguf/8b-Q4_K_M.gguf --local-dir hpc-8b
llama-server -m hpc-8b/gguf/8b-Q4_K_M.gguf -c 16384
Like the 4B, the model is best with the documentation excerpts that the ClusterPilot app puts into each question. Without them it still does not know site facts (partitions, limits, storage) reliably.
Results
Three test sets: Slurm dev (66 questions), Slurm (200) and GPU/MPI (106 GPU, MPI and performance questions). The main score is the mean of the three. Every answer uses the app's default documentation search.
| Model | Run 1 | Run 2 | Mean of both runs |
|---|---|---|---|
| This model, thinking on (default) | 0.9091 | 0.9157 | 0.9124 |
| This model, thinking on, extended search | 0.9197 | 0.9127 | 0.9162 |
| This model, thinking off | 0.8746 | 0.8577 | 0.8662 |
| ClusterPilot-4B 1.3 (no thinking) | 0.8665 | 0.8558 | 0.8612 |
"Extended search" is an app setting that also searches a general HPC documentation index for questions that are not about Slurm. It is not part of these weights, and that index is not distributed. Overall it is not clearly better (the gap is within the noise), though GPU/MPI rose from a mean of 0.840 to 0.857.
Checks closer to real use (files in product_checks/):
- 184 questions about European clusters, answered with real tool calls and reviewed by Qwen3-235B (one run, one reviewer): wrong answers 36 for ClusterPilot-4B 1.3, 27 for this model with thinking off, 23 with thinking on.
- 25 real Leonardo cases written by our mentor, key points covered out of 50, in the app: 4B 31, this model 34 (thinking off) and 35 (thinking on). The same 4B answers scored 31 to 34 across runs. Without the app's documentation this model reached 23 of 50, so it still relies on the app for site facts.
How to read the scores
Each score is a win rate, not an accuracy. Three judge models (gpt-oss-20b, Gemma 4 26B, Qwen3-235B) compare the answer with the answer of base Qwen3-4B without documents, in both orders, and the majority decides; a tie counts one half. So 0.50 means as good as base Qwen3-4B, and 1.00 means always better. The thinking part is removed before judging, and a reply whose thinking never finishes counts as no answer. Two runs of the same weights differ by about 0.01 (the 4B release scored 0.8665 and 0.8558), so small gaps mean little.
The thinking-off result was fixed in advance as the main result. The other rows are extra candidates, so the best of them is a best-of-several figure.
Limitations
- With thinking on, 2 of the 184 European questions and 2 of the 25 mentor cases (without documents) held no answer.
- In training, prompts over 10,000 tokens were cut at the start (46 of 136,452 sequences), and over-long thinking answers were skipped.
- The training prompts hold a few traces of a cluster family that is held out from testing (Aalto, about 3 per 30,000 sampled), as the 4B data does.
- Tool calling, agent mode and the app's test suites were not re-run for this model.
What else we tried
None of these replaced the published weights:
- A thinking stage trained on answers from Qwen3.5-397B (FP8), final text only: 0.8284.
- More training rounds on top of these weights: 0.9109 (0.8982 on a repeat), 0.8841, 0.9084.
- A weight average of several versions: 0.8890.
- Learning rate 1e-5 on the union of the training sets: 0.8961; on all teacher sets: 0.8165 (41 of 372 replies never finished thinking, against 1 for these weights); the union plus a set aimed at job requeue questions: 0.9036.
- Another documentation search setting on these weights: 0.9182 and 0.9029.
- New facts, with the model's own thinking replayed: 0.9110 in one run. That is level with these weights, so they stayed, and those weights were not uploaded.
The run names are the folder names of the training pipeline in training/. The published weights are run e8_all;
_on and _off mean thinking on and off, 2 a repeat run, f and c a different documentation search setting.
Columns: mean, then the three test sets (v2 = Slurm dev, v3 = Slurm, d1 = GPU/MPI), then replies with no answer and
replies that hit the token limit.
| Run | Mean | Slurm dev (v2) | Slurm (v3) | GPU/MPI (d1) | No answer | Hit limit |
|---|---|---|---|---|---|---|
| kdall | 0.8665 | 0.8902 | 0.9264 | 0.7830 | 0 | 2 |
| kdall6 | 0.8742 | 0.8826 | 0.9264 | 0.8137 | 0 | 2 |
| e8_ctrl13 | 0.8558 | 0.8636 | 0.9349 | 0.7689 | 0 | 4 |
| e8_van_off | 0.6600 | 0.6856 | 0.7072 | 0.5873 | 0 | 0 |
| e8_van_on | 0.7452 | 0.7727 | 0.7860 | 0.6769 | 6 | 6 |
| tc_t235think | 0.8443 | 0.8788 | 0.8545 | 0.7995 | 19 | 19 |
| tc_397on | 0.8737 | 0.8788 | 0.9332 | 0.8090 | 2 | 2 |
| e8_k1 | 0.8147 | 0.8144 | 0.8938 | 0.7358 | 0 | 4 |
| e8_all (published, thinking off) | 0.8746 | 0.8788 | 0.9384 | 0.8066 | 0 | 3 |
| e8_all_on (published, thinking on) | 0.9091 | 0.9242 | 0.9589 | 0.8443 | 1 | 1 |
| e8_both_on | 0.8284 | 0.8712 | 0.9041 | 0.7099 | 3 | 3 |
| e8_both_off | 0.8663 | 0.8712 | 0.9589 | 0.7689 | 0 | 1 |
| e8_x1_on | 0.9109 | 0.9583 | 0.9418 | 0.8325 | 3 | 3 |
| e8_x2_on | 0.8841 | 0.8788 | 0.9315 | 0.8420 | 0 | 1 |
| e8_x3_on | 0.9084 | 0.9356 | 0.9452 | 0.8443 | 0 | 0 |
| e8_all_on2 | 0.9157 | 0.9583 | 0.9538 | 0.8349 | 1 | 2 |
| e8_x1_on2 | 0.8982 | 0.8977 | 0.9572 | 0.8396 | 0 | 0 |
| e8_all_off2 | 0.8577 | 0.8409 | 0.9349 | 0.7972 | 0 | 2 |
| e8_soup_on | 0.8890 | 0.9167 | 0.9247 | 0.8255 | 1 | 0 |
| e8_f_on | 0.9197 | 0.9545 | 0.9555 | 0.8491 | 0 | 0 |
| e8_soup_f_on | 0.8958 | 0.9091 | 0.9435 | 0.8349 | 2 | 3 |
| e8_f_on2 | 0.9127 | 0.9394 | 0.9332 | 0.8656 | 0 | 0 |
| e8_c_on | 0.9182 | 0.9394 | 0.9521 | 0.8632 | 0 | 1 |
| e9_a_on | 0.8961 | 0.9167 | 0.9366 | 0.8349 | 2 | 0 |
| e9_b_on | 0.8165 | 0.8220 | 0.9058 | 0.7217 | 41 | 0 |
| e8_c_on2 | 0.9029 | 0.9242 | 0.9401 | 0.8443 | 0 | 0 |
| e9_6_on | 0.9036 | 0.9242 | 0.9589 | 0.8278 | 3 | 2 |
| e9_p_on | 0.9110 | 0.9432 | 0.9503 | 0.8396 | 1 | 1 |
kdall and e8_ctrl13 are ClusterPilot-4B 1.3 runs, kept for comparison. e8_both added a thinking stage trained
on Qwen3.5-397B FP8 answers (final text only, no log-probabilities).
Training data and licence
The model was trained on the same teacher answers as ClusterPilot-4B. The training questions come from European AI Factory and EuroHPC documentation, Slurm documentation, HPC course material and example repositories, under licences that include CC-BY-4.0, CC-BY-NC-SA-4.0, MIT, Apache-2.0 and GPL. Like the 4B, the model is therefore released for non-commercial use under CC-BY-NC-SA-4.0. The base model, Qwen3-8B, is Apache-2.0. The 92,768 pairs from permissively licensed sources are published as VaibhavKKM/hpc-assistant-qa.
Files
model.safetensors,config.json, tokenizer files,chat_template.jinja: the bf16 model.gguf/:8b-Q4_K_M.gguf(5.0 GB) and8b-Q8_0.gguf(8.7 GB) for llama.cpp.KD_TRAIN.json: the training settings of the last stage.training/: the pipeline.RESULTS.md,product_checks/: the results behind the tables.