Instructions to use kn1ghtc/seclx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use kn1ghtc/seclx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("kn1ghtc/seclx") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use kn1ghtc/seclx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "kn1ghtc/seclx" --prompt "Once upon a time"
- Atomic Chat
seclx: business model pool
Quantized weights for the seclx local inference gateway on Apple Silicon. Built for single-machine deployments that need a cheap auxiliary model and a multimodal generalist without renting GPUs.
Overview
This repository holds the business-facing weights that the seclx gateway serves through its
OpenAI-compatible endpoints (/v1/chat/completions, /v1/images/*, /v1/videos,
/v1/audio/*). Pools are loaded lazily and released when idle, so a single machine can host
several models that are rarely used at the same time.
Every artifact here is a quantization of an upstream release. No weight in this repository was retrained; the only changes are mixed-precision quantization, repacking and, where noted, a preserved multi-token-prediction (MTP) head. The security-expert and content-safety families are published separately and are not redistributed from this pool.
Repository contents
| Artifact | Size | Base | Precision | Purpose |
|---|---|---|---|---|
seclx-aux-9b-4bit |
4.7 GiB | Qwen/Qwen3.5-9B |
MLX 4-bit, group 64 | Low-cost tier: short answers, prompt expansion, structured extraction |
seclx-omni-30b-a3b-4bit-forge4 |
18.2 GiB | Qwen/Qwen3-Omni-30B-A3B-Instruct |
mixed 4-bit, group 64 | Multimodal generalist: text, image, audio |
.seclx-manifest.json is the machine-readable pull manifest used by the gateway. It records
the target directory, quantization parameters and size for each artifact so a client can
verify what it fetched.
Quick start
pip install seclx
# inspect what the gateway already has locally
seclx model list
# pull one artifact from this repository (resumable, checksum-verified;
# --include matches path prefixes, not globs)
seclx model pull kn1ghtc/seclx --include seclx-aux-9b-4bit/ --dir ~/.seclx/models
seclx up --config configs/seclx.yaml
Loading a single artifact directly with MLX works too, because the quantization map lives in
config.json:
from mlx_lm import generate, load
model, tokenizer = load("kn1ghtc/seclx/seclx-aux-9b-4bit")
print(generate(model, tokenizer, prompt="Summarize what a SIEM does.", max_tokens=128))
Artifacts
seclx-aux-9b-4bit
| Property | Value |
|---|---|
| Base | Qwen/Qwen3.5-9B (dense, 9B) |
| Recipe | mlx_lm convert -q --q-bits 4 --q-group-size 64, 4.501 bits/weight |
| Calibration | none (post-training round-to-nearest, no data) |
| Size | 4.7 GiB |
| Context | 32,768 tokens |
| Measured | Apple M5 Ultra, 96 GiB unified memory: cold start 3.8 s, warm request 0.54 s, resident 5.7 GiB |
No calibration means the upstream behaviour and safety alignment are unchanged; what changes is only numerical precision.
Why it exists. Image, video and speech endpoints mostly need one thing from an LLM: expand a short user phrase into a good prompt. A 27B model is the wrong tool for that, and waking it up costs more memory than the whole media pipeline. This artifact keeps the auxiliary tier at 4.7 GiB.
Known limitations. Thinking mode is disabled by design in this tier: a reasoning trace consumes the whole budget and pollutes the prompt-expansion output format. Long multi-step reasoning should be routed to a larger artifact.
seclx-omni-30b-a3b-4bit-forge4
| Property | Value |
|---|---|
| Base | Qwen/Qwen3-Omni-30B-A3B-Instruct (MoE, 30B total / 3B active) |
| Recipe | 4-bit group 64 by default; the 68 MoE router gates stay at 8-bit; vision, audio and speech towers quantized with the rest |
| Tensors | 1,041 quantized modules (973 at 4-bit, 68 at 8-bit) of 4,184; 7 shards |
| Size | 18.2 GiB (from 65.7 GiB bf16) |
| Quality | PPL 14.010 on a 643-token holdout vs 12.9242 bf16 (+8.4%) and 14.0773 for a widely used community 4-bit build |
| Speed | 320 tok/s aggregate at 8 concurrent lanes; 43.7 tok/s per lane |
| Verified load | mlx-vlm 0.7.10: opens in 4.7 s, 113.6 tok/s, 20.7 GB peak |
Why the routers are protected. Experts are where the bytes are: the 973 expert and attention projections dominate decode bandwidth, so that is what gets compressed. The router gates are the one place where a rounding error changes which expert runs at all, so they keep 8-bit precision rather than dropping to 4-bit. That single choice is most of the difference between this build and the community 4-bit release above.
config.json records every module's precision explicitly. Because the omni stack nests the
language model under both thinker. and an extra .language_model. level, the map also
carries alias keys for each entry, so both the checkpoint-style and the module-style path
resolve. That is what makes the file loadable by a stock mlx-vlm build, and the
Verified load row above is that check, not an estimate.
Known limitations. At 4-bit the quality gate is a throughput-tier build, not the accuracy tier. Multi-select accuracy on small sets was not discriminative enough to rank these builds (ยฑ1 question moved the score by 5 points), so only the perplexity comparison above is claimed. A 6-bit variant with better perplexity exists locally but is not published.
Intended use
- Local, single-tenant assistants where the whole stack runs on one workstation.
- Cost control: route trivial and media-adjacent work to the auxiliary tier.
- Offline or air-gapped deployments that cannot call a hosted API.
- Baselines for comparing your own quantization recipes against ours.
Out of scope
- Safety-critical moderation. These are general models; use the guard family contract instead.
- Claiming benchmark parity with the bf16 upstream releases.
- Redistribution as a different model name without keeping the provenance fields.
Limitations
- Apple Silicon only for the MLX artifacts. There are no GGUF or CUDA builds here.
- Context beyond the trained window is not supported; the gateway caps it per pool.
- The omni artifact keeps the talker (speech) stack quantized as part of the expert block, so audio quality tracks the same perplexity loss as text.
- Quantization changes numerics; do not mix bf16 and 4-bit outputs in one evaluation.
License and provenance
Upstream Qwen3.5-9B and Qwen3-Omni-30B-A3B-Instruct are Apache-2.0. This repository redistributes only quantized derivatives and keeps the upstream license.
Each artifact ships the recipe used to produce it (.seclx-manifest.json, and per-artifact
config) so a third party can re-run the conversion and compare bytes.
4-bit