The two questions
The model reads the facts of a court case and returns a probability for every allowed answer.
Table with columns: Question, Type, Instructions, Allowed answers| Question | Type | Instructions | Allowed answers |
|---|
law_area | choice | Zu welchem Rechtsgebiet gehört dieser Fall? | public_law, civil_law, penal_law, social_law |
approved | noul | Heisst das Gericht die Beschwerde gut? | yes, no |
Results
The training Job measured its own model on 2 December 2026. The 1,000 court cases of the split test, which are from the years 2018 to 2022, took no part in the training. The baseline is the share that "always the same answer" gets right.
Table with columns: Question, Right, 95% interval, Baseline, Whole interval above the baseline| Question | Right | 95% interval | Baseline | Whole interval above the baseline |
|---|
law_area | 97.8%, 978 of 1,000 | 96.7% to 98.5% | 44.9% (social_law) | yes |
approved | 72.8%, 728 of 1,000 | 70.0% to 75.5% | 72.8% (nein) | no |
A "no" in the last column means that the model has not shown that it is better on this question than always giving the same answer.
During the training, on the 500 court cases of the split calibration, which are from the years 2016 to 2017:
Table with columns: Question, After pass 1, After pass 2, Baseline| Question | After pass 1 | After pass 2 | Baseline |
|---|
law_area | 477 of 500 | 486 of 500 | 232 of 500 (social_law) |
approved | 355 of 500 | 355 of 500 | 355 of 500 (nein) |
Limits
- Two questions. The training used only the two questions above. The Job also asked the trained model three other questions about five short messages to a municipal administration. The table shows what came back.
- These texts. The model was trained on the facts of Swiss court decisions in German. In training a court case is read up to 4,096 tokens. The results above were measured with every court case cut at 25,000 characters.
- The confidence. No temperature was fitted. Whether the probabilities can be believed is a separate measurement, and the tutorial does it in chapter 4 for other models.
Table with columns: Other question, Type, Right, of 5 messages, Answers of the model| Other question | Type | Right, of 5 messages | Answers of the model |
|---|
stelle | choice | 5 | tiefbauamt, einwohnerdienste, steueramt, bewilligungen, steueramt |
dringlichkeit | score | 2 | hoch, hoch, hoch, hoch, hoch |
beschwerde | noul | 4 | nein, nein, nein, nein, nein |
How to use it
The model loads through Unsloth, which puts the adapter and the decision head back on the base model.
import unsloth # before transformersfrom unsloth import FastDecisionModel model, tokenizer = FastDecisionModel.from_pretrained("vaclavpechtor/swiss-german-decisions-qwen3.5-0.8b")FastDecisionModel.for_inference(model) questions = { "law_area": {"type": "choice", "instructions": "Zu welchem Rechtsgebiet gehört dieser Fall?", "criteria": {"public_law": "Öffentliches Recht", "civil_law": "Zivilrecht", "penal_law": "Strafrecht", "social_law": "Sozialversicherungsrecht"}}, "approved": {"type": "noul", "instructions": "Heisst das Gericht die Beschwerde gut?"},}state = "..." # the facts of a court case, in Germananswers = FastDecisionModel.predict(model, tokenizer, state, questions)
Training
Table | |
|---|
| Training steps | 1,000 of 8 court cases: 2 passes over 4,000 court cases |
| Learning rate | 0.0002, constant after 10 warm-up steps |
| LoRA | rank 16, alpha 16 |
| Parameters | 38 million trained, of 891 million |
| Seed | 3407 |
| Hardware and time | NVIDIA A10G, 26 minutes of training, 1.56 seconds per training step |
| Unsloth | 2026.11.13 |
The file training_results.json in this repo holds these numbers and the loss during the training.
Licence
The model is under Apache-2.0, like its base model. The training data has its own licence, CC BY-SA 4.0, stated on its card.