Instructions to use Flexan/elsiddik-finsec_detector-GGUF 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 Flexan/elsiddik-finsec_detector-GGUF 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 Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Flexan/elsiddik-finsec_detector-GGUF: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 Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Flexan/elsiddik-finsec_detector-GGUF: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 Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Flexan/elsiddik-finsec_detector-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Flexan/elsiddik-finsec_detector-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Flexan/elsiddik-finsec_detector-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
- Ollama
How to use Flexan/elsiddik-finsec_detector-GGUF with Ollama:
ollama run hf.co/Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
- Unsloth Studio
How to use Flexan/elsiddik-finsec_detector-GGUF 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 Flexan/elsiddik-finsec_detector-GGUF 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 Flexan/elsiddik-finsec_detector-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Flexan/elsiddik-finsec_detector-GGUF to start chatting
- Pi
How to use Flexan/elsiddik-finsec_detector-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Flexan/elsiddik-finsec_detector-GGUF with Docker Model Runner:
docker model run hf.co/Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
- Lemonade
How to use Flexan/elsiddik-finsec_detector-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.elsiddik-finsec_detector-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Flexan/elsiddik-finsec_detector-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Flexan/elsiddik-finsec_detector-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Flexan/elsiddik-finsec_detector-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
GGUF Files for finsec_detector
These are the GGUF files for elsiddik/finsec_detector.
Note: this model has only been quantized to Q2_K, Q4_K_M, and Q8_0. Other quantizations may become available later.
Downloads
| GGUF Link | Quantization | Description |
|---|---|---|
| Download | Q2_K | Lowest quality |
| Download | Q4_K_M | Recommended: Perfect mix of speed and performance |
| Download | Q8_0 | Best quality |
| Download | f16 | Full precision, don't bother; use a quant |
Note from Flexan
I provide GGUFs and quantizations of publicly available models that do not have a GGUF equivalent available yet, usually for models I deem interesting and wish to try out.
If there are some quants missing that you'd like me to add, you may request one in the community tab. If you want to request a public model to be converted, you can also request that in the community tab. If you have questions regarding this model, please refer to the original model repo.
You can find more info about me and what I do here.
FineSec-Detector: Specialized Security LLM (Qwen2.5-Coder-7B-Instruct)
FineSec-Detector is a 7B parameter specialized cybersecurity Large Language Model fine-tuned on high-precision CVE vulnerability reports, real-world exploit benchmarks, and secure code repair patterns using Unsloth 4-bit QLoRA.
The model acts as an automated Senior Application Security (AppSec) Auditor. It audits source code, identifies vulnerabilities, classifies severity and CWE IDs, and produces ready-to-merge secure code patches in structured JSON.
Verified Benchmark Performance
Evaluating FineSec-Detector on multi-language vulnerability benchmarks (SQL Injection, RCE, XSS, Path Traversal, Insecure Deserialization, Buffer Overflows) yielded the following performance metrics:
| Metric | Score | Rating | Analysis |
|---|---|---|---|
| Precision Rate | 100.0% | Perfect | Zero false positives. Safe code is never misflagged. |
| Detection Recall | 83.3% | High | High-confidence detection across Python, C, JS, and Go. |
| F1 Rating Score | 90.9% | Outstanding | Superior overall vulnerability detection balance. |
Key Features
- Automated Vulnerability Detection: Audits Python, C/C++, JavaScript, Go, PHP, Java, and Bash source code.
- Structured JSON Output: Produces standardized security reports suitable for CI/CD pipeline integration.
- CWE and Severity Classification: Classifies bugs into standard CWE categories (e.g., CWE-89 SQLi, CWE-79 XSS, CWE-78 RCE, CWE-120 Buffer Overflow) with CVSS-aligned severity levels (CRITICAL, HIGH, MEDIUM, LOW).
- Remediation and Patching: Generates diffs and secure code refactors directly replacing vulnerable logic.
Quickstart: Inference
1. Using Unsloth (Fast and Memory Efficient)
from unsloth import FastLanguageModel
# Load model and tokenizer from Hugging Face Hub
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "elsiddik/finsec_detector",
max_seq_length = 1024,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
# Security audit prompt
prompt = """### System Prompt:
You are FineSec-AI, an expert Application Security Engineer. Analyze code snippet for vulnerabilities and output JSON report with fields: 'vulnerabilities' (list of objects with severity, cwe, description, vulnerable_line, fix_code).
### Input Code:
```python
import sqlite3
def login(username, password):
conn = sqlite3.connect('users.db')
cursor = conn.cursor()
query = f"SELECT * FROM users WHERE username = '{username}' AND password = '{password}'"
cursor.execute(query)
return cursor.fetchone()
Security Analysis (JSON):"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda") outputs = model.generate(**inputs, max_new_tokens=512, use_cache=True) print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
---
## Sample Output (Structured JSON)
```json
{
"is_vulnerable": true,
"severity": "CRITICAL",
"cwe": "CWE-89",
"vulnerability_type": "SQL Injection",
"description": "User input is directly concatenated into the SQL query string without parameterization, allowing unauthenticated SQL injection.",
"vulnerable_code": "query = f\"SELECT * FROM users WHERE username = '{username}' AND password = '{password}'\"",
"remediation": "Use parameterized SQL queries with placeholder parameters.",
"fixed_code": "query = 'SELECT * FROM users WHERE username = ? AND password = ?'\ncursor.execute(query, (username, password))"
}
Model Details
| Attribute | Details |
|---|---|
| Base Architecture | Qwen2.5-Coder-7B-Instruct |
| Fine-Tuning Method | QLoRA 4-bit (Unsloth) |
| LoRA Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| LoRA Rank (r) | 16 |
| LoRA Alpha | 32 |
| Context Window | 1024 tokens |
| License | Apache-2.0 |
Intended Use and Disclaimer
FineSec-Detector is designed for defensive security purposes, code auditing, secure code development, and AppSec integration. Users are responsible for exercising due diligence when integrating model output into production systems.
- Downloads last month
- -
2-bit
4-bit
8-bit
16-bit
Model tree for Flexan/elsiddik-finsec_detector-GGUF
Base model
Qwen/Qwen2.5-7B