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_release_guards.py from devin-lai/MiniMax-H3-Image-mlx: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx/resolve/main/tests/test_release_guards.py
- Command line
-
hf download hf://devin-lai/MiniMax-H3-Image-mlx/tests/test_release_guards.py
-
curl -L -o test_release_guards.py https://huggingface.co/devin-lai/MiniMax-H3-Image-mlx/resolve/main/tests/test_release_guards.py
1.46 kB
| import json | |
| import pytest | |
| from h3_mlx.hub import sha256 | |
| from scripts.publish_hf_release import publish_component, verify_local | |
| def test_partial_quantized_export_cannot_be_published(tmp_path): | |
| core = tmp_path / "model/core" | |
| core.mkdir(parents=True) | |
| file = core / "quantization.json" | |
| file.write_text( | |
| json.dumps( | |
| { | |
| "files": [ | |
| { | |
| "file": f"core-{i:03d}.safetensors", | |
| "bytes": 1, | |
| "sha256": "a" * 64, | |
| } | |
| for i in range(52) | |
| ] | |
| } | |
| ) | |
| ) | |
| (tmp_path / "files.json").write_text( | |
| json.dumps( | |
| { | |
| "format": "h3-mlx-files-v1", | |
| "files": { | |
| "model/core/quantization.json": { | |
| "bytes": file.stat().st_size, | |
| "sha256": sha256(file), | |
| }, | |
| }, | |
| } | |
| ) | |
| ) | |
| with pytest.raises(ValueError, match="export/manifest mismatch"): | |
| verify_local(tmp_path) | |
| def test_partial_packed_export_cannot_create_or_modify_a_repository(tmp_path): | |
| (tmp_path / "model/core").mkdir(parents=True) | |
| # No API method exists: an attempted remote mutation would fail this test. | |
| with pytest.raises(ValueError, match="fifty packed blocks"): | |
| publish_component(object(), "packed12", tmp_path) | |