Text Generation
PEFT
Safetensors
English
code
python
cybersecurity
vulnerability-detection
vulnerability-repair
secure-code-generation
conversational
Instructions to use abkmystery/PySecPatch-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use abkmystery/PySecPatch-7B 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, "abkmystery/PySecPatch-7B") - Notebooks
- Google Colab
- Kaggle
| cff-version: 1.2.0 | |
| message: "If you use PySecPatch-7B, please cite the model and accompanying paper." | |
| title: "PySecPatch-7B: Defensive Python Security Adapter" | |
| type: software | |
| authors: | |
| - family-names: Bin Khalid | |
| given-names: Ahmed | |
| email: ahmed.khalid2108@gmail.com | |
| orcid: "https://orcid.org/0000-0002-0616-2604" | |
| affiliation: "Independent Researcher" | |
| version: 0.1.1 | |
| doi: "10.5281/zenodo.21015885" | |
| date-released: 2026-06-28 | |
| license: Apache-2.0 | |
| repository-code: "https://github.com/abkmystery/PySecPatch" | |
| url: "https://huggingface.co/abkmystery/PySecPatch-7B" | |