Instructions to use ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit
Run Hermes
hermes
- OpenClaw new
How to use ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit"
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 "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit" \ --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"
- MLX LM
How to use ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }'
CyberStrike-OffSec-35B — MLX 8-bit
8-bit quantized MLX conversion of oyildirim/CyberStrike-OffSec-35B, for fast local inference on Apple Silicon.
- Architecture:
qwen3_5_moe(Qwen3.5 MoE) — baseQwen/Qwen3.6-35B-A3B - Precision: 8-bit affine, group size 64. MoE router gates (
mlp.gate,mlp.shared_expert_gate) kept at 8-bit to preserve routing quality. - Size: ~35 GB (fp16 source ~70 GB). Estimated quality retention: ~99.9% (near-lossless).
- Converted with:
mlx-lm0.31.3,mlx,transformers5.13.
Weights unchanged from the source model — format + precision conversion only, no extra fine-tuning.
Benchmarks (from the source model)
| Benchmark | Task | Score |
|---|---|---|
| SecEval | Cybersecurity knowledge | 81.39 |
| CyberMetric-10000 | Cybersecurity knowledge | 86.61 |
| SECURE-MAET | MITRE ATT&CK extraction | 93.94 |
| SECURE-CWET | CWE extraction | 93.05 |
| MMLU | General knowledge | 76.94 |
Scores are the base model's; this MLX build preserves the weights (quantization may cause a small deviation at lower bit-widths).
Other builds
| Build | Bits | Size | Quality |
|---|---|---|---|
| MLX-4bit | 4 | ~18 GB | ~95-98% |
| MLX-6bit | 6 | ~27 GB | ~99% |
| MLX-8bit | 8 | ~35 GB | ~99.9% |
| MLX-bf16 | bf16 | ~67 GB | 100% |
Usage
Note: this model uses the transformers-5
TokenizersBackendtokenizer.mlx-lm0.31.3 (current pypi release) crashes at import under transformers 5 due to an unrelatedAutoTokenizer.register(...)call.Cleanest fix — install mlx-lm from git (already patched on
main, see ml-explore/mlx-lm#1458):pip install "git+https://github.com/ml-explore/mlx-lm" "transformers>=5"Then the snippet below works without the runtime patch.
Or, staying on the 0.31.3 release, patch it at runtime before importing
mlx_lm(harmless — registers an mlx-lm helper this model does not use):
from transformers import AutoTokenizer
_orig = AutoTokenizer.register
def _safe(*a, **k):
try:
return _orig(*a, **k)
except Exception:
pass
AutoTokenizer.register = staticmethod(_safe)
from mlx_lm import load, generate
model, tokenizer = load("ahmedandaloes/CyberStrike-OffSec-35B-MLX-8bit")
messages = [{"role": "user", "content": "What is SQL injection?"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=256, verbose=True))
pip install -U mlx-lm "transformers>=5"
Intended use
Authorized offensive-security work: penetration testing, red-team engagements, CTF, security research, and education. Use responsibly and only on systems you are authorized to test.
Attribution & license
- Source model: oyildirim/CyberStrike-OffSec-35B
- Foundation: Qwen/Qwen3.6-35B-A3B
- License: Apache-2.0 (inherited from the source model)
Credit for the model and its training belongs to the original author. This repository provides an MLX 8-bit build for the Apple Silicon community.
- Downloads last month
- -
8-bit