Vertex-Core-Sec (Turn-Mode SFT GGUF)
Autonomous DevSecOps and security auditing agent fine-tuned using a strict Turn-Mode SFT strategy and verified through rigorous Vertex Training Gates.
Architecture & Training Methodology
- Base Model:
Qwen2.5-Coder-3B-Instruct(4-bit quantized via Unsloth) - Methodology: Turn-mode supervised fine-tuning adapted from the Gemma/Weeden agent engineering kit. Gradients and loss were computed exclusively on the assistant's reasoning (
<think>) and unified git diff patch outputs, masking out the system instructions, vulnerability reports, and raw source code (ignore_index = -100). - Hardware Environment: Trained on Kaggle accelerated 4x L4/T4 infrastructure and exported locally to GGUF format (
Q4_K_M) for local execution on Windows/Linux nodes.
Training Hyperparameters
- Rank ($r$): 16
- Lora Alpha ($\alpha$): 32
- Dropout: 0.05
- Target Modules:
q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj - Epochs: 2 (optimized on high-quality Rejection-Sampled Gold traces)
- Optimizer: AdamW (PyTorch native)
Pre-Exportation Validation (Vertex Gates)
The model successfully passed all 3 post-training gates prior to GGUF packaging:
- Finite Loss Convergence: Stable downward trajectory without gradient explosion.
- Logit Shift Bounds: Maximum absolute logit deviation ($\max |\Delta \text{logit}|$) kept within safe functional thresholds relative to the base model.
- Structural Agreement: $>85%$ preservation of foundational tool-calling and JSON/diff generation syntax.
Usage with LM Studio & Ollama
This repository contains the Q4_K_M.gguf binary optimized for low-latency local inference on developer workstations (e.g., NVIDIA GTX 1660 Ti setups).
# Example invocation via llama-cli
./llama-cli --model Qwen2.5-Coder-3B-Instruct.Q4_K_M.gguf -p "Analyze and patch the vulnerability..."