fs2d-assistant:qwen3.5-4b
A 4B fine-tune of Qwen/Qwen3.5-4B for the assistant in the
FrictionSim2D GUI, which sets up LAMMPS friction simulations of 2D
materials. It calls the GUI's tools (set up AFM and sheet-on-sheet runs and parameter
sweeps, find structures and potentials, query materials databases, summarise and plot
results); it never writes files or runs jobs itself, and every change it proposes waits
for the user. Release v6 of the 4B model (tool schema 06dce8f045182397).
Files
| file | what it is |
|---|---|
model.gguf | the merged weights, Q4_K_M (2.8 GB) |
Modelfile | the Ollama recipe: Ollama's built-in qwen3.5 renderer and parser, temperature 0, 16k context |
manifest.json | what the GUI checks: base model, the tool-schema hash it was trained for, the weights' sha256 |
Use
FrictionSim2D downloads and installs it from here when you choose it in the Assistant pane. By hand (Ollama 0.40.7 or newer):
hf download mjvalder/fs2d-assistant-qwen3.5-4b --local-dir qwen3.5-4b
ollama create fs2d-assistant:qwen3.5-4b -f qwen3.5-4b/Modelfile
Use the Modelfile: ollama pull hf.co/... would build the chat template from the GGUF instead,
which does not match how the model was trained. The model expects the FrictionSim2D
assistant's system prompt (rules plus a reference text) and tool definitions; it is not a
general-purpose chat model.
Training
- LoRA (rank 16, alpha 32, learning rate 2e-4, 1 epoch, batch 1 x 8 accumulation) with Unsloth on 8124 synthetic conversations (data p10-r + p11), thinking disabled.
- Conversations were generated by running the GUI's real tools; user requests and final replies were written by Qwen3-14B (Apache-2.0); about one in nine contains an invalid tool call followed by the tool's error and the corrected call. The loss covers only the assistant's turns, never the invalid calls. Requests resembling the evaluation set were removed.
- Trained with the same system prompt the app sends, and with the tool list rendered as Ollama renders it.
Evaluation
FrictionSim2D's assistant evaluation: 78 scripted requests in ten groups (setup, analysis, domain knowledge, materials database, materials, workspace, declines, parameters, sweeps, requests that must be asked back), each scored automatically on the state it leaves behind, three runs each, on one NVIDIA RTX A4000.
| pass@1 (73 core requests) | all runs | median time per turn | |
|---|---|---|---|
| this model (v6) | 93.2 % | 219/234 | 1.6 s |
| previous release (v3), same app version | 93.2 % | 213/234 | 1.5 s |
| stock Qwen/Qwen3.5-4B (same prompt, measured for v3) | 67.1 % |
The five requests added since the core set (four new plot types and a folder screen) all pass in every run (v3: two of the five fail).
Long multi-part requests (an AFM screen of 156 materials with 14 settings in one message) were not re-measured for v6; v3 asked back instead of proposing. Use a hosted model or split such requests.
Licence
Apache-2.0, as the base model.