KIN-Coder 7B (LoRA)
adapter for coding, cybersecurity, and agent workflows
2 min readupdated
This LoRA (a lightweight add-on on top of a base model) equips Qwen/Qwen2.5-Coder-7B-Instruct with cybersecurity skills and external tool-calling capabilities. It trains the model to analyze encodings, write fact-grounded security summaries, and drive the Factory Droid coding agent via OpenAI API-style calls. You get structured tool_calls for development automation alongside domain-specific infosec answers. It is a solid fit for AI agent developers and security practitioners who want a compact 7B model with function calling and a cybersecurity focus.
Key features
- Built on the popular Qwen/Qwen2.5-Coder-7B-Instruct coding model under an open Apache-2.0 license.
- Supports multi-step tool calling (
tool_calls) compatible with OpenAI'sPOST /v1/chat/completionsformat. - Trained on real agent trajectories: reading files, writing and editing code, running
npm test, and fixing bugs. - Includes specialized cybersecurity and encoding exercises from the curated KIN dataset.
What you can do
- Hook it up as a backend for the Factory Droid coding agent or similar systems that automatically write and test JS modules.
- Deploy it via the
peftlibrary on top of the base Qwen2.5-Coder-7B-Instruct for a local assistant with function-calling support. - Automate basic cybersecurity tasks, data decoding, and initial incident triage.
Example
In a workflow based on a training trajectory, the model receives a task to build a small JS module, calls tools step by step to read existing code and create or edit files, runs npm test, parses the live Node.js output, and iterates on fixes until all tests pass.
Read more
DetailsTraining: SFT (Supervised Fine-Tuning) on assistant tokens only, run for 1 epoch on ~1.2k examples (with 40 held out for validation).
Dataset mix: 519 rows from the KIN curated set, 250 examples from Hermes Function Calling v1, 200 from kin-cyber-dpo-v2, 150 from Magicoder-OSS-Instruct-75K (Python, TypeScript, shell), and 146 synthetic Droid trajectories.
Limitations: this is a lightweight style and tool-format adapter on top of a strong base model rather than a full standalone model; some security summaries in the dataset were LLM-generated without human review.










Comments