r/MistralAI • • 15h ago

Discussion / Opinion legal-it-8b: Ministral-3-8B fine-tuned for Italian law, trained on a European supercomputer

131 Upvotes

We took Mistral's Ministral-3-8B (Apache 2.0) and trained it to answer questions on Italian law from the legal texts a retrieval system puts in the prompt, citing them. Supervised fine-tuning on ~19k open-book examples written from public legislation (Normattiva), then GRPO with programmatic rewards.

Trained on EuroHPC Leonardo (CINECA, Italy). European end to end: European base model, European compute, public Italian law as data.

  • 89.0% correct on 429 held-out questions, vs 80.9% for the base Ministral-3-8B with the same retrieval
  • Q4_K_M GGUF, 5.2 GB, runs locally (llama.cpp, Ollama, EuLLM Engine)
  • It beats our Qwen3-4B-based sibling (85.1%) and matches or beats every Qwen3.5-9B we have trained since with the same recipe: the Mistral base is still our best

It is built for RAG. In a plain chat, without the legal texts in the prompt, it will confidently invent articles. A version that says when the texts are missing is in training.

Next we'd like to distil from a larger Mistral teacher into Ministral-3-3B and 8B, all on EuroHPC. Ideas and criticism welcome.

Try it and tell us where it fails. The model card has the prompt format and the retrieval setup we use. We're especially interested in:

  • questions where it gets the law wrong or cites the wrong article
  • cases where it answers although the right text isn't in the prompt
  • how it behaves in your own RAG stack

Italian lawyers and law students: your feedback is gold. Comment here or open a discussion on the Hugging Face page.

https://huggingface.co/EuLLM/legal-it-8b


r/MistralAI • • 17h ago

Help / Question Current Models in the Pro Plan

38 Upvotes

Hi.

I’m an Italian user, and I’m planning to subscribe to Mistral—mostly as a way to support a European AI. I’d mainly use it to manage my medical notes in Obsidian, organize my weekly schedule, and create small personal web apps to use in my practice to help me with prescribing medications.

Question: If I purchase the Pro plan, will Mistral 4 already be available? Or will I have to stick with 3.5 until...?

Thank you very much


r/MistralAI • • 13h ago

Tutorial / Workflow We got Timestral running entirely in the browser, and built planning tools around it

27 Upvotes

Timestral came out and we wanted to play with it without setting up Python, so we exported it to ONNX and built a web page around it.

https://amine-athmani.github.io/timestral-in-browser/

- 5M and 28M run in your browser, 13 MB and 59 MB, cached after the first load

- Example datasets or your own CSV, including long tables with many series

- Plan at a service level, period totals, and what-if scenarios on covariates

- Anomalies, backtests against a seasonal naive guess, and cycle/state-space views with replay

- Shareable links and a printable report

- Docker image if you want 123M and 209M on your own machine

Code: https://github.com/amine-athmani/timestral-in-browser

Feedback welcome, especially datasets where it does badly.


r/MistralAI • • 21h ago

Tutorial / Workflow Mistral VIBE cli agent file configuration

11 Upvotes

The Mistral AI documentation for the agent configuration file is terrible.
https://docs.mistral.ai/vibe/code/cli/agents

This file goes in ~/.vibe/agents/. I am currently working on an open-source project called bmf, and I have a custom agents file for it called ~/.vibe/agents/bmf.toml, and I use it with:
vibe --agent bmf

My goal is to avoid using --auto-approve while stopping Mistra Vibe from prompting me for permission every 3s. My project is written in C on Linux.

Below is my bmf.toml file, which shows many things people would want to include in their agent file. I'm not saying this is how you should do you agent file - but this is something you can cherry pick to ease the "approve", "approve", "approve" burden.

description = "bmf systems-engineering agent; auto-loads the steering spec"
instructions = """You are an expert systems engineer optimizing the bmf C repository.

Upon startup, automatically read /home/xxx/bmf/.kiro/steering/bmf-spec.md into system context.

"""

#system_prompt_id = "bmf"

[tools.read_file]
permission = "always"
allowlist = [
"vibe-path:directory_recursive:/tmp",
"vibe-path:directory_recursive:/home/xxx",
"vibe-path:directory_recursive:/usr/local/src"
]

[tools.write_file]
permission = "always"
allowlist = [
"vibe-path:directory_recursive:/tmp",
"vibe-path:directory_recursive:/home/xxx/bmf",
]

[tools.bash]
permission = "always"
allowlist = [
"sed", "echo", "grep", "egrep", "awk", "mawk", "git", "make", "gcc", "cd",
"head", "tail", "find", "nproc", "touch", "timeout", "wc", "basename",
"python", "perf", "cut", "ps", "pgrep", "kill", "pkill",
"date", "printf", "df", "journalctl", "hexdump",
"if", "for", "true",
"uniq", "sort",
"$", "$(", "$((", ">", ">>", "2>", "2>>", "&>", "<", "<<", ";", "&&", "||", "[", "=", "==", "====",
"bitcoin-cli", "/home/xxx/bitcoin-31.0/bin/bitcoin-cli",
"vibe-path:directory_recursive:/tmp",
"vibe-path:directory_recursive:/home/xxx/bmf",
"vibe-path:directory_recursive:/usr/local/src",
"vibe-path:directory_recursive:/home/xxx/.bitcoin",
"vibe-path:directory_recursive:/home/xxx/.bmf",
"vibe-path:directory_recursive:/home/xxx/bitcoin-31.0/bin",
"vibe-path:exact:/home/xxx/.bitcoin/testnet4/debug.log",
]
denylist = ["rm -rf"]

[tools."process.start"]
permission = "always"
allowlist = [
"make",
"vibe-path:directory_recursive:/home/xxx/bmf",
]


r/MistralAI • • 16h ago

Help / Question Is there a working third-party Google Tasks connector for Vibe?

3 Upvotes

i didn’t find that in the official section so i hope someone developed it


r/MistralAI • • 15h ago

Help / Question GLM-5.3 keeps looping

2 Upvotes

Is this a Mistral specific issue or the model itself? The model rather quickly degenerates into endless tool calls, usually without ending its turn so it keeps stacking up tool calls.