Vex-35B-A3B-CyberAgent

Vex-35B-A3B-CyberAgent is a 35.1B-total / 3B-active Mixture-of-Experts (MoE) autonomous cybersecurity & tool-calling agent model fine-tuned in full BF16 LoRA from j4n4/Huihui-Agents-A1-abliterated (verified mirror of huihui-ai/Huihui-Agents-A1-abliterated, abliterated from InternScience/Agents-A1 — Qwen3_5MoeForConditionalGeneration, 256 routed experts with top-8 routing, 40 hybrid GatedDeltaNet linear + full attention layers, 262K native context).

As the high-speed MoE sibling to j4n4/Nyx-27B-CyberAgent (27.4B dense), Vex-35B-A3B-CyberAgent combines Agents-A1's frontier long-horizon agentic foundation (GAIA 96.0 / IFEval 94.8) with 105,426 curated, refusal-filtered cybersecurity & tool-calling conversations (~71.80M tokens) — delivering 5× faster local inference (48–53 tok/s on Apple M1 Max 64 GB) for real-time autonomous pentesting and security auditing loops.

Model Family & Variants

Repository Format Disk Size M1 Max 64 GB Speed Recommended Hardware
j4n4/Vex-35B-A3B-CyberAgent (this repo) Transformers BF16 (merged) 65.42 GB — 80–96 GB GPU (A100/H100/RTX PRO 6000) / vLLM / SGLang
j4n4/Vex-35B-A3B-CyberAgent-MLX-bf16 MLX BF16 lossless (733 tensors) 64.56 GiB Requires 96 GB+ RAM Apple Silicon 96–192 GB+ / Custom MLX Quantization
j4n4/Vex-35B-A3B-CyberAgent-MLX-OptiQ-8bit MLX OptiQ Mixed 8/16-bit (9.08 bpw, 329×16b + 182×8b) 37.5 GB 47.7 – 49.4 tok/s (39.5 GB RAM) Apple Silicon 64 GB+ (Highest Fidelity Mac Build)
j4n4/Vex-35B-A3B-CyberAgent-MLX-OptiQ-6bit MLX OptiQ Mixed 6/8/16-bit (7.16 bpw, 291×16b + 38×8b + 182×6b) 29.6 GB 52.4 – 53.2 tok/s (31.2 GB RAM) Apple Silicon 48–64 GB (Fastest Daily-Driver Mac Build)

Training Recipe

Curated Dataset Composition (~71.80M Training Tokens, Plan B Full 3-in-1)

All datasets were deduplicated, scrubbed of canned safety refusals (891 refusal samples removed) and failed agent runs, and re-rendered natively with InternScience/Agents-A1's chat_template.jinja + XML <tool_call><function=...><parameter=...> schema (enable_thinking=False):

Source Dataset Kept Samples Tokens Curation Notes
Vyber07/cyber-security 98,980 62.40M Offensive/defensive security Q&A, CVE/exploit analysis, code auditing, blue-team detection; 885 refusals filtered
NousResearch/hermes-function-calling-v1 8,260 8.94M Converted to native qwen3_coder XML <tool_call> format; acts as tool-calling anchor
cx-cmu/agent_trajectories 397 1.89M swebench, terminalbench, mcpbench — passing trajectories only (reward >= 1.0 / >= 5.0); 2,523 failed runs removed
Train / Val Split (max_seq_len=8192) 105,426 / 2,152 71.80M train 98% / 2% split, sequence-packed to 8,772 zero-waste rows

Hyperparameters & Convergence

  • Hardware & Framework: NVIDIA RTX PRO 6000 Blackwell (96 GB VRAM), Unsloth 2026.11.13 + TRL 1.15.0 + Transformers 5.17.0 + PyTorch 2.14.1+cu130
  • Method: Full BF16 LoRA (load_in_4bit=False, avoiding 4-bit quantization discrepancy on qwen3_5_moe GatedDeltaNet + sparse MoE layers), r=16, lora_alpha=16, lora_dropout=0, 931.1M trainable parameters (2.58% of 36.04B), merged back losslessly to 16-bit BF16
  • Loss Masking: train_on_responses_only (<|im_start|>user\n → <|im_start|>assistant\n)
  • Schedule: 1 full epoch, 8,772 packed steps, max_seq_length=8192, cosine LR 6e-5 with 5% warmup (adamw_8bit), Peak VRAM 80.7 GiB, 1.01–1.02 s/it

