Run this model with HF Jobs
Run rhymes-ai/Allegro on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/rhymes-ai/Allegro. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/rhymes-ai/Allegro on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use rhymes-ai/Allegro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rhymes-ai/Allegro with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("rhymes-ai/Allegro", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Add `model_index.json` and update modeling configs
#2
by a-r-r-o-w - opened
Files changed (3)
- model_index.jsonAdded+24
- transformer/config.json+4-12
- vae/config.json+25-21
123456789101112131415161718192021222324{ "_class_name": "AllegroPipeline", "_diffusers_version": "0.31.0.dev0", "scheduler": [ "diffusers", "EulerAncestralDiscreteScheduler" ], "text_encoder": [ "transformers", "T5EncoderModel" ], "tokenizer": [ "transformers", "T5Tokenizer" ], "transformer": [ "diffusers", "AllegroTransformer3DModel" ], "vae": [ "diffusers", "AutoencoderKLAllegro" ]}1234567891011121314151617181920212223242526272829303132333435363738{"_class_name": "AllegroTransformer3DModel","_diffusers_version": "0.28.0","activation_fn": "gelu-approximate","attention_bias": true,"attention_head_dim": 96,"ca_attention_mode": "xformers","caption_channels": 4096,"cross_attention_dim": 2304,"double_self_attention": false,"downsampler": null,"dropout": 0.0,"in_channels": 4,"interpolation_scale_h": 2.0,"interpolation_scale_t": 2.2,"interpolation_scale_w": 2.0,"model_max_length": 300,"norm_elementwise_affine": false,"norm_eps": 1e-06,"norm_type": "ada_norm_single","num_attention_heads": 24,"num_embeds_ada_norm": 1000,"num_layers": 32,"only_cross_attention": false,"out_channels": 4,"patch_size": 2,"patch_size_t": 1,"sa_attention_mode": "flash","sample_size": [90,160],"sample_size_t": 22,"upcast_attention": false,"use_additional_conditions": null,"use_linear_projection": false,"use_rope": true}123456789101112131415161718192021222324252627282930{"_class_name": "AllegroTransformer3DModel","_diffusers_version": "0.31.0.dev0","activation_fn": "gelu-approximate","attention_bias": true,"attention_head_dim": 96,"caption_channels": 4096,"cross_attention_dim": 2304,"dropout": 0.0,"in_channels": 4,"interpolation_scale_h": 2.0,"interpolation_scale_t": 2.2,"interpolation_scale_w": 2.0,"norm_elementwise_affine": false,"norm_eps": 1e-06,"norm_type": "ada_norm_single","num_attention_heads": 24,"num_layers": 32,"out_channels": 4,"patch_size": 2,"patch_size_t": 1,"sample_frames": 22,"sample_height": 90,"sample_size": [90,160],"sample_size_t": 22,"sample_width": 160}
1234561 unmodified line8910111213141516171819202122232425262728293031323334353637383940{"_class_name": "AllegroAutoencoderKL3D","_diffusers_version": "0.28.0","act_fn": "silu","block_out_channels": [128,1 unmodified line512,512],"blocks_tempdown_li": [true,true,false,false],"blocks_tempup_li": [false,true,true,false],"chunk_len": 24,"down_block_num": 4,"force_upcast": true,"in_channels": 3,"latent_channels": 4,"layers_per_block": 2,"load_mode": "full","norm_num_groups": 32,"out_channels": 3,"sample_size": 320,"scale_factor": 0.13,"t_over": 8,"tile_overlap": [120,80],"up_block_num": 4}1234561 unmodified line891011121314151617181920212223242526272829303132333435363738394041424344{"_class_name": "AutoencoderKLAllegro","_diffusers_version": "0.31.0.dev0","act_fn": "silu","block_out_channels": [128,1 unmodified line512,512],"down_block_types": ["AllegroDownBlock3D","AllegroDownBlock3D","AllegroDownBlock3D","AllegroDownBlock3D"],"force_upcast": true,"in_channels": 3,"latent_channels": 4,"layers_per_block": 2,"norm_num_groups": 32,"out_channels": 3,"sample_size": 320,"scaling_factor": 0.13,"temporal_compression_ratio": 4,"temporal_downsample_blocks": [true,true,false,false],"temporal_upsample_blocks": [false,true,true,false],"up_block_types": ["AllegroUpBlock3D","AllegroUpBlock3D","AllegroUpBlock3D","AllegroUpBlock3D"]}
model_index.jsonAdded+24
transformer/config.json+4-12
vae/config.json+25-21