Text Classification
MLX
Safetensors
English
Japanese
gemma4
d1a
decision-model
pull-requests
apple-silicon
quantized
8-bit precision
on-device
Run this model with HF Jobs
Run mlx-community/d1a-e4b-it-8bit 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/mlx-community/d1a-e4b-it-8bit. 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/mlx-community/d1a-e4b-it-8bit 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.
Instructions to use mlx-community/d1a-e4b-it-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/d1a-e4b-it-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mlx-community/d1a-e4b-it-8bit --local-dir d1a-e4b-it-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download d1a_config.json from mlx-community/d1a-e4b-it-8bit: direct link, hf CLI and curl.
- Browser
- Download file 8.02 kB
-
https://huggingface.co/mlx-community/d1a-e4b-it-8bit/resolve/main/d1a_config.json
- Command line
-
hf download hf://mlx-community/d1a-e4b-it-8bit/d1a_config.json
-
curl -L -o d1a_config.json https://huggingface.co/mlx-community/d1a-e4b-it-8bit/resolve/main/d1a_config.json
8.02 kB
| { | |
| "format": "d1a-mlx", | |
| "format_version": 1, | |
| "base": "google/gemma-4-E4B-it", | |
| "base_revision": "ee0ef6023621cff504d758262d4e04895a5af4a2", | |
| "source": "stage2", | |
| "source_revision": null, | |
| "adapter_sha256": "e6528711baa7c3a2a3c25ca3968b1586ce287b89685a0fe98b372c103e59811e", | |
| "lora": 16, | |
| "head_dim": 256, | |
| "hidden_size": 2560, | |
| "temperature": 1.5511447618337346, | |
| "leading_ids": [ | |
| 2 | |
| ], | |
| "bos_id": 2, | |
| "delimiter_ids": [ | |
| 6, | |
| 7, | |
| 8, | |
| 9, | |
| 10 | |
| ], | |
| "pad_id": 0, | |
| "dtype": "bfloat16", | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 8, | |
| "mode": "affine", | |
| "language_model.model.embed_tokens_per_layer": { | |
| "group_size": 64, | |
| "bits": 4, | |
| "mode": "affine" | |
| }, | |
| "embeddings": true | |
| }, | |
| "head": "head.safetensors", | |
| "temperature_fit": { | |
| "rows": [ | |
| "cal/rows.json", | |
| "calpr/rows.json" | |
| ], | |
| "n": 3178, | |
| "method": "min micro mean NLL over a 121-point log grid 0.25..4", | |
| "cross_validation": { | |
| "raw": { | |
| "n": 3178, | |
| "ece": 0.05657225201118034, | |
| "brier": 0.25128312367981526, | |
| "nll": 0.5044515701034964, | |
| "confident_error_rate": 0.03524229074889868, | |
| "coverage_at_5pct_error": 0.6680302076777848 | |
| }, | |
| "out_of_fold": { | |
| "n": 3178, | |
| "ece": 0.015396958922541597, | |
| "brier": 0.24360429314644466, | |
| "nll": 0.45865013254985726, | |
| "confident_error_rate": 0.016047828823159218, | |
| "coverage_at_5pct_error": 0.6626809314033983 | |
| }, | |
| "ece_ci95": { | |
| "raw": [ | |
| 0.04573724463444184, | |
| 0.06868531603386199 | |
| ], | |
| "out_of_fold": [ | |
| 0.010910223636218403, | |
| 0.02979139359871167 | |
| ], | |
| "delta": [ | |
| -0.05198077099251131, | |
| -0.02258946367482048 | |
| ] | |
| }, | |
| "separated": true, | |
| "temperatures": [ | |
| 1.5511447618337346, | |
| 1.5511447618337346, | |
| 1.5157165665103978, | |
| 1.5874010519681994, | |
| 1.5511447618337346 | |
| ], | |
| "folds": 5, | |
| "seed": 0, | |
| "samples": 1000, | |
| "groups": 1670, | |
| "unit": "source-stratified (source, group); sibling questions and variants stay together" | |
| }, | |
| "interval": { | |
| "level": 0.9, | |
| "samples": 2000, | |
| "seed": 0, | |
| "lower": 1.4810975522865641, | |
| "upper": 1.6245047927124707, | |
| "questions": 3178 | |
| }, | |
| "fit_rows": [ | |
| { | |
| "rows": "cal/rows.json", | |
| "suite": "evals/v7/decision-v7", | |
| "split": "calibration", | |
| "questions": 1148 | |
| }, | |
| { | |
| "rows": "calpr/rows.json", | |
| "suite": "evals/d1a/pr-labels", | |
| "split": "development", | |
| "questions": 2030 | |
| } | |
| ], | |
| "training_suites": [ | |
| "evals/devtools-v1", | |
| "evals/documents-v1", | |
| "evals/hard-v1", | |
| "evals/v7/decision-v7" | |
| ], | |
| "training_partitions": [ | |
| "evals/d1a/ja-jglue:train", | |
| "evals/d1a/pr-labels:train", | |
| "evals/d1a/pr-labels:train-blast", | |
| "evals/d1a/pr-labels:train-ja", | |
| "evals/d1a/routing:factory-train", | |
| "evals/d1a/routing:generic-train" | |
| ], | |
| "same_corpus": [ | |
| "calpr/rows.json: SAME CORPUS: evals/d1a/pr-labels:development is an eval partition of evals/d1a/pr-labels, whose train partitions ['evals/d1a/pr-labels:train', 'evals/d1a/pr-labels:train-blast', 'evals/d1a/pr-labels:train-ja'] the checkpoint trained on" | |
| ], | |
| "in_distribution": { | |
| "allowed": true, | |
| "problems": [ | |
| "cal/rows.json: evals/v7/decision-v7 is training data of the checkpoint", | |
| "cal/rows.json: it pools 12 training source(s) ['agnews', 'amazon', 'banking77', 'boolq', 'compositional', 'dbpedia14', 'imdb', 'legacy_policy'] ...", | |
| "cal/rows.json: it reads the calibration partition of evals/v7/decision-v7, a training corpus", | |
| "calpr/rows.json: SAME CORPUS: evals/d1a/pr-labels:development is an eval partition of evals/d1a/pr-labels, whose train partitions ['evals/d1a/pr-labels:train', 'evals/d1a/pr-labels:train-blast', 'evals/d1a/pr-labels:train-ja'] the checkpoint trained on", | |
| "cannot list the sources of training source pr-labels:fresh-fit (no suite or partition of this checkout), training data of stage2" | |
| ] | |
| } | |
| }, | |
| "use_case_temperatures": {}, | |
| "use_case_temperature_fits": { | |
| "routing": { | |
| "rows": [ | |
| "rt-gen/rows.json", | |
| "rt-hand/rows.json" | |
| ], | |
| "n": 315, | |
| "method": "min micro mean NLL over a 121-point log grid 0.25..4", | |
| "cross_validation": { | |
| "raw": { | |
| "n": 315, | |
| "ece": 0.014988591883350024, | |
| "brier": 0.02933234182471159, | |
| "nll": 0.04260048719028577, | |
| "confident_error_rate": 0.0031746031746031746, | |
| "coverage_at_5pct_error": 1.0 | |
| }, | |
| "out_of_fold": { | |
| "n": 315, | |
| "ece": 0.012868974641462564, | |
| "brier": 0.027818845682320778, | |
| "nll": 0.04164313674943866, | |
| "confident_error_rate": 0.0031746031746031746, | |
| "coverage_at_5pct_error": 1.0 | |
| }, | |
| "ece_ci95": { | |
| "raw": [ | |
| 0.007028569881564169, | |
| 0.03002489671354236 | |
| ], | |
| "out_of_fold": [ | |
| 0.006437557142966775, | |
| 0.02839721383944503 | |
| ], | |
| "delta": [ | |
| -0.005527160442421324, | |
| 0.002748606576340939 | |
| ] | |
| }, | |
| "separated": false, | |
| "temperatures": [ | |
| 1.2599210498948732, | |
| 1.1755479062836087, | |
| 1.148698354997035, | |
| 1.2030250360821164, | |
| 1.2030250360821164 | |
| ], | |
| "folds": 5, | |
| "seed": 0, | |
| "samples": 1000, | |
| "groups": 315, | |
| "unit": "source-stratified (source, group); sibling questions and variants stay together" | |
| }, | |
| "interval": { | |
| "level": 0.9, | |
| "samples": 2000, | |
| "seed": 0, | |
| "lower": 0.9117224885582169, | |
| "upper": 1.381912879967776, | |
| "questions": 315 | |
| }, | |
| "fit_rows": [ | |
| { | |
| "rows": "rt-gen/rows.json", | |
| "suite": "evals/d1a/routing", | |
| "split": "generic-development", | |
| "questions": 270 | |
| }, | |
| { | |
| "rows": "rt-hand/rows.json", | |
| "suite": "evals/d1a/routing", | |
| "split": "handlabelled-45", | |
| "questions": 45 | |
| } | |
| ], | |
| "training_suites": [ | |
| "evals/devtools-v1", | |
| "evals/documents-v1", | |
| "evals/hard-v1", | |
| "evals/v7/decision-v7" | |
| ], | |
| "training_partitions": [ | |
| "evals/d1a/ja-jglue:train", | |
| "evals/d1a/pr-labels:train", | |
| "evals/d1a/pr-labels:train-blast", | |
| "evals/d1a/pr-labels:train-ja", | |
| "evals/d1a/routing:factory-train", | |
| "evals/d1a/routing:generic-train" | |
| ], | |
| "same_corpus": [ | |
| "rt-gen/rows.json: SAME CORPUS: evals/d1a/routing:generic-development is an eval partition of evals/d1a/routing, whose train partitions ['evals/d1a/routing:factory-train', 'evals/d1a/routing:generic-train'] the checkpoint trained on", | |
| "rt-hand/rows.json: SAME CORPUS: evals/d1a/routing:handlabelled-45 is an eval partition of evals/d1a/routing, whose train partitions ['evals/d1a/routing:factory-train', 'evals/d1a/routing:generic-train'] the checkpoint trained on" | |
| ], | |
| "in_distribution": { | |
| "allowed": true, | |
| "problems": [ | |
| "rt-gen/rows.json: SAME CORPUS: evals/d1a/routing:generic-development is an eval partition of evals/d1a/routing, whose train partitions ['evals/d1a/routing:factory-train', 'evals/d1a/routing:generic-train'] the checkpoint trained on", | |
| "rt-hand/rows.json: SAME CORPUS: evals/d1a/routing:handlabelled-45 is an eval partition of evals/d1a/routing, whose train partitions ['evals/d1a/routing:factory-train', 'evals/d1a/routing:generic-train'] the checkpoint trained on", | |
| "cannot list the sources of training source pr-labels:fresh-fit (no suite or partition of this checkout), training data of stage2" | |
| ] | |
| } | |
| } | |
| } | |
| } | |