Run this model with HF Jobs

Run focustiki/inkling2-mini-secagent-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/focustiki/inkling2-mini-secagent-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/focustiki/inkling2-mini-secagent-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

focustiki/inkling2-mini-secagent-lora: Secure & Token-Efficient Coding Agent (ft-inkling)

Trained with Halo 1.3.0 for the White Circle Halo Competition (ft-inkling track).

Overview

focustiki/inkling2-mini-secagent-lora is a rank-32 (lora_alpha=64, 29.47 MB) PEFT LoRA adapter over thinkingmachines/Inkling-2-Mini produced by losslessly composing two Halo post-training stages:

  1. Stage 1 β€” Smooth Margin Preference Optimization (SMPOTrainer): Reference-free margin alignment + 0.80 SFT anchor over decontaminated secure-vs-vulnerable code pairs (CyberNative/Code_Vulnerability_Security_DPO), unit-tested solutions (nvidia/OpenCodeInstruct), and general instruction replay (HuggingFaceH4/ultrachat_200k).
  2. Stage 2 β€” Verifiable + Policy Offline GRPO (OfflineGRPOTrainer): dapo loss with kl_beta=0.02 over multi-language backend/API tasks (LogicStar/BaxBench + OpenCodeInstruct) scored by Baseten Sandboxes execution + White Circle 21-policy OWASP/CWE security & quality control rules + token-efficiency conciseness shaping.

Quick Usage

import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoTokenizer

base_id = "thinkingmachines/Inkling-2-Mini"
adapter_id = "focustiki/inkling2-mini-secagent-lora"

tokenizer = AutoTokenizer.from_pretrained(base_id)
base_model = AutoModelForImageTextToText.from_pretrained(base_id, torch_dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(base_model, adapter_id)

3-Seed Held-Out Evaluation (1x NVIDIA H200, 280 Decontaminated Tasks, Seeds 42, 43, 44)

Metric Baseline (Inkling-2-Mini) Post-Trained (SecAgent)
secure_pass@1 (%) 53.18 70.3
functional_pass (%) 53.94 74.09
security_clean (%) 75.91 90.6
general_retention (%) 100.0 96.11
mean_output_tokens 730.23 349.13
tokens_per_second 110.7 55.8
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ 1 Ask for provider support

Model tree for focustiki/inkling2-mini-secagent-lora

Adapter
(105)
this model