RUPASTRA Text-to-Image 3M (64Γ—64 Pixel Art)

RUPASTRA Text-to-Image 3M adalah model Text-to-Image autoregresif ringan (~3,27 juta parameter unik), yang dilatih dari awal (trained from scratch) menggunakan dataset m1guelpf/nouns pada resolusi 64Γ—64 piksel.

Model ini menggunakan Grouped Query Dual-Attention (GQDA), 2D Multimodal Rotary Position Embeddings (RoPE-2D), Factorized Low-Rank Embedding ($r=64$) dengan weight tying, Static KV-Cache, dan Fused Gumbel-Max Sampling untuk mempercepat proses training maupun inference.


Contoh Hasil Generasi (Sample Generations)

Cat β€’ Red Body Robot β€’ Blue Body Crown β€’ Yellow Body Pizza β€’ Purple Body
Cat Red Robot Blue Crown Yellow Pizza Purple

Spesifikasi Model (Model Specifications)

Komponen Konfigurasi
Arsitektur (Architecture) RupastraFastForConditionalGeneration (Custom GQDA Transformer)
Total Parameter Unik 3,273,488 (~3,27M)
Backbone 6 layers, d_model = 192, 6 Q heads / 2 KV heads, ffn_dim = 512 (SwiGLU)
Factorized Embedding Rank r = 64 (weight-tied ke output head)
Sequence & Patching text_len = 32, grid_size = 16 (256 token laten β†’ 8Γ—8 = 64 patch 2Γ—2, total 96 token)
Image Decoder (VQ-VAE) CompVis/ldm-super-resolution-4x-openimages (subfolder="vqvae")
Tokenizer Teks Custom BPE Tokenizer (max_len = 32)
Resolusi Output 64Γ—64 RGB (dapat di-upscale NEAREST ke 512Γ—512)
Dataset Pelatihan m1guelpf/nouns (49,859 sampel)

Catatan Penggunaan & Inferensi

  • Setelah memuat model dengan AutoModel.from_pretrained(..., trust_remote_code=True), panggil model.tie_weights() dan model.rebuild_buffers() agar seluruh buffer posisi & jarak terpasang bersih pada device aktif.
  • Menggunakan generate_image_tokens() dengan Static KV-Cache dan Fused Gumbel-Max Sampling untuk generasi cepat (~0,18–0,31 detik/gambar pada GPU T4).
Downloads last month
35
Safetensors
Model size
3.27M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Dataset used to train dhiiitraaa/rupastra-3M

Collection including dhiiitraaa/rupastra-3M