Qwen2.5-Coder-7B-Instruct-Triade
precise code editor powered by Qwen
2 min readupdated
This model is a specialized fine-tune of the base Qwen2.5-Coder-7B-Instruct architecture, trained using the TRIADE protocol. It is optimized to generate strict JSON responses when editing machine code under the control of a secure decoder. This approach eliminates invalid operations and strictly controls the output format. The release targets developers building automated refactoring tools and source code manipulation pipelines.
Key features
- TRIADE protocol: Uses structured SFT and DPO training on a specialized corpus.
- Fail-closed mask: Rejects any operations outside the allowed list at the decoding level.
- Ready-made quantizations: Includes compiled GGUF versions for fast integration.
- Baseline metrics preserved: Matches original performance on code editing and addition benchmarks.
What you can do
- Refactoring tools: Connect the model to a local server to automatically modify code via JSON operations.
- Developer assistant: Use for targeted file editing in development pipelines without the risk of receiving an incorrect response format.
- Hybrid deployment: Run the original base model alongside a separate DPO adapter on the fly.
- Local deployment: Deploy a lightweight version of the model via llama.cpp for offline work.
Example
llama-server -m Qwen2.5-Coder-7B-Instruct-Triade-SFT-DPO-v1-Q6_K.gguf --port 8080 -c 8192 -ngl 99Read more
Details• Benchmarks: stable execution of 17/18 edits and 14/18 additions on the internal TRIADE test.
• Requirements: Q4_K_M and Q6_K formats optimized for consumer and server hardware.
• Training: QLoRA NF4 fp16 using industry datasets and weight control.
• License: Apache-2.0 base weights, TRIADE artifacts under BSL 1.1 license.










Comments