Skip to content

Releases

v0.1.0a10 — Zero-copy H3 weights and DiT buffer caching

Choose a tag to compare

@Anionex Anionex released this 19 Nov 15:51
7300062
  • H3 can load page-aligned DiT and text encoder weights through read-only file mappings with H3_ZERO_COPY=1. Prepare the checkpoints with h3-image-mlx align. Pass --keep-original to retain the source files.
  • H3_GPU_BUDGET_MB sets the memory budget used to size the optional DiT buffer cache.
  • align verifies each replacement against the pinned checkpoint before removing the source. verify checks the original metadata and tensor bytes of aligned checkpoints, including when the source file has been removed. For copies made before this release, restore any missing originals with fetch and run align again to enable SHA-256 verification.

Thanks to @ain-soph for the zero-copy and buffer-cache work in #20.

v0.1.0a9 — Faster streamed H3 generation on legacy Metal

Choose a tag to compare

@Anionex Anionex released this 16 Nov 06:44
3b47b59

H3 now selects a tiled Metal SIMD kernel for eligible large INT8 projections and uses aligned direct weight reads on the legacy Apple Silicon GPU path.

On a CircleCI M4 Pro VM running macOS 26.3, median 1024×1024 generation time with streamed weights fell from 250.55 s to 101.56 s (59.5% lower latency). Median peak stage-process footprint was 2.44 GB in a8 and 2.30 GB in a9. Six interleaved renders produced identical PNG files.

Benchmark and raw data.

v0.1.0a8

v0.1.0a8 Pre-release
Pre-release

Choose a tag to compare

@Anionex Anionex released this 14 Nov 19:26
e8b83f2

H3 now uses wider INT8 TensorOps tiles, page-aligned weight reads and overlapped layer loading for resident inference on M5. The original six-step sampler and weights are preserved.

On an M5 Pro with 48 GB, median 1024×1024 generation time went from 26.49 s in a7 to 18.93 s in a8 (28.5% lower latency). Median peak process footprint went from 21.08 GB to 21.67 GB. All six interleaved runs produced byte-identical PNGs with uncached weight reads.

Measurements and raw data.

v0.1.0a7 — Faster H3 portable INT8 generation

Choose a tag to compare

@Anionex Anionex released this 14 Nov 18:07
db40c68

Faster H3 portable INT8 generation

On macOS 26.4 and later, the portable backend checks whether the GPU can multiply two INT8 matrices directly into an INT32 output. Longer aligned projections use this path when the probe succeeds. A full-row MLX fallback reuses activations across output channels. The small-projection SIMD path remains available.

On a 48 GB M5 Pro running the portable backend, median 1024×1024 generation time fell from 141.84 s on v0.1.0a6 to 41.13 s (71.0% less elapsed time). The original portable baseline took 156.25 s (73.7% less elapsed time). The highest stage process footprint with direct TensorOps was 2.65 GB. All thirteen six-step PNGs were byte-identical with verified uncached weight reads. Physical M1–M4 generation times remain unmeasured.

Full results, trial order and raw data.

v0.1.0a6 — Faster portable H3 INT8 generation

Choose a tag to compare

@Anionex Anionex released this 14 Nov 17:05
2e82f83

H3 portable INT8 acceleration

Streamed H3 INT8 inference now prefetches one denoiser block and evaluates the current block asynchronously. A Metal SIMD-group kernel reads INT8 inputs directly for smaller projection shapes. Larger shapes use standard MLX. Set H3_PREFETCH=0 H3_ASYNC=0 to select synchronous block reads.

On a 48 GB M5 Pro explicitly running the portable backend, 512×512 six-step end-to-end latency fell from a median of 124.28 s to 56.40 s (54.6% lower, three runs per version). Three 1024×1024 runs per version measured 254.00 s and 219.36 s at the median (13.6% lower). Both versions bypassed the model-weight filesystem cache. Outputs matched byte for byte at each resolution. Physical M4 timing is still pending.

Benchmark conditions and trial data.

v0.1.0a5 — Qwen Image 2.1 Turbo

Pre-release

Choose a tag to compare

@Anionex Anionex released this 13 Nov 16:40
65d3b47

0.1.0a5

Qwen Image 2.1 Turbo joins H3 through a shared CLI and Python API. The optional native runtime is packaged separately; H3 installations retain their existing inference path.

python -m pip install 'h3-image-mlx[qwen]==0.1.0a5'

Qwen supports text-to-image, ordered reference editing, variation, RGBA, independently scaled LoRA stacks, sampling presets, CFG, memory modes, progress and cancellation. Prompt enhancement is excluded. Qwen's native runtime requires Apple Silicon and macOS 26.2 or later.

Verified uncached eight-step generation on M5 Pro 48 GB (three trials per size):

Resolution Median time Highest worker footprint
512×512 16.94 s 0.846 GB
1024×1024 47.67 s 1.408 GB

Weight-file residency stayed at zero throughout these measurements. All three stages are included; prepared weights already existed. Worker footprint is separate from total system memory. Full measurements and original JSON are in BENCHMARKS.md.

Validation includes 31 installed-wheel tests, real Qwen generation/editing/LoRA/cancellation, and an H3 image matching 0.1.0a4 pixel for pixel. The portable backend ran on M5; M1–M4 hardware coverage remains outstanding.

Release assets include the main wheel/source distribution and h3-image-mlx-qwen-runtime==0.1.0a1 native wheel. The native wheel uses the standard macOS major-version platform tag and checks its exact minimum OS before starting. No model weights are redistributed.

