Views
No views yet
| Filename | Quant Type | Size | Description |
|---|---|---|---|
cybersec-assistant-3b-Q4_K_M.gguf | Q4_K_M | 1.80 GB | Recommended — Best balance of quality and size (~31% of F16) |
cybersec-assistant-3b-Q5_K_M.gguf | Q5_K_M | 2.07 GB | Higher quality, slightly larger (~36% of F16) |
cybersec-assistant-3b-Q8_0.gguf | Q8_0 | 3.06 GB | Near-lossless quantization (~53% of F16) |
Modelfile:FROM ./cybersec-assistant-3b-Q4_K_M.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
SYSTEM "You are a cybersecurity expert assistant. You provide detailed, accurate guidance on network security, vulnerability assessment, incident response, penetration testing, and security best practices. You respond in the same language as the user's question."
PARAMETER temperature 0.7
PARAMETER top_p 0.8
PARAMETER top_k 20
PARAMETER stop "<|im_end|>"1ollama create cybersec-assistant -f Modelfile
2ollama run cybersec-assistant1# Interactive chat
2./llama-cli -m cybersec-assistant-3b-Q4_K_M.gguf \
3 -p "You are a cybersecurity expert assistant." \
4 --chat-template chatml \
5 -cnv
6
7# Server mode
8./llama-server -m cybersec-assistant-3b-Q4_K_M.gguf \
9 --host 0.0.0.0 --port 80801from llama_cpp import Llama
2
3llm = Llama(model_path="cybersec-assistant-3b-Q4_K_M.gguf", n_ctx=4096)
4
5response = llm.create_chat_completion(
6 messages=[
7 {"role": "system", "content": "You are a cybersecurity expert assistant."},
8 {"role": "user", "content": "Explain the MITRE ATT&CK framework and how it helps in threat detection."}
9 ],
10 temperature=0.7,
11 top_p=0.8,
12 top_k=20,
13)
14print(response["choices"][0]["message"]["content"])| Version | Link |
|---|---|
| Merged (SafeTensors) | AYI-NEDJIMI/CyberSec-Assistant-3B |
| LoRA Adapter | AYI-NEDJIMI/CyberSec-Assistant-3B-Adapter |
| GGUF (this repo) | AYI-NEDJIMI/CyberSec-Assistant-3B-GGUF |
| Portfolio Collection | AYI-NEDJIMI/CyberSec-AI-Portfolio |