PEFT
Safetensors
halo
whitecircle-halo-competition
ft-inkling
inkling-2-mini
secure-code-generation
smpo
offline-grpo
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.
Instructions to use focustiki/inkling2-mini-secagent-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use focustiki/inkling2-mini-secagent-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("thinkingmachines/Inkling-2-Mini") model = PeftModel.from_pretrained(base_model, "focustiki/inkling2-mini-secagent-lora") - Notebooks
- Google Colab
- Kaggle
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:
- Stage 1 β Smooth Margin Preference Optimization (
SMPOTrainer): Reference-free margin alignment +0.80SFT 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). - Stage 2 β Verifiable + Policy Offline GRPO (
OfflineGRPOTrainer):dapoloss withkl_beta=0.02over 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
Base model
thinkingmachines/Inkling-2-Mini