Guide · Fine-tuning language models

Train an AI for spelling correction. Local, guided and without training scripts.

Your project needs an AI that corrects text – in your style, with your terminology, without sending the text to a cloud service? Then you fine-tune a small language model with LoRA on sentence pairs. Here is how, step by step.

14 days · No payment details · Ends on its own

The principle

From wrong to right.

A language model learns correction from examples: on one side a sentence with mistakes, on the other the corrected version. After a few thousand such pairs the model picks up the pattern – even for sentences it has never seen.

You don't have to train a model from scratch. A small pretrained model, say with 0.5 to 3 billion parameters, already knows the language. With LoRA you adapt only a small part of the weights – which runs on an Apple Silicon Mac.

Step by step

Train your corrector in FrameTrain.

  1. 01

    Collect sentence pairs

    In the Dataset Builder create a text-to-answer project. Import pairs from CSV or JSONL – or take correct texts and generate mistakes.

  2. 02

    Add examples

    Use AI-generated examples to cover typical errors: capitalization, commonly confused words, commas, typos. 2,000 to 10,000 pairs are a good start.

  3. 03

    Pick a model

    Load a small multilingual model from Hugging Face. The coach estimates up front whether it fits into your Mac's memory.

  4. 04

    Train with LoRA

    Apply the LoRA template and start. The loss curve and analysis show live whether the model is learning or memorizing.

  5. 05

    Test

    Enter your own sentences in the Laboratory and rate the result. Bad corrections go back into the dataset as new examples.

  6. 06

    Integrate

    Load the model in the Hosting view and call it from your project through the local API.

FrameTrain training: LoRA settings for a language model

To be honest

When your own model is worth it.

Worth it

When texts are confidential, you need domain language or a house style, you want to work offline, or you correct large volumes without ongoing API costs.

Probably not worth it

When general spell checking is enough. Ready-made tools like LanguageTool are rule-based and work immediately.

Frequently asked questions

FrameTrain guides you through dataset, LoRA training and testing, all locally. If your dataset is ready, Unsloth Studio or MLX LoRA Studio work too. Kiln helps generate data but trains with cloud providers.

A few thousand good sentence pairs are often enough for a noticeable result. More important than the amount is that the mistakes resemble those in your real texts.

A small multilingual instruct model with 0.5 to 3 billion parameters. It is fast, fits on a 16 GB Mac and is enough for correction tasks.

No. Training and use run locally in FrameTrain. Only if you enable the optional AI assistant with a cloud provider do requests go to that provider.

Train your own corrector – locally.

14 days free, no payment details. If it isn't for you, the trial simply ends.

Feedback

What did you notice? Bugs, ideas, praise – it goes straight to the developer.

What's it about?