Bimo-7B-CyberAgent-MLX-OptiQ-8bit
Security audit AI model for Mac
2 min readupdated
The model is designed for defensive cybersecurity audits, vulnerability triage, and agentic workflows with multi-step JSON tool calling. It is an MLX version of the iBimo-o/Bimo-7B-CyberAgent model (a 7.62-billion parameter fine-tune of Qwen/Qwen2.5-Coder-7B-Instruct by Saim Azam with a 32,768-token context) optimized for Apple Silicon chips. The main feature of the j4n4 build is OptiQ 8-bit mixed quantization (a model weight compression method that maintains high accuracy): the 70 most sensitive layers are kept in their original BF16 format without loss, while the remaining 127 layers are compressed to 8 bits. It is ideal for information security professionals and developers who need a local AI assistant on a MacBook or Mac Studio.
Key features
- oQ8 mixed precision: 70 key layers kept in BF16, 127 layers compressed to 8 bits (
group_size=64) based on KL-divergence analysis across 6 domains. - Full compatibility with standard
mlx-lmlibraries and LM Studio without installing additional packages at startup. - Compression transparency: metadata on the bit allocation and sensitivity of each layer is located in the
optiq/folder. - Support for long context up to 32,768 tokens using YaRN technology and Apache 2.0 license.
What you can do
- Conduct local source code audits for vulnerabilities (such as SQL injections) and receive fix options directly on your Mac without sending code to the cloud.
- Spin up a local OpenAI-compatible server via
mlx_lm.serverand connect the model to AI agents with JSON tool calling. - Use as a reference for analyzing defense bypass patterns (such as SSRF) and how to fix them.
Example
from mlx_lm import load, generate
model, tokenizer = load("j4n4/Bimo-7B-CyberAgent-MLX-OptiQ-8bit")
messages = [{"role": "user", "content": "Review this Python snippet for SQL injection risks."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=512))
Read more
DetailsSpeed on Apple M1 Max (64 GB): 36.96 tok/s during generation and 221.4 tok/s during prompt processing.
Memory and size: takes up 8.95 GB on disk and requires up to 9.76 GB of peak RAM (average weight is 9.20 bits).
Limitations: intended only for authorized security audits, defensive development, and education.










Comments