Views
No views yet
mistral:7b, this FP16 fine-tune, and the Q8 GGUF quantization — judged by Claude against a frozen rubric (4 sub-dimensions + holistic overall, 0–5). Full report: model-comparison_2026-06-16.html.| Rank | Model | Mean overall | factual_accuracy | completeness | format_adherence |
|---|---|---|---|---|---|
| 1 | mistral-insurance-fr (this model, FP16) | 3.66 | 3.64 | 3.74 | 4.36 |
| 2 | mistral-insurance-fr-gguf-q8 | 2.94 | 3.28 | 2.98 | 4.30 |
| 3 | mistral:7b (base) | 1.40 | 1.44 | 2.00 | 1.66 |
mistral:7b actually wins french_quality (4.76 vs 4.68) because it produces fluent generic French, but its factual_accuracy collapses to 1.44 / 5 — fluent nonsense on insurance facts. Quantization to Q8 keeps the persona and format almost intact but trades ~0.7 overall points (≈90% of factual accuracy, ≈80% of completeness retained) for roughly 2× faster inference. Use this full-precision model when accuracy matters most; use the GGUF Q8 when local-inference speed and footprint matter more.1from transformers import AutoModelForCausalLM, AutoTokenizer
2import torch
3
4model_id = "rlondner/mistral7b-french-insurance"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id)
7model = AutoModelForCausalLM.from_pretrained(
8 model_id,
9 torch_dtype=torch.float16,
10 device_map="auto",
11)
12
13system = "Tu es un assistant spécialisé en assurance santé française pour les professionnels de santé."
14user = "Qu'est-ce que la CMU-C ?"
15prompt = f"<s>[INST] {system}\n\n{user} [/INST]"
16
17inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
18outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.2, do_sample=True)
19print(tokenizer.decode(outputs[0], skip_special_tokens=True))merge_and_unload()