Safetensors
GGUF
English
Spanish
qwen2
qwen
qwen2.5
cybersecurity
pentesting
red-team
unsloth
conversational
Instructions to use k3ssdev/Qwen2.5-Coder-3B-Pentest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use k3ssdev/Qwen2.5-Coder-3B-Pentest with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M # Run inference directly in the terminal: llama cli -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M # Run inference directly in the terminal: llama cli -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
Use Docker
docker model run hf.co/k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use k3ssdev/Qwen2.5-Coder-3B-Pentest with Ollama:
ollama run hf.co/k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
- Unsloth Studio
How to use k3ssdev/Qwen2.5-Coder-3B-Pentest with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for k3ssdev/Qwen2.5-Coder-3B-Pentest to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for k3ssdev/Qwen2.5-Coder-3B-Pentest to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for k3ssdev/Qwen2.5-Coder-3B-Pentest to start chatting
- Docker Model Runner
How to use k3ssdev/Qwen2.5-Coder-3B-Pentest with Docker Model Runner:
docker model run hf.co/k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
- Lemonade
How to use k3ssdev/Qwen2.5-Coder-3B-Pentest with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull k3ssdev/Qwen2.5-Coder-3B-Pentest:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-Coder-3B-Pentest-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,32 +12,98 @@ tags:
|
|
| 12 |
language:
|
| 13 |
- en
|
| 14 |
- es
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# 🛡️ Qwen2.5-Coder-3B-Pentest (Red Team Copilot)
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
Este modelo es un *fine-tuning* especializado de **Qwen 2.5 Coder 3B Instruct**, diseñado para actuar como un **Copiloto Táctico ("Hacking Buddy")** en tareas de ciberseguridad ofensiva, análisis de vulnerabilidades y automatización de comandos de terminal.
|
| 20 |
|
| 21 |
Al estar disponible en formato **GGUF** y pesar poco, está fuertemente optimizado para ser desplegado en entornos **Edge AI** (100% offline), como Raspberry Pi o dispositivos móviles integrados con motores C++ como `llama.cpp` o `lite-cpp-ai`.
|
| 22 |
|
| 23 |
-
## 🎯 Objetivo del Modelo
|
| 24 |
|
| 25 |
A diferencia de un LLM generalista, este modelo ha sido ajustado para:
|
| 26 |
-
- **Precisión Técnica:** Generar flags exactas para herramientas de terminal (`nmap`, `netcat`, `tcpdump`, `iptables`).
|
| 27 |
-
- **Scripts Ofensivos/Defensivos:** Automatizar tareas de seguridad en Python (ej. uso de `scapy`, `requests`).
|
| 28 |
-
- **Análisis Rápido:** Interpretar trazas de red y *logs* de seguridad.
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
| 40 |
-
### Opción A: Uso Offline (Recomendado - GGUF)
|
| 41 |
El repositorio incluye el archivo cuantizado `Qwen2.5-Coder-3B-Pentest-Q4_K_M.gguf`. Puedes ejecutarlo con `llama.cpp`:
|
| 42 |
|
| 43 |
```bash
|
|
@@ -45,7 +111,7 @@ El repositorio incluye el archivo cuantizado `Qwen2.5-Coder-3B-Pentest-Q4_K_M.gg
|
|
| 45 |
|
| 46 |
```
|
| 47 |
|
| 48 |
-
### Opción B: Uso con Transformers (Python)
|
| 49 |
|
| 50 |
Puedes cargar los tensores completos (`.safetensors`) usando la librería estándar de Hugging Face:
|
| 51 |
|
|
@@ -63,10 +129,11 @@ print(tokenizer.decode(outputs[0]))
|
|
| 63 |
|
| 64 |
```
|
| 65 |
|
| 66 |
-
## ⚠️ Disclaimer Legal y de Uso (Intended Use)
|
| 67 |
|
| 68 |
**Este modelo se proporciona EXCLUSIVAMENTE con fines educativos, de investigación y para auditorías de seguridad autorizadas (Red Teaming / Blue Teaming).**
|
| 69 |
|
| 70 |
* El modelo carece de ciertos filtros de alineación (censura) para poder analizar código malicioso y generar pruebas de concepto (PoCs).
|
| 71 |
* El usuario es el único responsable de asegurar que tiene permiso explícito y legal para evaluar o atacar cualquier infraestructura de red.
|
| 72 |
* El creador del modelo no se hace responsable de los daños directos o indirectos derivados del mal uso de los comandos o scripts generados por esta IA.
|
|
|
|
|
|
| 12 |
language:
|
| 13 |
- en
|
| 14 |
- es
|
| 15 |
+
datasets:
|
| 16 |
+
- tuandunghcmut/Trendyol-Cybersecurity-Instruction-Tuning-Dataset
|
| 17 |
---
|
| 18 |
|
| 19 |
# 🛡️ Qwen2.5-Coder-3B-Pentest (Red Team Copilot)
|
| 20 |
|
| 21 |
+
*[English Version below | Versión en Español más abajo]*
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
## 🇬🇧 English Version
|
| 26 |
+
|
| 27 |
+
This model is a specialized fine-tuning of **Qwen 2.5 Coder 3B Instruct**, designed to act as a **Tactical Copilot ("Hacking Buddy")** for offensive cybersecurity tasks, vulnerability analysis, and terminal command automation.
|
| 28 |
+
|
| 29 |
+
Being available in **GGUF** format and highly lightweight, it is strongly optimized for deployment in **Edge AI** environments (100% offline), such as Raspberry Pi or mobile devices integrated with C++ engines like `llama.cpp` or `lite-cpp-ai`.
|
| 30 |
+
|
| 31 |
+
### 🎯 Model Objective
|
| 32 |
+
Unlike a generalist LLM, this model has been fine-tuned to:
|
| 33 |
+
- **Technical Accuracy:** Generate exact flags for terminal tools (`nmap`, `netcat`, `tcpdump`, `iptables`).
|
| 34 |
+
- **Offensive/Defensive Scripts:** Automate security tasks in Python (e.g., using `scapy`, `requests`).
|
| 35 |
+
- **Rapid Analysis:** Interpret network traces and security logs.
|
| 36 |
+
|
| 37 |
+
### 🛠️ Training Details
|
| 38 |
+
- **Base Model:** `Qwen/Qwen2.5-Coder-3B-Instruct`
|
| 39 |
+
- **Technique:** QLoRA (Rank 32, Alpha 32)
|
| 40 |
+
- **Framework:** Unsloth
|
| 41 |
+
- **Dataset:** `tuandunghcmut/Trendyol-Cybersecurity-Instruction-Tuning-Dataset`
|
| 42 |
+
- **Training Hardware:** NVIDIA RTX 4080 (Local)
|
| 43 |
+
|
| 44 |
+
### 💻 How to Use
|
| 45 |
+
|
| 46 |
+
#### Option A: Offline Use (Recommended - GGUF)
|
| 47 |
+
The repository includes the quantized file `Qwen2.5-Coder-3B-Pentest-Q4_K_M.gguf`. You can run it with `llama.cpp`:
|
| 48 |
+
```bash
|
| 49 |
+
./llama-cli -m Qwen2.5-Coder-3B-Pentest-Q4_K_M.gguf -p "Write an nmap command to scan for hidden UDP ports."
|
| 50 |
+
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
#### Option B: Use with Transformers (Python)
|
| 54 |
+
|
| 55 |
+
You can load the full tensors (`.safetensors`) using the standard Hugging Face library:
|
| 56 |
+
|
| 57 |
+
```python
|
| 58 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 59 |
+
|
| 60 |
+
model_id = "k3ssdev/Qwen2.5-Coder-3B-Pentest"
|
| 61 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 62 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
|
| 63 |
+
|
| 64 |
+
prompt = "Generate a Python script to discover hosts on a local network."
|
| 65 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 66 |
+
outputs = model.generate(**inputs, max_new_tokens=200)
|
| 67 |
+
print(tokenizer.decode(outputs[0]))
|
| 68 |
+
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### ⚠️ Legal and Intended Use Disclaimer
|
| 72 |
+
|
| 73 |
+
**This model is provided EXCLUSIVELY for educational purposes, research, and authorized security audits (Red Teaming / Blue Teaming).**
|
| 74 |
+
|
| 75 |
+
* The model lacks certain alignment filters (censorship) in order to analyze malicious code and generate Proof of Concepts (PoCs).
|
| 76 |
+
* The user is solely responsible for ensuring they have explicit and legal permission to evaluate or attack any network infrastructure.
|
| 77 |
+
* The creator of this model is not responsible for any direct or indirect damage resulting from the misuse of the commands or scripts generated by this AI.
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## 🇪🇸 Versión en Español
|
| 82 |
+
|
| 83 |
Este modelo es un *fine-tuning* especializado de **Qwen 2.5 Coder 3B Instruct**, diseñado para actuar como un **Copiloto Táctico ("Hacking Buddy")** en tareas de ciberseguridad ofensiva, análisis de vulnerabilidades y automatización de comandos de terminal.
|
| 84 |
|
| 85 |
Al estar disponible en formato **GGUF** y pesar poco, está fuertemente optimizado para ser desplegado en entornos **Edge AI** (100% offline), como Raspberry Pi o dispositivos móviles integrados con motores C++ como `llama.cpp` o `lite-cpp-ai`.
|
| 86 |
|
| 87 |
+
### 🎯 Objetivo del Modelo
|
| 88 |
|
| 89 |
A diferencia de un LLM generalista, este modelo ha sido ajustado para:
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
* **Precisión Técnica:** Generar flags exactas para herramientas de terminal (`nmap`, `netcat`, `tcpdump`, `iptables`).
|
| 92 |
+
* **Scripts Ofensivos/Defensivos:** Automatizar tareas de seguridad en Python (ej. uso de `scapy`, `requests`).
|
| 93 |
+
* **Análisis Rápido:** Interpretar trazas de red y *logs* de seguridad.
|
| 94 |
|
| 95 |
+
### 🛠️ Detalles del Entrenamiento
|
| 96 |
+
|
| 97 |
+
* **Modelo Base:** `Qwen/Qwen2.5-Coder-3B-Instruct`
|
| 98 |
+
* **Técnica:** QLoRA (Rank 32, Alpha 32)
|
| 99 |
+
* **Framework:** Unsloth
|
| 100 |
+
* **Dataset:** `tuandunghcmut/Trendyol-Cybersecurity-Instruction-Tuning-Dataset`
|
| 101 |
+
* **Hardware de Entrenamiento:** NVIDIA RTX 4080 (Local)
|
| 102 |
+
|
| 103 |
+
### 💻 Cómo utilizarlo
|
| 104 |
|
| 105 |
+
#### Opción A: Uso Offline (Recomendado - GGUF)
|
| 106 |
|
|
|
|
| 107 |
El repositorio incluye el archivo cuantizado `Qwen2.5-Coder-3B-Pentest-Q4_K_M.gguf`. Puedes ejecutarlo con `llama.cpp`:
|
| 108 |
|
| 109 |
```bash
|
|
|
|
| 111 |
|
| 112 |
```
|
| 113 |
|
| 114 |
+
#### Opción B: Uso con Transformers (Python)
|
| 115 |
|
| 116 |
Puedes cargar los tensores completos (`.safetensors`) usando la librería estándar de Hugging Face:
|
| 117 |
|
|
|
|
| 129 |
|
| 130 |
```
|
| 131 |
|
| 132 |
+
### ⚠️ Disclaimer Legal y de Uso (Intended Use)
|
| 133 |
|
| 134 |
**Este modelo se proporciona EXCLUSIVAMENTE con fines educativos, de investigación y para auditorías de seguridad autorizadas (Red Teaming / Blue Teaming).**
|
| 135 |
|
| 136 |
* El modelo carece de ciertos filtros de alineación (censura) para poder analizar código malicioso y generar pruebas de concepto (PoCs).
|
| 137 |
* El usuario es el único responsable de asegurar que tiene permiso explícito y legal para evaluar o atacar cualquier infraestructura de red.
|
| 138 |
* El creador del modelo no se hace responsable de los daños directos o indirectos derivados del mal uso de los comandos o scripts generados por esta IA.
|
| 139 |
+
```
|