Instructions to use nyxspecter4/kin-coder-7b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nyxspecter4/kin-coder-7b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct") model = PeftModel.from_pretrained(base_model, "nyxspecter4/kin-coder-7b-lora") - Notebooks
- Google Colab
- Kaggle
KIN-Coder 7B (LoRA)
LoRA adapter for Qwen/Qwen2.5-Coder-7B-Instruct (Apache-2.0). It carries KIN's cybersecurity habits (decode drills, security briefs, evidence discipline) onto a coding base, plus tool-use and agentic coding examples so it can drive a coding agent (Factory Droid) through OpenAI-style tool calls.
Served live, merged at load, in the Space nyxspecter4/kin-cybersec (ZeroGPU) with an OpenAI-compatible POST /v1/chat/completions that returns tool_calls.
Training
Status as measured. No benchmark score is claimed for this adapter.
| Method | QLoRA: nf4 4-bit base, fp16 compute, LoRA r 16 / alpha 32 / dropout 0.05 on q, k, v, o, gate, up, down |
| Run | Google Colab Tesla T4. 1 epoch, 152 optimizer steps, lr 1e-4 (cosine schedule, warmup), grad accumulation 8, maxlen 4096, assistant-only loss, seed 0 |
| Data used | 1,211 of 1,225 train rows (14 dropped for exceeding maxlen), 1,125,598 tokens |
| Train loss | 1.5236 β 0.2672 |
| Dev loss (39 held-out rows) | 1.5716 β 0.8423. From the run's own metrics.json. This is in-distribution loss, not a capability measure |
Agentic smoke tests (R1), 2026-11-27/28
| Test | This adapter | Plain Qwen2.5-Coder-7B-Instruct |
|---|---|---|
| Droid CLI, try 1 (add 2 passing tests to a small JS repo) | FAIL: 1 tool call, then narration, no file written | FAIL: 0 tool calls |
| Droid CLI, try 2 | FAIL: 0 tool calls | FAIL: 0 tool calls |
| Agent harness, one easy NYU CTF Bench challenge (30-turn cap) | FAIL: turn cap reached, 15 tool calls, no flag submitted | FAIL: turn cap reached, 2 tool calls, no flag submitted |
Both models fail R1. The adapter keeps calling tools a little longer, but neither model recovers from a bad path or finishes the task. This was one try per test. It is a smoke test, not a benchmark.
Data (SFT, assistant tokens only)
| Source | Rows | License |
|---|---|---|
| KIN curated set (Kinetigor library, built 2026-11-14; drills machine-verified, briefs unverified) | 519 | Kinetigor own |
nyxspecter4/kin-cyber-dpo-v2 sft.jsonl (random 200) |
200 | MIT |
NousResearch/hermes-function-calling-v1 func-calling.json (random 250 multi-turn, with tool responses) |
250 | Apache-2.0 |
| ise-uiuc/Magicoder-OSS-Instruct-75K (60 Python, 60 TypeScript, 30 shell) | 150 | MIT |
Synthetic Droid trajectories: Read β Create/Edit β Execute npm test β fix β green, on 29 small JS modules; every tool result is real node output captured during generation |
146 | Kinetigor own |
40 rows held out as dev. The trial task used to judge this model (a tapCounter test) is not in the data.
Lineage and evaluation
- Adapter
adapter_model.safetensors:- sha256
b57cd22f9bbb02f69fafc21774fb40ff73cd0dffee289d8ef518acf0b48a234f - 161,533,192 bytes
- The same bytes are held in Kinetigor's working copies.
- sha256
- Base model:
Qwen/Qwen2.5-Coder-7B-Instruct. - Training data, sha256 of the exact files:
- train.jsonl (1,225 rows):
f3307aeda24f53e82cc3cfe9b21cf8cc3d641b439a65579451720c5b2978e97f - dev.jsonl (40 rows):
15f18dfad036804a4c83824bcdb3c8f231acd6a88600bb0608b3ae2286d86fe3
- train.jsonl (1,225 rows):
- Training script sha256:
6173f48408946aefc047e41a420e53bc7b90a1c59ced084b844b1fb8f0a51c3e. - R1 status: FAIL, and the same FAIL for the base model (table above). No NYU CTF Bench or other benchmark score has been measured for this adapter.
- A v2 retrain (long multi-turn tool-use data, maxlen 8192) was started and stopped at step 34 of about 86 (Colab GPU limit). It has not been published.
- Its data contains agent sessions for 34 NYU CTF Bench challenges.
- Any future NYU score for v2 must exclude those 34 challenges.
- The full manifest (settings, shas, row counts, raw run receipts) is kept in Kinetigor's repo at
docs/kin/KIN-7B-LINEAGE.mdandkin/kin-7b-manifest.json. - Not this model:
- The "0/5 on NYU" result from 2026-11-14 was an earlier 4B KIN model.
- The 55-item KIN scorecard is a separate in-house eval.
Limits
- Small SFT (1.2k rows, 1 epoch). It is a style + tool-format adapter on a strong coder base, not a new capability.
- Unverified LLM-authored security briefs are part of the KIN slice.
- Downloads last month
- 10