Catalog PyPI
PACKAGE EXPLORERView in registry

aggressor

PyPI

Ultra-minimal autoregressive diffusion model for image generation

Versions collected1
Direct dependencies6From release 0.0.1a0
Last observed21 Oct, 09:03 UTC

README

Version 0.0.1a0 documentation

Aggressor: Ultra-minimal autoregressive diffusion model for image generation

A simplest possible implementation of Autoregressive Image Generation without Vector Quantization.

Key Features

  • Simple Architecture: A tiny transformer for autoregression and an MLP for diffusion.
  • Single-File Implementation: Entire model in one Python file.
  • Minimal Dependencies: Built from scratch using only basic MLX operations.

Components

  • Aggressor: Main model class combining transformer and diffusion.
  • Transformer: Multi-layer transformer with attention and MLP blocks.
  • Denoiser: MLP-based diffusion process with time embedding.
  • Scheduler: Handles forward and backward processes for diffusion.
  • Attention: Multi-head attention mechanism.
  • MLP: Basic multi-layer perceptron with SiLU activation.

Usage

python aggressor.py

Alt text

Alt text

(Training on 60000 images x 20 epochs takes approximately 7~8 minutes on 8GB M2 MacBook.)

Acknowledgements

Thanks to lucidrains' fantastic code that inspired this project. The official implementation is available here.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.1a019 Sept 20246

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
josefalbers/aggressor

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:03 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d3e4feec3368b2e24ca97c0915eaf80e232826efb4403ae49039c4058cc4bf14