Hemlock-Inkling2-Mini-LoRA

A LoRA adapter for Inkling 2 Mini (26.4B total, 3.4B active) that teaches it Hemlock, a systems scripting language with manual memory and async built on real threads. Base Inkling has essentially never seen Hemlock and writes Python-shaped code that fails to parse.

On hembench it scores 77.2%, against 9.6% for the base model.

Results

hembench: 38 tasks in six levels. Every answer is run by the Hemlock 2.16 interpreter and judged on its output. Three runs each at reasoning effort none; tasks passed out of 38, unweighted.

model hembench runs
this adapter (SFT + RL) 77.2% 29, 29, 30
B4-27B (our dense 27B, Qwen-based, trained on Hemlock) 73.7% 28, 28
Inkling 2 Mini + 6.7 KB cheat sheet in the prompt 71.9% 29, 26, 27
SFT only (the starting point for RL) 69.3% 26, 27, 26
Inkling 2 Mini 9.6% 5, 3, 3

By level (mean tasks passed per run): L1 syntax 6.7/9, L2 standard library 2.7/5, L3 algorithms 6.7/7, L4 systems 5.7/7, L5 translation 4.0/5, L6 debugging 3.7/5.

hembench score for 27 of the 39 configurations we tried

This is the best of 39 configurations from a sweep on Tinker's free tier. The write-up, with what worked and what didn't (DPO from base, most hyperparameters, a second round of rejection sampling), is on our blog: Training Inkling 2 Mini on a Novel Programming Language.

Training

  • SFT: one epoch of LoRA SFT on 5,179 Hemlock rows (language docs and semantics, execution-verified programs, and C/Python programs translated to Hemlock and checked against the original's output); none share a prompt with hembench. Rank 32, alpha 32, learning rate 2e-4 with linear decay, batch 32, loss on the answer only, no thinking.
  • RL: 74 steps of GRPO-style RL (importance sampling, 8 samples per prompt, 32 prompts per step) from the SFT adapter. The reward is 1 when the program runs under Hemlock 2.16 and prints exactly the expected output, else 0.
  • Trained on Tinker. The adapter targets attention, the MoE experts and the output head.

Usage

The adapter is in PEFT format. Use reasoning effort none: training removed the model's thinking, and higher effort does not help.

Known issue: vLLM's Inkling support only accepts LoRA on the attention modules, so loading this adapter there fails with an "expected target modules" error. Most of the adapter's weights are in the experts, so an attention-only version would not behave the same.

Limitations

  • Hemlock 2.16. The language still changes; some older idioms in the training data no longer run.
  • The standard library is the weak spot (2.7 of 5 L2 tasks).
  • The RL result is a single seed. SFT seeds alone spanned 69.3% to 73.7%.

Part of Klecks, Schneewolf Labs' adapter series for Inkling.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for hemlang/Hemlock-Inkling2-Mini-LoRA

Adapter
(24)
this model