1# With our Fable heretic GGUF (recommended — uncensored + cyber)
2llama-server \
3 -m /models/Agents-A1-4B-Fable-Preview-heretic-F16.gguf \
4 --lora-scaled /models/cyber_lora_v1.gguf:0.5 \
5 --host 0.0.0.0 --port 8080 \
6 --n-gpu-layers 999 \
7 --ctx-size 32768 \
8 --flash-attn on \
9 --cont-batching \
10 --mlock \
11 --temp 0.95 \
12 --top-k 40 \
13 --top-p 0.9 \
14 --min-p 0.0 \
15 -n -1 \
16 --no-mmap \
17 --parallel 1 --tools all \
18 --dry-multiplier 0.0 \
19 --jinja --dry-sequence-breaker none --repeat-penalty 1.1
20
21# Or with our Kimi heretic GGUF (coding-focused base)
22llama-server \
23 -m /models/Agents-A1-4B-kimi-Preview-heretic-IQ4_NL.gguf \
24 --lora-scaled /models/cyber_lora_v1.gguf:0.5 \
25 --host 0.0.0.0 --port 8080 \
26 --n-gpu-layers 999 \
27 --ctx-size 32768 \
28 --flash-attn on \
29 --cont-batching \
30 --mlock \
31 --temp 0.95 \
32 --top-k 40 \
33 --top-p 0.9 \
34 --min-p 0.0 \
35 -n -1 \
36 --no-mmap \
37 --parallel 1 --tools all \
38 --dry-multiplier 0.0 \
39 --jinja --dry-sequence-breaker none --repeat-penalty 1.1
40
41# CLI quick test
42llama-cli -m Agents-A1-4B-Fable-Preview-heretic-F16.gguf \
43 --lora-scaled cyber_lora_v1.gguf:0.5 \
44 -p "What is SQL injection and how do I prevent it?" -n 256
1from transformers import AutoModelForCausalLM, AutoTokenizer
2from peft import PeftModel
3
4base = "InternScience/Agents-A1-4B"
5adapter = "hotdogs/Agents-A1-4B-cyber-lora"
6
7model = AutoModelForCausalLM.from_pretrained(base, torch_dtype="auto", device_map="auto", trust_remote_code=True)
8model = PeftModel.from_pretrained(model, adapter)
9tokenizer = AutoTokenizer.from_pretrained(adapter)
10
11messages = [
12 {"role": "system", "content": "You are an elite AI security expert specializing in offensive security, defensive strategies, threat intelligence, incident response, and vulnerability analysis."},
13 {"role": "user", "content": "What is SQL injection and how do I prevent it?"},
14]
15inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt")
16outputs = model.generate(inputs, max_new_tokens=256, temperature=0.6)
17print(tokenizer.decode(outputs[0]))
1# Thai prompt via llama-cli
2llama-cli -m Agents-A1-4B-Fable-Preview-heretic-F16.gguf \
3 --lora-scaled cyber_lora_v1.gguf:0.5 \
4 --flash-attn on --cont-batching --mlock \
5 --temp 0.95 --top-k 40 --top-p 0.9 --min-p 0.0 \
6 --no-mmap --parallel 1 --tools all \
7 --dry-multiplier 0.0 --jinja --dry-sequence-breaker none \
8 -p "SQL injection คืออะไร ป้องกันยังไง" -n 256
This model is fine-tuned on cybersecurity content including offensive techniques. Use it
only for authorized security testing, education, and defensive purposes. The authors are
not responsible for any misuse. Always follow applicable laws and obtain permission before
testing systems you do not own.