Hemlock-Inkling2-Mini-LoRA
adapter for code generation in Hemlock
2 min readupdated
This LoRA adapter trains the Inkling 2 Mini model (26.4 billion total parameters, 3.4 billion active) on the Hemlock systems programming language with manual memory management and thread-based asynchronous processing. The base model has never seen Hemlock and writes Python-style code that fails to parse. Created using SFT (supervised fine-tuning) and GRPO-style RL (reinforcement learning), the adapter enables the model to confidently solve syntax, algorithm, and systems tasks. This new release will appeal to developers testing new programming languages and exploring MoE (mixture of experts) model fine-tuning capabilities.
Key features
- Accuracy boost: On the hembench benchmark, the adapter scores 77.2% compared to 9.6% for the base model.
- Hybrid training: Utilizes one SFT epoch on 5,179 lines of code and 74 RL steps verified by the Hemlock 2.16 interpreter.
- Broad weight coverage: The adapter touches attention, MoE experts, and the model output head.
- Zero hesitation: Training removed the internal model "thinking", requiring zero reasoning effort (reasoning effort none).
What you can do
- Code integration: Generate working scripts and system programs in Hemlock.
- Benchmark testing: Test algorithmic tasks and translate code from C/Python to Hemlock.
- Program debugging: Use the adapter to find errors in code written in new versions of systems languages.
Example
Use the adapter in PEFT format with reasoning mode disabled (reasoning effort none), as training removed this capability from the model.
Read more
DetailsBenchmark: hembench (77.2% successful tasks vs. 9.6% for the base)
Training: SFT (rank 32, alpha 32, LR 2e-4) + 74 RL steps
Limitations: vLLM support does not work due to touching MoE expert weights; weak standard library (2.7 out of 5 tasks)
Base model: thinkingmachines/Inkling-2-Mini










Comments