[Project Showcase / Call for Collaborators] MuseTorch: A PyTorch Framework for Custom Masked Generative Models

Hi everyone! :waving_hand:

I am excited to share a new open-source project I am developing called MuseTorch—a PyTorch-native framework designed to help developers and researchers easily build, train, and deploy custom Muse-style Masked Generative Models.

Why MuseTorch?

While traditional autoregressive models generate tokens one-by-one and diffusion models rely on long iterative denoising loops, Muse architectures leverage discrete tokenization and non-autoregressive parallel decoding. This allows high-quality generative synthesis in significantly fewer steps.

However, building these models currently requires custom, repetitive boilerplate code—especially when managing dynamic sequence shapes during parallel decoding.

MuseTorch aims to solve this by offering clean, modular abstractions specifically designed for token-based generative modeling, backed by built-in performance optimization.

Key Architectural Pillars:

  • Modular Masking Mechanics: Native abstractions for continuous/discrete token masking, corruptions, and custom schedule functions $\gamma(r)$.

  • Parallel Iterative Decoding Engine: Out-of-the-box non-autoregressive inference loops with confidence-based token refinement.

  • Compiler-Friendly Infrastructure (AutoBucket): Native dynamic shape management to prevent guard-cache bloat and graph recompilation under torch.compile, allowing static kernel efficiency during sequence generation.

  • Zero-Boilerplate API: Simple, intuitive interfaces to connect pre-trained text encoders, VQ codebooks, and custom transformer blocks seamlessly.

Looking for Co-Maintainers & Collaborators! :rocket:

MuseTorch is currently in its early architectural/infrastructure phase, and I would love to turn this into a strong community effort. I am actively looking for co-maintainers, contributors, and researchers who want to build this together from the ground up!

Whether you are interested in:

  • Compiler & Runtime Optimization (e.g., dynamic shape bucketing, kernel execution)

  • Generative Model Architecture (masking routines, attention blocks, decoding algorithms)

  • Developer Experience & Benchmarking (API design, testing pipelines, tutorials)

…you are very welcome to jump in!