Repository navigation
Conversation
jang_tools.jangt: trellis-coded MoE expert encoder, decode kernels, error curves, routing-flip sensitivity, byte-budget allocation, streamed KL evaluation and mixed JANGT/JANGH bundle assembly (Naive-N0.5-Flash). Imports point at jang_tools.jangh; every path is an argument. Fixes the dense JANGTLinear decode path, which sent <=8-row inputs to the 16-bit-state GEMV at L=12. jang_tools.mflux_image: Qwen-Image-2.1 / -Turbo and Ideogram 4 mflux bundle builders, a reference generate/edit script that samples Turbo on its model_index.json sigma grid, and the mflux scheduler patch Turbo generation needs.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jang_tools.jangt: the JANGT pipeline (trellis-coded MoE experts). It covers the encoder (moe_encode), the reference decode kernels and MoE module (moe_kernels,switch), error curves, routing-flip sensitivity (n05_sens), byte-budget allocation, streamed KL/NLL evaluation from stage files (n05_streval), and mixed JANGT/JANGH bundle assembly (n05_pick_downs,n05_assemble). Imports resolve tojang_tools.jangh, and every input path is a required argument.jang_tools.mflux_image: mflux bundle builders for Qwen-Image-2.1 / -Turbo and Ideogram 4. Also a reference generate/edit script that samples Turbo on thesample_sigmasgrid frommodel_index.json, and the mflux scheduler patch that Turbo generation needs (stock mflux main has no Turbo grid support).minitest.JANGTLinear, inputs of 8 rows or fewer went to the 16-bit-statev2core.gemveven at L=12, which gave a 1.38 output relative error. The materialized path gives 0.30.package-datafor the two new READMEs and the patch.Validation
from … import nameresolves (AST walk; MLX 0.32.3 with scipy/mlx-lm). The publicjangh.n05/janghfunction signatures match the modules this code was developed against.--help.quantize_qwen_image21 --bits 4on Qwen-Image-2.1-Turbo produces a bundle byte-identical (sha256, all 18 files) to the published 4-bit bundle.generate_qwen_image21with that bundle renders the requested sign text correctly in 8 steps.quantize_ideogram4: imports and CLI checked only; the source was not available to rerun.