CoolFace
Modelpublic

odoom/nixpkgs-security-lora

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes5downloads
Model Card

nixpkgs-security-lora (Deprecated)

This adapter is deprecated. Use odoom/nixpkgs-security-qwen-lora instead — Qwen 2.5 Coder 32B with multi-turn tool-calling, lower loss (0.54 vs 0.87), and higher accuracy (90% vs 80%).

What Changed

v2 (this repo)v3 (new repo)
Base modelMistral 7B Instruct v0.2Qwen 2.5 Coder 32B Instruct
FormatSingle-turn (system/user/assistant)Multi-turn tool-calling conversations
Loss0.8670.540
Token accuracy80.5%90.1%
Adapter size160 MB256 MB
Tool callingBroken (raw: true disabled it)Native Qwen 2.5 tool calling

Original Model Details (v2)

  • Base model: Mistral 7B Instruct v0.2
  • Method: QLoRA (4-bit NF4 quantization + LoRA rank 32)
  • Target: Cloudflare Workers AI @cf/mistral/mistral-7b-instruct-v0.2-lora
  • Adapter size: 160 MB
  • Training data: 586 complex security patches (version bumps filtered out)
  • Epochs: 3 (110 steps), ~61 minutes on NVIDIA L4

Training Metrics

MetricStartEnd
Loss1.1660.867
Token accuracy74.6%80.5%
Eval loss0.924
Eval accuracy78.4%

Changelog

  • v2 (2026-03-03): Retrained on filtered dataset — removed 763 version bump / hash-only examples.
  • v1 (2026-03-02): Initial training on 1,273 unfiltered examples.