v0.1.0a4: BF16 and experimental P-H3 profiles

Choose a tag to compare

@Anionex Anionex released this 13 Nov 14:28
0223b7a

This alpha release adds optional BF16 weights and experimental P-H3-Image text-to-image support. Default H3 Image generation and editing continue to use INT8 weights and the original six-step sampler.

python -m pip install --upgrade 'h3-image-mlx==0.1.0a4'
  • --precision bf16 selects unquantized DiT and text-encoder weights while retaining AdaLN pruning, staged execution and streaming. ModelScope remains the default download source; the VAE and tokenizer are shared with INT8.
  • Experimental P-H3-Image support from @arielfikru (#7) adds its text connector, joint-model DiT and VAE adaptations. Explicit H3_TEXT, H3_TOKENIZER, H3_DIT and H3_VAE paths select its components; H3_SIGMAS optionally overrides the sampling grid. Reference-image editing and the prompt upsampler are not ported for P-H3.
  • BF16 profile selection and P-H3 component overrides work together. Text embedding caches distinguish precision, encoder identity and tokenizer contents.

Validation: all 21 tests pass against source and installed wheel, including real INT8/BF16 projection samples and component overrides. Four serial installed-wheel checks cover default generation, async/prefetch, cache reuse and single-reference editing; all outputs match the previous release pixel for pixel. Both distributions pass strict Twine validation and packaged runtime files match the tested source. Full BF16 image generation remains untested because the additional 91.74 GB of weights exceed available local disk space. P-H3 end-to-end results are the contributor's measurements in #7.

Usage · 中文指南 · Validation · Artifact hashes

v0.1.0a3: experimental few-step LoRA

Pre-release

Choose a tag to compare

@Anionex Anionex released this 12 Nov 05:40
852fbd1

This alpha release packages the experimental few-step LoRA support from @arielfikru in #3. All experimental controls remain opt-in; the original six-step generation and editing path remains the default.

python -m pip install --upgrade 'h3-image-mlx==0.1.0a3'

Included in this release:

  • H3_LORA: load a ComfyUI-layout adapter alongside the INT8 ConvRot projections.
  • H3_STEPS and H3_SHIFT: explicitly select a few-step sampling grid with a matching distilled adapter or checkpoint.
  • H3_DIT: explicitly select an alternate DiT checkpoint with the same tensor layout.
  • scripts/merge_lora_int8.py: pre-merge a LoRA before INT8 quantization. The script is included in the source distribution and repository; weights and LoRAs are downloaded separately.
  • Updated English and Chinese guides with PyPI installation instructions, contributor measurements and examples for direct and pre-merged adapters.

The existing async/prefetch switches and embedding cache remain independent options. The same-machine benchmark records and generation gallery are unchanged.

Experimental guide · 中文指南

Validation: all nine tests passed against the installed final wheel, including real-weight projection checks. Four serial 512×512 checks covered default generation, async/prefetch, embedding-cache reuse and single-reference editing, with all experimental controls unset. All four outputs matched the previous release baseline pixel for pixel. Wheel and source distribution passed strict Twine validation. Active pDMD and full-checkpoint merge measurements are the contributor's results linked in the experimental guide.

Release validation · SHA-256 manifest · Changes since v0.1.0a2

v0.1.0a2: opt-in streaming acceleration

Pre-release

Choose a tag to compare

@Anionex Anionex released this 12 Nov 05:06
ce17818

This alpha release adds opt-in streaming acceleration from @arielfikru in #2. Weight prefetch and asynchronous evaluation overlap weight reads with GPU work while retaining the existing six-step sampler. Both remain off by default.

Upgrade and enable the recommended streaming options:

python -m pip install --upgrade 'h3-image-mlx==0.1.0a2'
H3_ASYNC=1 H3_PREFETCH=1 h3-image-mlx generate \
  --models ./models --dit-mode stream --output teapot.png \
  --prompt 'A yellow enamel teapot and a white cup on a blue wooden table.'

Also included:

  • Optional repeated-prompt embedding cache (H3_EMBED_CACHE) and DiT profiling (H3_PROFILE).
  • Concise English/Chinese README recommendations with dedicated usage and performance guides.
  • Updated same-machine controlled benchmark records and generation gallery.

Validation: all nine installed-wheel tests passed, including real-weight projection checks. Four serial 512×512 checks covered default generation, async/prefetch, cache reuse and single-reference editing on M5 Pro. Default, optimized and cache-hit outputs were pixel-identical. Both distributions passed strict Twine validation and contain only the runtime and download metadata; existing model files can be reused.

Release checks · SHA-256 manifest · Changes since v0.1.0a1

H3 Image MLX 0.1.0a1

H3 Image MLX 0.1.0a1 Pre-release
Pre-release

Choose a tag to compare

@Anionex Anionex released this 10 Nov 19:27

Local MiniMax H3 Image generation and ordered image editing for Apple Silicon. This alpha includes the Python API, CLI, streamed or resident DiT execution, and an experimental portable MLX backend.

Install with python -m pip install h3-image-mlx==0.1.0a1. The package fetches model files separately from pinned ModelScope or Hugging Face revisions. Users with an existing set of weights can run h3-image-mlx fetch --models ./models to verify the files and add the 1,826-byte VAE configuration.

M5 Pro has been tested on hardware. The portable backend has been exercised on M5 Pro; M1–M4 hardware verification remains open. The validation notes describe the measurements and their scope.