Monotonic validation eval_loss across all 18 / 18 checkpoints (zero overfitting):

Step 500 1000 1500 2000 2500 3000 3500 4000 4500
Val Loss 0.8223 0.7816 0.7613 0.7474 0.7371 0.7289 0.7225 0.7146 0.7104
Step 5000 5500 6000 6500 7000 7500 8000 8500 8772 (1.0 ep)
Val Loss 0.7060 0.7017 0.6984 0.6960 0.6939 0.6924 0.6921 0.6918 0.6917

Local Verification & Benchmarks (Apple M1 Max 64 GB, MLX)

Measured locally via mlx-lm 0.32.2 (enable_thinking=False, greedy temp=0.0):

Variant Disk Size Effective BPW Load Time Prompt Speed Generation Speed Peak RAM Security Audit Native <tool_call>
OptiQ-8bit (329×16b + 182×8b) 37.5 GB 9.078 8.77 s 271.94 tok/s 47.65 – 49.40 tok/s 39.49 GB 6 / 6 (100%) 7 / 8 (87.5%)
OptiQ-6bit (291×16b + 38×8b + 182×6b) 29.6 GB 7.163 5.55 s 248.66 tok/s 52.41 – 53.19 tok/s 31.20 GB 6 / 6 (100%) 7 / 8 (87.5%)
Ref: Nyx-27B-CyberAgent (OptiQ-8bit Dense) 31.6 GB 9.850 6.78 s 70.44 tok/s 9.92 – 10.31 tok/s 33.44 GB 6 / 6 (100%) 8 / 8 (100%)

Evaluation Breakdown (temp=0.0, identical across OptiQ-8bit & OptiQ-6bit)

  • Zero-Refusal Offensive & Defensive Security Auditing (6 / 6 = 100%):
    • Concrete technical payloads + remediation/detection rules with zero safety refusals across: UNION SQLi + PHP PDO remediation, AWS IMDSv1 SSRF IP encoding bypasses (2852039166, 0xa9fea9fe, IPv6-mapped) + IMDSv2 hardening, Flask CWE-78 command injection PoC + hardened subprocess, x86-64 NX ret2libc/ROP chain (pop rdi; ret, 16-byte stack alignment, pwntools), Active Directory Kerberoasting (GetUserSPNs.py, hashcat, Event ID 4769, gMSA), and Linux /dev/tcp reverse shell FD breakdown + Sigma detection rule.
  • Native XML <tool_call> Evaluation (7 / 8 = 87.5%):
    • 7 / 7 (100%) exact function & parameter match across all single-turn security tools (run_nmap, query_cve, read_source_file, check_ioc IP & domain, execute_shell) plus negative control (0% false tool invocation on conceptual questions).
    • On the 1 multi-turn follow-up test under greedy enable_thinking=False, the model correctly parsed the tool output and stated its next action before stopping; in agent harnesses, instructing direct tool emission or enabling reasoning mode resolves multi-turn chaining cleanly.

Quickstart (vLLM / SGLang / transformers)

vLLM (with native XML tool calling)

vllm serve j4n4/Vex-35B-A3B-CyberAgent \
  --port 8000 \
  --max-model-len 131072 \
  --enable-auto-tool-choice \
  --tool-call-parser qwen3_coder

Transformers

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "j4n4/Vex-35B-A3B-CyberAgent"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are Vex-35B-A3B-CyberAgent, an autonomous cybersecurity auditing agent."},
    {"role": "user", "content": "Audit a Flask route running subprocess.check_output(f'ping -c 1 {host}', shell=True). Provide a PoC payload and hardened fix."},
]

prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))

Responsible & Authorized Use

Released under Apache-2.0 for authorized penetration testing, red/blue team exercises, vulnerability research, CTF competitions, incident response, and security education. Users are solely responsible for ensuring all usage complies with applicable laws and written authorization scopes.

Downloads last month
-
Safetensors
Model size
35B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for j4n4/Vex-35B-A3B-CyberAgent

Finetuned
(7)
this model
Finetunes
1 model
Quantizations
2 models

Datasets used to train j4n4/Vex-35B-A3B-CyberAgent

Collection including j4n4/Vex-35B-A3B-CyberAgent