Unsloth v0.1.925-beta: Fine-Tune Inkling 2 Mini with QLoRA (2026)
Updated: 27 November 2026 · Release covered: Unsloth v0.1.925-beta, published 25 November 2026
Unsloth has added a model-specific fine-tuning path for Thinking Machines Lab’s Inkling 2 Mini. The v0.1.925-beta release and its accompanying guide describe LoRA and QLoRA training, optional vision-layer tuning, multi-GPU execution, and exports that can be used outside the training environment. This is a useful development for teams that want to adapt an open-weight multimodal model rather than only prompt or serve the base checkpoint.
The headline speed and memory improvements are Unsloth’s own benchmark claims, not independent results. This guide explains what the release actually adds, which hardware configurations are documented, how to start a training run, and where the workflow still has practical limits.
What changed in Unsloth v0.1.925-beta?
The official v0.1.925-beta release was published on 25 November 2026. Its Inkling-related changes include:
- LoRA and QLoRA support: fine-tune Inkling 2 Mini, including an option to train its vision layers.
- Multi-GPU training: the release notes report tensor, pipeline and context parallelism across GPUs as part of the Unsloth update. The Inkling-specific free Kaggle notebook demonstrates a layer-split run on two NVIDIA T4 GPUs.
- Export options: save adapters, merge to 16-bit, or export a GGUF model for a compatible inference runtime.
- Training and inference fixes: the release notes mention a corrected maximum-context calculation, improved Inkling inference, and other training fixes.
- Other updates: faster small-batch
adamw_8bitsteps, faster Z-Image LoRA training on T4, and improvements to chat evaluation.
The release notes say the Inkling 2 Mini workflow runs on Kaggle’s two-T4 setup at roughly 26 seconds per step in the documented example, but not on a single 15 GB T4. That is a specific notebook configuration, not a promise that every dataset, sequence length or training configuration will fit or run at the same speed.
Why Inkling 2 Mini needs a model-specific training path
Thinking Machines Lab announced Inkling 2 Mini on 20 November 2026. Its model card describes a multimodal, looped transformer with 26.4 billion total parameters and 3.4 billion conventionally counted active parameters. The middle 12 layers are run three times, so the provider reports 5.4 billion effective active parameters per token when the repeated computation is included.
The model accepts text and images and generates text. Its published weights are under Apache 2.0, and the model card lists a context window of up to one million tokens. That context figure is a model capability limit; it is not a sensible default training sequence length or a guarantee that a given GPU can hold a million-token training batch.
Inkling’s routed experts and repeated layers create memory and execution details that generic fine-tuning recipes can miss. Unsloth’s guide documents model-specific handling for quantized experts, loop message gates, gradient checkpointing and the large final-logit allocation. Those details help explain why the model-specific path matters more than simply pointing a generic trainer at the checkpoint.
What the published performance numbers mean
Unsloth’s Inkling 2 Mini fine-tuning guide compares its QLoRA workflow with Transformers, PEFT and TRL. The guide says the runs used the same tokens, FineTome data, batch size 1 with gradient accumulation 4, LoRA rank 16 on attention and routed experts, and adamw_8bit. It reports the median step time from steps 6–25 across two or three runs per setup.
| Hardware and context | Unsloth result | Transformers + TRL result | Unsloth-reported difference |
|---|---|---|---|
| A100 80 GB, 2,048 tokens | 9.09 s/step; 29.4 GiB peak | 16.49 s/step; 58.3 GiB peak | 1.81× faster; about 50% less peak VRAM |
| RTX PRO 6000 Blackwell, 1,024 tokens | 2.94 s/step; 25.7 GiB peak | 9.09 s/step; 55.4 GiB peak | 3.10× faster; about 54% less peak VRAM |
These are vendor-published measurements on the stated hardware and training recipe. They should not be read as a universal speedup for every GPU, sequence length, dataset, batch size or optimizer. The release and guide do not provide an independent third-party replication of these particular comparisons.
The guide also says a 24 GB GPU can peak around 21.1 GiB in its tested setup. That leaves limited headroom for other processes and configuration changes. Lower the sequence length or reduce trainable modules if your own run approaches the memory ceiling.
Hardware: what is realistic?
| Setup | What the documentation says | Practical interpretation |
|---|---|---|
| One 15 GB T4 | Not enough for the documented Inkling 2 Mini QLoRA workflow; 4-bit weights alone are about 14.4 GB. | Do not plan a normal training run on one T4. |
| Two T4 GPUs | The official Kaggle notebook uses a layer split and reports roughly 26–27 seconds per step for its example. | A lower-cost way to try the documented recipe, subject to Kaggle accelerator availability and quota. |
| 24 GB GPU | Unsloth reports about 21.1 GiB peak in its tested configuration. | Possible but tight; keep batch size small and start with a short sequence length. |
| A100 80 GB | Unsloth publishes a direct comparison at 2,048 tokens. | More room for experiments and a documented benchmark configuration. |
| RTX PRO 6000 Blackwell | Unsloth publishes a comparison at 1,024 tokens. | A high-memory workstation option; the vendor’s measured result is not a guarantee for other workloads. |
Unsloth’s release notes say Inkling 2 Small is supported too, but estimate roughly 290 GB of GPU memory in 4-bit; its current model guide separately lists about 310 GB for the 4-bit weights alone. Treat those as rough, documentation-specific estimates and consult the latest model guide before planning hardware. Inkling 2 Small is a different, large-scale training problem and should not be confused with the Mini workflow in this article.
Before you start
- Choose the official two-T4 Kaggle notebook or the Colab A100 notebook for the simplest first run.
- For local training, use an isolated Python environment and follow the current Unsloth installation instructions. The general Core installation command is
pip install unsloth; CUDA, PyTorch and platform compatibility still need to match your machine. - Prepare a clean conversational dataset. Keep examples representative of the tasks you want the model to perform, remove secrets and personal data, and verify that you have rights to use the material for training.
- Start with a short sequence length and a small batch. The official quick-start example uses 1,024 tokens and per-device batch size 1.
Step-by-step: run an Inkling 2 Mini QLoRA experiment
The code below follows the structure of Unsloth’s published guide. For a first experiment, the linked Kaggle or Colab notebook is safer because it provides the project’s intended environment and multi-GPU configuration. If you run locally, first confirm that the installed Unsloth, PyTorch, CUDA and TRL versions are compatible.
1. Load the model in 4-bit
from unsloth import FastModel
max_seq_length = 1024
model, tokenizer = FastModel.from_pretrained(
model_name="unsloth/Inkling-2-Mini",
max_seq_length=max_seq_length,
load_in_4bit=True,
full_finetuning=False,
)
The 4-bit load is the QLoRA-oriented starting point in the official guide. It does not mean the entire training process uses only the storage size of the quantized weights; activations, gradients, optimizer state, logits and runtime buffers also consume memory.
2. Attach LoRA adapters
model = FastModel.get_peft_model(
model,
finetune_vision_layers=False, # Set True only for an image-training dataset
finetune_language_layers=True,
finetune_attention_modules=True,
finetune_mlp_modules=True,
r=8,
lora_alpha=8,
lora_dropout=0,
bias="none",
use_gradient_checkpointing="unsloth",
random_state=3407,
)
This example trains the language path and leaves the vision layers frozen. If your task genuinely requires adapting image understanding, review the guide’s multimodal dataset requirements and enable vision-layer fine-tuning deliberately. It can change the memory and compute profile.
3. Format the dataset with the model’s chat template
from datasets import load_dataset
from unsloth.chat_templates import standardize_sharegpt
dataset = load_dataset(
"mlabonne/FineTome-100k",
split="train[:3000]",
)
dataset = standardize_sharegpt(dataset)
def format_examples(examples):
texts = [
tokenizer.apply_chat_template(
conversation,
tokenize=False,
add_generation_prompt=False,
)
for conversation in examples["conversations"]
]
return {"text": texts}
dataset = dataset.map(format_examples, batched=True)
FineTome is the public sample dataset used in the documented example. Replace it with your own licensed and quality-checked dataset for a real project. Keep the expected conversation roles and the model’s special tokens intact; a malformed chat template can make training appear to run while teaching the wrong format.
4. Train with a conservative configuration
from trl import SFTTrainer, SFTConfig
from unsloth.chat_templates import train_on_responses_only
trainer = SFTTrainer(
model=model,
tokenizer=tokenizer,
train_dataset=dataset,
args=SFTConfig(
dataset_text_field="text",
max_length=max_seq_length,
per_device_train_batch_size=1,
gradient_accumulation_steps=4,
warmup_steps=5,
max_steps=30,
learning_rate=2e-4,
logging_steps=1,
optim="adamw_8bit",
weight_decay=0.001,
lr_scheduler_type="linear",
seed=3407,
output_dir="outputs",
report_to="none",
),
)
trainer = train_on_responses_only(
trainer,
instruction_part="<|message_user|>",
response_part="<|message_model|>",
)
trainer_stats = trainer.train()
This is a short demonstration run, not a production recipe or evidence that 30 steps are enough for a useful adaptation. Select training duration, learning rate, evaluation split and stopping criteria based on your dataset. The official guide advises keeping per-device batch size small and increasing gradient accumulation rather than raising the batch size when memory is tight.
5. Save the adapter or export a model
# Save the adapter
model.save_pretrained("inkling_2_mini_lora")
tokenizer.save_pretrained("inkling_2_mini_lora")
# Or export a merged 16-bit model
model.save_pretrained_merged(
"inkling_finetune_16bit",
tokenizer,
save_method="merged_16bit",
)
# Or export a Q4_K_M GGUF
model.save_pretrained_gguf(
"inkling_finetune",
tokenizer,
quantization_method="q4_k_m",
)
Unsloth’s guide says the merged 16-bit model is about 53 GB on disk. Its GGUF export path first writes large intermediate files and needs around 150 GB of free disk; the documented Q4_K_M result is about 17.5 GB. The guide specifically warns that the Kaggle environment runs out of disk for this export and points to a Colab A100 for that step. Check free storage before starting the merge rather than discovering the problem at the end.
Validate the fine-tune before deploying it
- Keep a held-out evaluation set that is not used during training.
- Compare the base model and adapter on the same prompts, decoding settings and examples.
- Check instruction following, formatting, factuality and refusal behaviour, not only training loss.
- For image tasks, include image examples in the evaluation set and verify that the intended vision layers were trained.
- Test the exported GGUF with the exact inference runtime and chat template you intend to deploy. Export success alone does not prove that the model behaves correctly.
- Record the base checkpoint, dataset revision, training configuration, adapter hash and export settings so the run can be reproduced.
If you need a separate local-serving workflow after export, see GyanAangan’s multi-GPU llama.cpp GGUF guide and local GGUF benchmarking guide.
Limitations and troubleshooting
- Out of memory: lower
max_seq_length, keep per-device batch size at 1, increase gradient accumulation instead, and consider disabling MLP adapter training for a constrained experiment. Close other GPU workloads before retrying. - One T4 does not fit: the official notes explicitly say the documented workflow does not fit a single 15 GB T4. Use the two-T4 layer-split notebook or a larger-memory GPU.
- Multi-GPU configuration matters: the official guide warns against passing a generic
device_mapfor its layer-split path because that can place the model on one card. Follow the notebook’s own placement logic. - Slow or failed export: check disk capacity first. The GGUF path may need about 150 GB of free space for intermediate artifacts even though the final Q4_K_M file is much smaller.
- Unexpected training loss: use the model-specific loading and quantization path. Unsloth documents that quantizing Inkling’s loop message gates incorrectly can distort early loss; its implementation keeps those gates out of 4-bit.
- Vision behaviour does not improve: confirm that the dataset actually contains image inputs and that
finetune_vision_layerswas enabled. Text-only fine-tuning is not a substitute for multimodal training data. - Dependency conflicts: create a clean environment and use the official install guide rather than mixing arbitrary PyTorch, CUDA, Transformers and TRL versions.
Who benefits from this release?
- Application developers: adapt response style, domain workflows or tool-oriented behaviour and keep the resulting adapter or export under their own deployment controls.
- Multimodal product teams: experiment with image-aware adaptation when they have a suitable image-and-text dataset and enough GPU memory.
- Local-AI builders: train in a notebook or workstation, then evaluate a GGUF export with their preferred local inference stack.
- Researchers: study a looped MoE model using a documented fine-tuning recipe and compare it with a baseline under controlled conditions.
This is less useful for someone who only wants to chat with Inkling 2 Mini, has a single 15 GB GPU, or has no lawful, representative training data. In those cases, start with inference or a smaller model rather than treating fine-tuning as the default next step.
Security, privacy and licensing notes
Inkling 2 Mini’s model card lists Apache 2.0 for the weights and links to a separate acceptable-use policy. Review both before redistribution or commercial deployment. Also review the license and provenance of every training dataset and any third-party notebook dependency.
Cloud notebooks run on infrastructure outside your own computer. Do not upload confidential customer records, API keys, private source code or regulated data unless you have verified the provider’s data-handling terms and obtained the necessary authorization. For sensitive workloads, use a controlled environment, remove secrets from datasets, restrict notebook sharing, and protect exported adapters as model artifacts.
Frequently asked questions
Can I fine-tune Inkling 2 Mini on one 15 GB T4?
Not with the documented Unsloth QLoRA workflow. The release notes say it does not fit on a single 15 GB T4. The published Kaggle path uses two T4 GPUs with a layer split.
Is the 1.8×–3.1× speedup guaranteed?
No. Those are Unsloth’s own results for specific A100 80 GB and RTX PRO 6000 configurations, context lengths and training settings. Different GPUs, data, batch sizes and software versions can produce different results.
Can I fine-tune the vision part of Inkling 2 Mini?
Yes, the guide includes an option to enable vision-layer fine-tuning. You need an appropriate image-and-text dataset and should expect memory use and training time to change.
Can I run the fine-tuned model in llama.cpp?
Unsloth documents a Q4_K_M GGUF export that runs in llama.cpp. Test the exported file, tokenizer and chat template with your exact llama.cpp build before relying on it in an application.
Does the one-million-token context window mean I can train at one million tokens?
No. It is the model card’s maximum context capability, not a recommended fine-tuning sequence length. The published Unsloth example uses 1,024 tokens. Longer sequences can sharply increase memory and compute requirements.
Related GyanAangan guides
- Unsloth in 2026: run local models, build agents and fine-tune LLMs — broader overview of the Unsloth ecosystem.
- Unsloth vs Ollama in 2026 — understand the distinction between model adaptation and local serving.
- Benchmark local GGUF models properly — evaluate an exported model without confusing different test conditions.
Official sources and further reading
- Unsloth v0.1.925-beta release notes (25 November 2026)
- Unsloth: Fine-tuning Inkling 2 Mini guide and benchmark methodology
- Thinking Machines Lab: Inkling 2 Mini model card
- Thinking Machines Lab: Introducing Inkling 2 Mini (20 November 2026)
- Unsloth installation documentation
- Unsloth hardware and software requirements
- Official Kaggle two-T4 notebook
- Official Colab A100 notebook
Editorial note: Facts and setup guidance were checked against the linked official release, model card and documentation on 27 November 2026. Performance figures are attributed to Unsloth; no independent benchmark or hands-on run is claimed in this article.
