Run this model with HF Jobs
Run Remek/basal-omni-2.0-mini-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Remek/basal-omni-2.0-mini-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Remek/basal-omni-2.0-mini-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Remek/basal-omni-2.0-mini-MLX. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use Remek/basal-omni-2.0-mini-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Remek/basal-omni-2.0-mini-MLX 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("Remek/basal-omni-2.0-mini-MLX") 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 Remek/basal-omni-2.0-mini-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Remek/basal-omni-2.0-mini-MLX"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Remek/basal-omni-2.0-mini-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Remek/basal-omni-2.0-mini-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Remek/basal-omni-2.0-mini-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Remek/basal-omni-2.0-mini-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Remek/basal-omni-2.0-mini-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Remek/basal-omni-2.0-mini-MLX 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 "Remek/basal-omni-2.0-mini-MLX"
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 Remek/basal-omni-2.0-mini-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Remek/basal-omni-2.0-mini-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Remek/basal-omni-2.0-mini-MLX"
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 "Remek/basal-omni-2.0-mini-MLX" \ --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"
Experimental β not recommended: basal-omni-2.0-mini-MLX
An MLX 8-bit port of basal-omni-2.0-mini (base Gemma 4 E4B) for Apple Silicon, served with basal-serve --mode mlx. Text only: the image and audio encoders are not in this folder.
Experimental β not recommended. basal-omni-2.0-mini reads the state two ways (in both directions) before it answers; basal's MLX mode reads it one way (left to right), so this port runs the same weights as a weaker model. Measured with the basal engine 3.0.2 on the released held-out tests, one way against two ways: PL decisions 0.869 vs 0.961, PL general 0.738 vs 0.753, PL-Real 0.950 vs 0.970, EN corpus 0.677 vs 0.720, EN panel 0.760 vs 0.819. For full accuracy serve Remek/basal-omni-2.0-mini with the basal engine (below).
Why this port is not recommended
The same weights served two ways (as released) and one way (the reading of this port). Both runs used the basal engine 3.0.2 (build 1bd1bba2) on one NVIDIA H100: --mode fast, bf16, one option order. The one-way run was the same engine with two-way reading turned off. The test sets are those of the main model card.
| benchmark | two ways (main repository) | one way (this port's reading) | same top answer as two ways |
|---|---|---|---|
| PL decisions (held-out test, 7,081 items) | 0.961 | 0.869 | 88.3% |
| PL general (knowledge, exams, reading; 3,079 items) | 0.753 | 0.738 | 84.6% |
| PL-Real (300 real Polish documents) | 0.970 | 0.950 | 96.7% |
| EN corpus test (1,479 items) | 0.720 | 0.677 | 84.0% |
| EN external panel (10 public English decision tasks, 3,842 items) | 0.819 | 0.760 | 84.8% |
The MLX port itself was measured on an Apple M4 Pro (24 GB) on all 8,560 held-out decisions of the main card's coverage test (the PL decisions and EN corpus items). Each decision was read once, in the given option order:
| reading | accuracy | same top answer as two ways (bf16) | same top answer as one way (bf16) |
|---|---|---|---|
| two ways, basal engine, bf16 (main repository) | 0.919 | β | 87.5% |
| one way, basal engine, bf16 | 0.833 | 87.5% | β |
| one way, MLX 8-bit (this port) | 0.834 | 87.5% | 99.3% |
- The 8-bit port follows the one-way reading closely (99.3% of top answers equal to the one-way bf16 reading). The loss comes from reading one way, not from quantisation.
- Automation: thresholds refitted on this port read one way held on our test set for
noulquestions only: at the 1% target 32.4% of them are decided automatically at 0.4% observed error (95% upper bound 0.9%), at 5% 52.7% at 2.1% (bound 2.7%). Thechoicethresholds did not meet their targets and are not shipped, sochoiceandscorequestions defer. - The released model's
CALIBRATION.jsonis not in this folder: it was fitted on two-way readouts and does not hold for one-way reading.
The recommended way
Serve the main repository, Remek/basal-omni-2.0-mini, with the basal engine, which reads it two ways. On a Mac:
# the native arm64 Python: uname -m must print arm64 (a terminal under Rosetta prints another architecture)
uv python install cpython-3.12-macos-aarch64-none
uv venv --python cpython-3.12-macos-aarch64-none --allow-existing ~/basal-env && source ~/basal-env/bin/activate
uv pip install "basal-engine[mlx] @ https://github.com/rkinas/basal/archive/refs/tags/v3.0.3.tar.gz"
basal-serve --model Remek/basal-omni-2.0-mini --mode eager --device mps
- Apple Silicon:
--mode eager --device mpsruns PyTorch on Metal in bf16 (slower). The engine's default on a Mac (mlx) does not serve this model two ways. The weights take about 16 GB. - NVIDIA GPU:
--mode fast(the default on Hopper with FlashAttention 3 and on Blackwell workstation GPUs),--mode fast-nocompileor--mode eager. Install as on the main card. - The answers, calibration and coverage of the main model card hold only for this two-way serving.
Use (one-way reading)
Install the basal engine with the mlx extra (Apple Silicon, Python 3.11 or newer) and serve the folder with --mode mlx:
# the native arm64 Python: uname -m must print arm64 (a terminal under Rosetta prints another architecture)
uv python install cpython-3.12-macos-aarch64-none
uv venv --python cpython-3.12-macos-aarch64-none --allow-existing ~/basal-mlx && source ~/basal-mlx/bin/activate
uv pip install "basal-engine[mlx] @ https://github.com/rkinas/basal/archive/refs/tags/v3.0.3.tar.gz"
basal-serve --model Remek/basal-omni-2.0-mini-MLX --mode mlx
Then ask questions as with basal-omni-2.0-mini, on port 8000 (choice, noul, score, multi, act, tool, and the task types; up to 255 options).
- Calibration:
--mode mlxloadsCALIBRATION.mlx.json, fitted on this port read one way: temperatures and thenoulthresholds above. You can refit it on your own labelled data withbasal-calibrate. - Memory: the weights take 8.6 GB of unified memory; long states need more on top.
- One option order (the default): the calibration is fitted for one order.
- Checked on an Apple M4 Pro (24 GB) with basal 3.0.2
--mode mlx(mlx 0.32.4, mlx-lm 0.32.2): all 8,560 test decisions above and all 9,723 calibration decisions, every decision answered.
How it was made
- mlx-lm 0.32.2's converter (load, quantize, save; mlx 0.32.4) on the released bf16 model: MLX affine 8-bit, group size 64, for the linear layers of the decoder blocks and Gemma 4 E4B's per-layer embedding table. The token embeddings (also the output head the decision is read from, in fp32) and the norms stay bf16. mlx-lm keeps the text decoder only. The rotary and global-attention settings are written into
config.jsonin the keys mlx-lm reads. The tokenizer files are the released model's. - This folder is served one way: basal's MLX mode does not serve this model two ways.
CALIBRATION.mlx.json: the released model's calibration method and requests, refitted on this port's readouts (--mode mlx, read one way, one option order). It holds per-type and per-bucket temperatures and thenoulthresholds that met their 95% bounds on the frozen test.
Files
model-00001-of-00002.safetensors,model-00002-of-00002.safetensors,model.safetensors.index.json,config.json: the MLX weights and their configuration.tokenizer.json,tokenizer_config.json,chat_template.jinja,generation_config.json: as in the bf16 model (the basal server renders the prompt with them).CALIBRATION.mlx.json: the calibration fitted on this port, read one way.basal.json: prompt format 2 and the readout protocol, read one way.SHA256SUMS: checksums of the model files.
Limitations
- Read one way: see Why this port is not recommended. The main card's numbers do not hold for this port.
- Experimental: validate on your own documents before relying on it.
- Text only (see above).
- Exact arithmetic and thresholds are a weak spot of one-pass decisions: compute them in code.
- Decisions with serious consequences for people should be reviewed by a person.
License and attribution
Apache-2.0. Converted from basal-omni-2.0-mini, fine-tuned from google/gemma-4-E4B-it (Apache-2.0).
- Downloads last month
- 12
8-bit