Skip to content

Add Inkling-2-Mini (26B) conversational notebook - #433

Merged
danielhanchen merged 2 commits into
mainfrom
inkling2-mini-notebook-v2
Nov 23, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
inkling2-mini-notebook-v2

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Adds original_template/Inkling_2_Mini_(26B)-Conversational.ipynb (plus the generated Colab and Kaggle notebooks and scripts) for QLoRA on Thinking Machines' Inkling-2-Mini (inkling2_loop, 26.4B total, 3.4B active) on Kaggle's two T4s. Same layout as the Qwen3.8 (27B) and Muse Glimmer notebooks, with short markdown.

update_all_notebooks.py:

Saving: LoRA adapters run by default. The merged 16-bit save, the q4_k_m GGUF export and a llama.cpp run of the GGUF are if False cells, like the other notebooks. Merged and GGUF exports of Inkling 2 also need unslothai/unsloth#19016 (Inkling 2 merged 16-bit and GGUF export), which is not merged yet: main refuses them with NotImplementedError. The runs below used main at f4768e0 plus that change.

Results

10 steps, batch 1 x grad accum 4, 1024 tokens, r = 8 on attention and all 128 experts (202.6M trainable).

Kaggle 2x T4 Colab A100 40 GB
Notebook verdict every cell through the merged save passed; GGUF export ran out of disk, llama.cpp cell not run PASS, 24 / 24 code cells
Time per step 28.2 s 11.9 s
Peak reserved 12.27 GB (GPU 0), 13.53 GB (GPU 1) 23.42 GB
Loss, steps 1 to 10 0.479 to 0.763 0.480 to 0.770
Merged 16-bit save OK, 168 LoRA weights merged OK, 1116 tensors, 52.78 GB, LoRA targets changed, norms unchanged
GGUF q4_k_m not run (disk) 17.48 GB + 0.64 GB mmproj, export took 1274 s
llama.cpp (prebuilt b12631, CPU build) not run 6.2 tokens/s generation, 16.4 tokens/s prompt

llama.cpp output for "Continue the fibonacci sequence: 1, 1, 2, 3, 5, 8,": thinks briefly, then answers 13, 21, 34, 55, ....

Limits

  • The GGUF export writes the 53 GB merge and a 53 GB 16-bit GGUF before quantizing, about 150 GB in total. A Kaggle session's scratch disk went read-only during the second 53 GB write, so on Kaggle only the LoRA and merged saves work. The markdown says so.
  • A free Colab T4 cannot hold the model (14.4 GB of 4-bit weights); the notebook asserts at least 28 GB of GPU memory.
  • Unsloth installs a CPU build of llama.cpp, so the GGUF run uses the CPU.

Update 2026-11-23

Re-ran the Kaggle notebook as written on Kaggle 2x T4 against current unsloth main (2026.11.10) and unsloth_zoo main (eb9fa6b), which now include the Inkling memory changes (unslothai/unsloth#18959, unslothai/unsloth-zoo#2688), fused CE with lm_head LoRA (unslothai/unsloth-zoo#2697, unslothai/unsloth#18719) and flex attention (unslothai/unsloth#18943). Same settings: 10 steps, batch 1 x grad accum 4, 1024 tokens, r = 8.

Before (main f4768e0 + #19016) Now (current main)
Notebook verdict every cell through the merged save passed PASS, 23 / 23 code cells (merged and GGUF cells off, as shipped)
Time per step 28.2 s 26.6 s
Peak reserved 12.27 GB (GPU 0), 13.53 GB (GPU 1) 12.09 GB (GPU 0), 11.91 GB (GPU 1)
Loss, steps 1 to 10 0.479 to 0.763 0.479 to 0.760

The second T4 now peaks about 1.6 GB lower. The markdown under the training cell is updated to the new numbers. The merged 16-bit and GGUF cells need unslothai/unsloth#19016, which is being brought up to date with main; they will be re-checked once it merges.

QLoRA on Thinking Machines' Inkling-2-Mini (inkling2_loop, 26.4B total, 3.4B
active) over Kaggle's two T4s: 14.4 GB of 4-bit weights split across both
cards, about 28 s per step of 4 x 1024 tokens. Pins transformers 5.24.0, the
first release with Inkling 2, and trl 1.15.0 with datasets >= 4.7.0, and
installs unsloth and unsloth_zoo from main, since Inkling 2 support is newer
than the last release.

Adds the merged 16-bit save, the q4_k_m GGUF export and a llama.cpp run of the
GGUF, off by default like the other notebooks. The GGUF export needs about
150 GB of free disk, more than a Kaggle session has.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:28:49.352730Z a571191 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ab752bbf1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Current unsloth main peaks at 12.1 GB and 11.9 GB reserved on the two T4s, about 27 s per step.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: a5711910d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 1ee5c93 into main Nov 23, 2026
10 checks passed
@Winston-Hsiao

Copy link
Copy Markdown

awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants