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.

Experimental β€” not recommended: basal-omni-2.0-mini-MLX

GitHub Website

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 noul questions 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%). The choice thresholds did not meet their targets and are not shipped, so choice and score questions defer.
  • The released model's CALIBRATION.json is 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 mps runs 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-nocompile or --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 mlx loads CALIBRATION.mlx.json, fitted on this port read one way: temperatures and the noul thresholds above. You can refit it on your own labelled data with basal-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.json in 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 the noul thresholds 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
Safetensors
Model size
7B params
Tensor type
BF16
Β·
U32
Β·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for Remek/basal-omni-2.0-mini-MLX

Quantized
(2)
this model

Collection including Remek/basal-omni-2.0-mini-MLX