Vibeleaderboard
← All Intel
Intel / repo

unsloth v0.1.925-beta — Inkling finetuning + perf fixes

Source
github.com
Author
danielhanchen
Date

Context

Unsloth v0.1.925-beta is a corrected reissue of the release that first let the tool Inkling 2 Mini, the small open-weights model from Thinking Machines (model announcement). Unsloth is an open-source tool for fine-tuning and running language models on limited hardware. Its release notes repeat those of v0.1.924-beta, published the day before, and add a single highlight: bug fixes for fine-tuning Inkling 2 Mini, fixes for other bugs, and an upgraded "MXC sandbox". The notes do not say which bugs were fixed or what the MXC sandbox is, and their full-changelog link still compares v0.1.923 with v0.1.924. Anyone who installed v0.1.924 to fine-tune Inkling 2 Mini therefore has reason to move to v0.1.925, though the notes do not say exactly what was wrong.

The notes describe the fine-tuning support in the same words as v0.1.924. Unsloth trains Inkling 2 Mini with or QLoRA, including its vision layers. LoRA trains a small set of added weights instead of changing the whole model, and QLoRA does the same on a copy of the model compressed to 4 bits, which needs less memory. The notes say this runs 1.8 to 3.1 times faster with 50% less GPU memory, without stating the baseline. On NVIDIA Ampere or newer GPUs, training uses FlexAttention, which the notes put at about 15% faster per step on an L4.

The hardware limits decide who can use it. A fine-tune fits on the two free T4 GPUs that Kaggle provides, at about 26 seconds per training step, but not on a single 15 GB T4. A trained model can be saved as a merged 16-bit model or as a GGUF file, the single-file format llama.cpp runs locally, and a fine-tuned Inkling 2 Mini exports to a 17.5 GB GGUF at the q4_k_m setting. That export needs about 150 GB of free disk, so the notes point users to a Colab A100 instead of Kaggle, and merging to 4 bits is still not supported. The larger Inkling 2 Small can also be trained but needs about 290 GB of GPU memory even in 4-bit.

Key takeaways · AI-distilled
  • Unsloth reports Inkling 2 Mini LoRA or QLoRA training fits on Kaggle's two T4s at about 26 seconds per step but not on a single 15 GB T4. On Ampere or newer GPUs it uses FlexAttention, about 15% faster per step on an L4.
  • A fine-tuned Inkling 2 Mini exports to a 17.5 GB q4_k_m GGUF for llama.cpp, but the export needs about 150 GB of free disk, so Unsloth recommends a Colab A100 over Kaggle. merged_4bit export is still unsupported.
  • Some fixes affect training correctness, not just speed: left-padded batches no longer let pad positions see future tokens, and merged or GGUF exports no longer drop a trained lm_head after add_new_tokens on tied- models.
  • Before this release, unsloth eval on a chat fine-tune scored a custom .jsonl, .json or .csv dataset near 0; it now scores such datasets in the model's chat format.
Terms in this piece · Glossary
  • fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.
  • LoRA — A cheap way to fine-tune a model by training a small add-on layer instead of changing all of the model's weights.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Tools in this story
More from danielhanchen
Recommended reads