How to use from
OpenClaw
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "BinSaqban/SAIF-v2-Pro"
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "BinSaqban/SAIF-v2-Pro" \
  --custom-provider-id mlx-lm \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

SAIF v2 Pro โ€” Circuit-Aware Security Specialist

SAIF (ุณูŠู) v2 Pro is a unified security analysis model based on Qwen3-8B, trained with Circuit-Aware LoRA and IACR (Integrated Adapter Circuit Refinement).

Architecture

  • Base Model: Qwen3-8B (36 layers)
  • Circuit-Aware LoRA: Trained on 387 security analysis samples (rank=8, scale=20)
  • IACR Fine-tuning: Integrated Adapter Circuit Refinement (loss 0.033)
  • 13 Security Probes: Avg accuracy 98.7%
  • Fused Format: MLX native (single 15GB model)

Capabilities

# Capability Supported
1 SQL Injection Analysis โœ…
2 SSRF Detection โœ…
3 XSS Analysis โœ…
4 RCE Exploitation โœ…
5 IDOR Detection โœ…
6 CSRF Analysis โœ…
7 LFI Detection โœ…
8 Open Redirect โœ…
9 CORS Misconfig โœ…
10 Auth Bypass โœ…
11 Business Logic โœ…
12 Race Conditions โœ…
13 LLM Prompt Inject โœ…

Usage (MLX)

from mlx_lm import load, generate

model, tokenizer = load("BinSaqban/SAIF-v2-Pro")
prompt = "Analyze this SSRF vulnerability: ..."
messages = [{"role": "user", "content": prompt}]
prompt_text = tokenizer.apply_chat_template(messages, tokenize=False)
response = generate(model, tokenizer, prompt=prompt_text, max_tokens=512)
print(response)

Server Mode

mlx_lm.server --model BinSaqban/SAIF-v2-Pro --port 8452

Performance

  • Latency: ~7.4s for 200 tokens (27 tok/s on M2 Ultra)
  • Accuracy: 98.7% on 13 security probes
  • Memory: ~16GB (M2 Ultra 192GB)

Training

Trained on Hayula Labs infrastructure using MLX on M2 Ultra (192GB).

  • Circuit-Aware: 500 iterations, train loss 0.927
  • IACR: Additional refinement, final loss 0.033

License

Apache 2.0

Downloads last month
20
Safetensors
Model size
8B params
Tensor type
BF16
ยท
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support