ewedubs/linux-kernel-commits-aireason-instruct
Preview • Updated • 24
How to use gaowanlong/kernel-lora-v0.6 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir kernel-lora-v0.6 gaowanlong/kernel-lora-v0.6
This is a QLoRA fine-tuned version of Qwen2.5-7B-Instruct, specialized in Linux Kernel knowledge. The model was fine-tuned on an M1 Pro (32GB) using MLX, with training data distilled from Qwen-3.7-Max.
On a 39-question Linux Kernel knowledge test (LLM-as-judge scoring):
Best categories: Basic Concepts (+3.7%), Chinese Knowledge (-1.7%), Kernel Mechanisms (-3.7%)
from mlx_lm import load, generate
model, tokenizer = load("gaowanlong/kernel-lora-v0.6")
response = generate(
model, tokenizer,
prompt="What is the Linux kernel? Explain its role in an operating system.",
max_tokens=300,
)
print(response)
| Version | Data | Overall Delta | Best Category |
|---|---|---|---|
| v0.1 | Raw kernel source | -16.7% | - |
| v0.2 | gzb666 + kernel source | +2.8% | Code Completion |
| v0.3 | gzb666 QA format | -7.4% | Code Completion |
| v0.4 | Eval-aligned data | -5.1% | Basic Concepts |
| v0.5 | Ewedubs commits | -4.1% | Advanced Internals |
| v0.6 | Qwen-3.7-Max distilled | -4.9% | Basic Concepts +3.7% |
4-bit