Instructions to use DuyTa/Cyber-F1-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DuyTa/Cyber-F1-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DuyTa/Cyber-F1-AWQ") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("DuyTa/Cyber-F1-AWQ") model = AutoModelForMultimodalLM.from_pretrained("DuyTa/Cyber-F1-AWQ", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DuyTa/Cyber-F1-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DuyTa/Cyber-F1-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuyTa/Cyber-F1-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DuyTa/Cyber-F1-AWQ
- SGLang
How to use DuyTa/Cyber-F1-AWQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "DuyTa/Cyber-F1-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuyTa/Cyber-F1-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "DuyTa/Cyber-F1-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DuyTa/Cyber-F1-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DuyTa/Cyber-F1-AWQ with Docker Model Runner:
docker model run hf.co/DuyTa/Cyber-F1-AWQ
Cyber-F1-AWQ
Cyber-F1 is a security-domain large language model, instruction fine-tuned for cybersecurity
work and delivered here as a 4-bit weight-quantized checkpoint for on-premise deployment.
It is the LLM component of the secAI RAG stack, paired with
DuyTa/sec-embedding (retriever) and
DuyTa/sec-rerank (reranker).
Model
| Base | Qwen3.5-MoE, A3B (~35B total parameters, ~3B active) — Qwen3_5MoeForConditionalGeneration |
| Architecture | Mixture-of-Experts, 40 layers, 256 experts, 8 active experts/token |
| Hidden size | 2048, 16 attention heads |
| Max context | up to 262,144 tokens (native); served at 16k, effective accuracy to ~12k |
| Quantization | 4-bit weights, compressed-tensors / AWQ-style, group size 32 (pack-quantized) |
| Fine-tuning | Instruction tuning with LoRA (PEFT), then post-training weight quantization |
| Serving | vLLM (OpenAI-compatible endpoint), on-premise |
Training
Fine-tuned on secAI cybersecurity data drawn from the last five years of authoritative sources, then quantized for deployment:
- NVD — 173,473 CVEs (five most recent years)
- MITRE CWE — 768 weakness types, mapped to ~92% of CVEs
- CAPEC / ATT&CK — 443 / 174 entries
- Exploit-DB — 3,139 exploits (2021–2026)
The instruction-tuning set is 49,756 samples combining real data (~51k HF-public samples)
and task-targeted synthetic data, normalized (dedup, back-translation, QC cosine ≥ 0.7) and
labeled (CVE-ID, CWE-ID, severity, task, citation source). Data groups: security terminology,
RAG documents, instruction-tuning pairs, bilingual (EN/VI) data, and vulnerability
reports/analysis. Training datasets:
DuyTa/Cyber_F1_v2 and
DuyTa/cve-kgrag-db.
Training hardware: 2×A100 80GB.
Fine-tuning is multi-task, covering: translation, vulnerability reporting, pentest guidance, exploit-code drafting and explanation, static analysis (SAST), auto-remediation, and agentic tool use.
Acceptance (nghiệm thu) — reported KPIs
Evaluated on a 1,000-sample security test set (40% CVE identification/classification, 40% remediation advice, 20% real-world scenario reasoning). All KPIs met their acceptance thresholds. Raw per-sample logs and evaluation code are delivered with the acceptance package.
Answer quality (RAG):
| Metric | Result | Target | Pass |
|---|---|---|---|
| Faithfulness | 98.48% | ≥ 98% | ✅ |
| Answer Relevance | 92.88% | ≥ 90% | ✅ |
| Entity Precision (CVE/CWE) | 100% | = 100% | ✅ |
| Hallucination Rate | 0.8% | < 2% | ✅ |
Task capabilities:
| Capability | Result | Target | Pass |
|---|---|---|---|
| Exploit explanation | 100% (60/60) | ≥ 85% | ✅ |
| Auto-remediation | 100% (60/60) | ≥ 60% | ✅ |
| Static analysis (SAST, OWASP Top 10 / CWE Top 25) | 85% (51/60) | ≥ 85% | ✅ |
Performance (NVIDIA A100 80GB, full chatflow Hybrid Search → Rerank → LLM):
| Metric | Result | Target | Pass |
|---|---|---|---|
| Chatflow throughput | 105.6 tok/s | ≥ 25 tok/s | ✅ |
| LLM decode speed | ~25–35 tok/s (probe ≥ 28) | ≥ 28 tok/s | ✅ |
| TTFT | ~900–1,500 ms | — | ✅ |
| Concurrency | ~30 users, ~0.6–0.7 RPS on 3×A100 80GB | — | ✅ |
Minimum serving hardware: 1×A100 80GB, RAM ≥ 128GB, SSD ≥ 2TB.
Usage
# vLLM, OpenAI-compatible endpoint
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8001/v1", api_key="EMPTY")
resp = client.chat.completions.create(
model="DuyTa/Cyber-F1-AWQ",
messages=[{"role": "user", "content": "What is CVE-2025-0282? Give CVSS, impact, affected products, and remediation."}],
)
print(resp.choices[0].message.content)
License
Released under Apache-2.0 for on-premise deployment. The base model is a Qwen3.5-MoE checkpoint; credit for the base weights belongs to the Qwen team.
- Downloads last month
- 602