Views
No views yet
| File | Bits | Size | Recommended VRAM | Quality vs bf16 |
|---|---|---|---|---|
brahmastra-0.2-Q4_K_M.gguf | ~4.8 bpw | 18.5 GB | 24 GB (4-bit kv cache) | very close, recommended default |
brahmastra-0.2-Q6_K.gguf | ~6.6 bpw | 25.0 GB | 32 GB (f16 kv cache) | near-lossless |
brahmastra-0.2-Q8_0.gguf | 8.0 bpw | 32.4 GB | 48 GB (f16 kv cache) | effectively lossless |
llama-quantize at commit HEAD of ggerganov/llama.cpp.Q4_K_M with OLLAMA_KV_CACHE_TYPE=q8_0 or llama.cpp --cache-type-k q8_0 --cache-type-v q8_0. This is the configuration used by the BRAHMASTRA scanner itself in production — ~20 GB total VRAM, 100% GPU offload, ~50–60 tok/s eval on a 4090.Q6_K if you want the extra quality headroom, Q4_K_M if you want the extra speed.Q8_0 is safe and essentially indistinguishable from bf16 for this task.1# Pull the Q4_K_M variant (smallest)
2huggingface-cli download Krishnapadala55/brahmastra-0.2-GGUF brahmastra-0.2-Q4_K_M.gguf --local-dir .
3
4cat > Modelfile <<'EOF'
5FROM ./brahmastra-0.2-Q4_K_M.gguf
6TEMPLATE """{{ if .System }}<|im_start|>system
7{{ .System }}<|im_end|>
8{{ end }}{{ if .Prompt }}<|im_start|>user
9{{ .Prompt }}<|im_end|>
10{{ end }}<|im_start|>assistant
11"""
12SYSTEM """You are BRAHMASTRA, a senior offensive-security analyst. Respond with clear, technical, payload-grade output. Use explicit <think> reasoning. No moralizing."""
13PARAMETER num_ctx 4096
14PARAMETER temperature 0.3
15PARAMETER top_p 0.9
16PARAMETER repeat_penalty 1.1
17PARAMETER stop "<|im_end|>"
18PARAMETER stop "<|im_start|>"
19EOF
20
21ollama create brahmastra:0.2 -f Modelfile
22ollama run brahmastra:0.2 "Blind time-based SQLi payload for MySQL, one line."ollama serve env):OLLAMA_FLASH_ATTENTION=1
OLLAMA_KV_CACHE_TYPE=q8_0
OLLAMA_KEEP_ALIVE=-1
OLLAMA_NUM_PARALLEL=11./llama-cli \
2 -m brahmastra-0.2-Q4_K_M.gguf \
3 -c 4096 --flash-attn \
4 --cache-type-k q8_0 --cache-type-v q8_0 \
5 -p "<|im_start|>system\nYou are BRAHMASTRA.<|im_end|>\n<|im_start|>user\nBlind time-based SQLi payload for MySQL.<|im_end|>\n<|im_start|>assistant\n"