Granite 4.0 MLX-LM 4-bit
Collection
Granite 4.0 Language Models for macOS (MLX-LM) - 4-bit Quantization โข 16 items โข Updated
Run ethicalabs/granite-4.0-h-tiny-base-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:
Use HF Jobs to fine-tune https://huggingface.co/ethicalabs/granite-4.0-h-tiny-base-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.
Use HF Jobs to run batch inference with https://huggingface.co/ethicalabs/granite-4.0-h-tiny-base-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.
Use HF Jobs to evaluate https://huggingface.co/ethicalabs/granite-4.0-h-tiny-base-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.
How to use ethicalabs/granite-4.0-h-tiny-base-MLX 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("ethicalabs/granite-4.0-h-tiny-base-MLX")
prompt = "Once upon a time in"
text = generate(model, tokenizer, prompt=prompt, verbose=True)How to use ethicalabs/granite-4.0-h-tiny-base-MLX with MLX LM:
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "ethicalabs/granite-4.0-h-tiny-base-MLX" --prompt "Once upon a time"
This model ethicalabs/granite-4.0-h-tiny-base-MLX was converted to MLX format from ibm-granite/granite-4.0-h-tiny-base using mlx-lm version 0.28.2.
4-bit
Base model
ibm-granite/granite-4.0-h-tiny-base