AIToday
Large Language ModelsAI Safety & AlignmentQiita 機械学習Published: Dec 3, 2026, 16:00 JST

Ring -1 Kernel Surgeon: .r1m pack made, 13 dangerous cases remain

Send on LINE
Ring -1 Kernel Surgeon: .r1m pack made, 13 dangerous cases remain

3 Key Points

  1. What happened

    The pipeline trained MiniCPM5-1B on 300 validated patches, then packed the SFT model into a 2GiB .r1m file (2,147,483,648 bytes, 0.645 GiB used).

  2. Why it matters

    The model still showed 13 dangerous cases, so it cannot be deployed; the project treats the model as a proposer while deterministic code decides.

Ask AI

Ask the AI about this article. Questions and answers are published on this page

Context & Analysis

The write-up is less a launch than a reproducible lab notebook for putting a language model under an operating system. The author first had to solve a rental problem: the training's validation stage runs candidate patches on a real KVM, so the cloud machine had to expose /dev/kvm, a separate condition from having a GPU. After that gate passed, a local Qwen2.5-Coder-32B replaced an external API, and every teacher proposal was checked on KVM before becoming training data.

The training itself was split in two. SFT taught the model the right output shape, lifting accuracy on 122 evaluation cases from 0.0 to 0.393, but left 15 dangerous cases. GRPO then used KVM results as reward. Forty steps moved dangerous from 15 to 13; 300 steps lifted accuracy to 0.410 but left dangerous at 13. The author's reading is that the bottleneck is data volume and the 1B model's generalization, not step count, and notes the original project reported 97% accuracy and zero dangerous cases at 2B.

The security section explains why that matters. Ring -1 sits below the OS, and the worst failure is not a crash but a silent corrupt run, which the project labels dangerous. The design keeps the model as a proposer only, with decisions held by deterministic code and KVM validation, and treats the .r1m artifact as code that needs byte-level checks. Even so, the author says training-time checks cannot replace runtime guards in the hypervisor.

FAQ
Why is the /dev/kvm check the first step?
The training's validation stage runs candidate patches on a real KVM, so the rented machine needs /dev/kvm. GPU availability alone does not guarantee nested virtualization, and container-style rentals do not expose /dev/kvm.
How big is the packed model file?
The .r1m file is exactly 2,147,483,648 bytes, with actual used space of 0.645 GiB because the file is sparse. The Q4_K_M GGUF inside is 688,065,856 bytes.
Why did the final artifact use the SFT model?
The GRPO weights were not retrieved before the cloud instance was shut down, so only the SFT model remained. The artifact was named minicpm5-1b-surgeon-sft.r1m to make that clear.
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Related Articles

Next articleAi2's DR Tulu 2 matches 100x larger AI with 99.6% lower search cost