Choose a build
Table with columns: Build, Best fit, What to run| Build | Best fit | What to run |
|---|
| Standalone Q4_K_S | Local deployment with one model file | 13.55 GB GGUF with the adapter merged; benchmarked on dual RTX 3060s |
| F16 LoRA GGUF | Keep a compatible Mistral Small 24B GGUF and switch the fine-tune on or off | 39.34 MB adapter plus the base GGUF |
| PEFT LoRA | Transformers workflows and further adaptation | Adapter weights and tokenizer files with the pinned 4-bit training base |
| Laiaric-open 4.3B | Lower compute and faster extraction | Laiaric-open Q8_0 measured 0.9739 field F1 and 45.97 tokens/s in its 60-row report. The sample and serving setup differ from the 24B runs. |
PEFT repository · GGUF downloads and reports
What the fine-tune improved
Both 24B variants raised field exact F1 from 92.59% to 99.17% on a balanced 30-row S2 sample, a 6.57 percentage-point gain computed before rounding. The largest gains were on SDK bug tickets and general unseen schemas. The standalone retained the LoRA variant’s aggregate F1 and measured 20.68 tokens/s versus 19.36 for the LoRA.
Table with columns: Metric, Mistral Small Q4_K_S, Base + F16 LoRA, Standalone Q4_K_S| Metric | Mistral Small Q4_K_S | Base + F16 LoRA | Standalone Q4_K_S |
|---|
| Field exact F1 | 0.9259 | 0.9917 | 0.9917 |
| Schema validity | 1.0000 | 1.0000 | 1.0000 |
| Evidence accuracy | 1.0000 | 1.0000 | 1.0000 |
| Null precision | 0.9070 | 1.0000 | 1.0000 |
| Null recall | 0.9512 | 1.0000 | 1.0000 |
| Null F1 | 0.9286 | 1.0000 | 1.0000 |
| Expected calibration error ↓ | 0.0390 | 0.0127 | 0.0099 |
| Throughput | 21.80 tok/s | 19.36 tok/s | 20.68 tok/s |
Table with columns: Domain, Mistral, Base + LoRA, Standalone, Standalone Δ| Domain | Mistral | Base + LoRA | Standalone | Standalone Δ |
|---|
| Application specifications | 1.0000 | 1.0000 | 1.0000 | 0.00 pp |
| Failure triage | 1.0000 | 1.0000 | 1.0000 | 0.00 pp |
| Agent candidate configurations | 1.0000 | 0.9500 | 0.9500 | −5.00 pp |
| RL hillclimb proposals | 0.9333 | 1.0000 | 1.0000 | +6.67 pp |
| SDK bug tickets | 0.7722 | 1.0000 | 1.0000 | +22.78 pp |
| General unseen schemas | 0.8500 | 1.0000 | 1.0000 | +15.00 pp |
These are preview results on 30 examples from the 300-row S2 set. The saved runs used a balanced selection across six domains and a schema-constrained response envelope. Throughput depends on the serving profile. The standalone’s compact profile peaked at 13,691 MiB above baseline across both GPUs and passed all four release gates. Validate schema and evidence against the source before using output to trigger actions.
Baseline JSON · LoRA JSON · Standalone JSON
Training and lineage
This 23.6B Mistral Small fine-tune was trained for one epoch on 7,528 examples with 396 validation examples. The run completed 471 optimizer steps using NF4 QLoRA, rank 16, alpha 32, and LoRA on the query, key, value, and output attention projections. The PEFT configuration points to the exact Unsloth NF4 snapshot used for training. The standalone model was merged into the official Mistral revision.
Run the PEFT adapter
Use a CUDA setup with enough memory for the pinned NF4 base, and install PyTorch, Transformers, PEFT, Accelerate, and bitsandbytes.
import jsonfrom peft import AutoPeftModelForCausalLMfrom transformers import AutoTokenizer repo = "xeditai/laiaric-24b"tokenizer = AutoTokenizer.from_pretrained(repo)model = AutoPeftModelForCausalLM.from_pretrained(repo, device_map="auto").eval()request = { "schema": {"type": "object", "properties": { "status_code": {"type": ["integer", "null"]}, "root_cause": {"type": ["string", "null"]}, }}, "text": "auth-gateway returned HTTP 504.",}messages = [ {"role": "system", "content": "Copy values only from the text. Do not guess. " "Write null when the text does not state the value. Write evidence as an exact copy " "of the shortest text that proves the value. Follow the schema types."}, {"role": "user", "content": json.dumps(request)},]inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, return_dict=True, return_tensors="pt").to(model.get_input_embeddings().weight.device)output = model.generate(**inputs, max_new_tokens=256, do_sample=False)print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
The Transformers example prompts for the extraction envelope. The GGUF quickstart shows how to constrain it at serving time.