Text-to-Image
MLX
MiniMax H3
Safetensors
English
apple-silicon
macos
image-to-image
image-editing
image-generation
Instructions to use devin-lai/MiniMax-H3-Image-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use devin-lai/MiniMax-H3-Image-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download devin-lai/MiniMax-H3-Image-mlx --local-dir MiniMax-H3-Image-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download tests/test_inference_only.py from devin-lai/MiniMax-H3-Image-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx/resolve/refs%2Fpr%2F1/tests/test_inference_only.py
- Command line
-
hf download hf://devin-lai/MiniMax-H3-Image-mlx@refs/pr/1/tests/test_inference_only.py
-
curl -L -o test_inference_only.py https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx/resolve/refs%2Fpr%2F1/tests/test_inference_only.py
1.4 kB
| import importlib.util | |
| from pathlib import Path | |
| import pytest | |
| from h3_mlx.cli import main | |
| def test_conversion_module_is_not_discoverable(): | |
| assert importlib.util.find_spec("h3_mlx.convert") is None | |
| def test_cli_rejects_conversion_options(option, tmp_path): | |
| with pytest.raises(SystemExit) as error: | |
| main( | |
| [ | |
| "generate", | |
| "--model", | |
| str(tmp_path), | |
| "--text-encoder", | |
| str(tmp_path), | |
| "prompt", | |
| option, | |
| "8", | |
| ] | |
| ) | |
| assert error.value.code == 2 | |
| def test_help_works_without_loading_metal(capsys): | |
| with pytest.raises(SystemExit) as error: | |
| main(["--help"]) | |
| assert error.value.code == 0 | |
| assert "download" in capsys.readouterr().out | |
| def test_release_audit_accepts_public_runtime(): | |
| path = Path(__file__).resolve().parents[1] / "tools/check_release.py" | |
| spec = importlib.util.spec_from_file_location("release_audit", path) | |
| audit = importlib.util.module_from_spec(spec) | |
| spec.loader.exec_module(audit) | |
| audit.check_source(path.parents[1]) | |
| with pytest.raises(ValueError, match="Conversion operation"): | |
| audit.check_python("bad.py", "import mlx.core as mx\nmx.quantize(weights)") | |