Translation fine-tune of LFM2.5 1.2B (Unsloth)
Liquid AI's LFM2.5-1.2B-Base adapted for translation, with Korean examples and Wikipedia text.
- $10M revenue cap
- Share-alike
- No license stated
Source: Unsloth notebooks ↗ · by Unsloth · last updated Oct 7, 2026
What a local business could build with it
Translate menus, notices and customer messages into the languages your customers speak, on a small model you control.
How to run it
Commands are copied from the source, unchanged except where a notebook cell is cut at 40 lines (marked in the code). Placeholders like <you> are the source's own. Credit goes to the authors named on each block.
Install (as written in the notebook)
%%capture
import os, re
if "COLAB_" not in "".join(os.environ.keys()):
!pip install unsloth # Do this in local & cloud setups
else:
!pip install sentencepiece protobuf "datasets==4.3.0" "huggingface_hub>=0.34.0" hf_transfer
!pip install --no-deps unsloth_zoo bitsandbytes accelerate peft trl triton unsloth
!unsloth install-kernels
!pip install --no-deps --upgrade "torchao>=0.16.0"
!pip install transformers==4.57.6
!pip install --no-deps trl==0.22.2
Load the base model
from unsloth import FastLanguageModel
import torch
max_seq_length = 2048 # Choose any! We auto support RoPE Scaling internally!
dtype = None # None for auto detection. Float16 for Tesla T4, V100, Bfloat16 for Ampere+
load_in_4bit = False # Use 4bit quantization to reduce memory usage. Can be False.
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "LiquidAI/LFM2.5-1.2B-Base", # Choose ANY! eg teknium/OpenHermes-2.5-Mistral-7B
max_seq_length = max_seq_length,
dtype = dtype,
load_in_4bit = load_in_4bit,
# token = "YOUR_HF_TOKEN", # HF Token for gated models
)
Set up training
from transformers import TrainingArguments
from unsloth import UnslothTrainer, UnslothTrainingArguments
trainer = UnslothTrainer(
model = model,
tokenizer = tokenizer,
train_dataset = dataset,
dataset_text_field = "text",
max_seq_length = max_seq_length,
dataset_num_proc = 4,
args = UnslothTrainingArguments(
per_device_train_batch_size = 2,
gradient_accumulation_steps = 8,
# Use warmup_ratio and num_train_epochs for longer runs!
max_steps = 120,
warmup_steps = 10,
# warmup_ratio = 0.1,
# num_train_epochs = 1,
# Select a 2 to 10x smaller learning rate for the embedding matrices!
learning_rate = 5e-5,
embedding_learning_rate = 1e-5,
logging_steps = 1,
optim = "adamw_8bit",
weight_decay = 0.001,
lr_scheduler_type = "linear",
seed = 3407,
output_dir = "outputs",
report_to = "none", # Use TrackIO/WandB etc
),
)
Licenses
License flags to read before commercial use:
- Model: Commercial use limited above $10M annual revenue. Liquid AI license ('other' on the card). The LFM Open License v1.0 limits commercial use at $10M+ annual revenue
- Dataset: No license stated. No license stated on the Alpaca-Korean card
- Dataset: Share-alike terms: derived data may need the same license. CC BY-SA 3.0 + GFDL (Wikipedia, share-alike)
| Part | License, as the source or Hub states it |
|---|---|
| Code | LGPL-3.0 (Unsloth notebooks) |
| Base model | Liquid AI license ('other' on the card). The LFM Open License v1.0 limits commercial use at $10M+ annual revenue |
| Dataset | No license stated on the Alpaca-Korean card |
| CC BY-SA 3.0 + GFDL (Wikipedia, share-alike) |
Checked against the Hugging Face API and each repo on December 4, 2026. A grouping like “$10M revenue cap” is our shorthand, not legal advice.