Let's speculate about how we can design trillion parameter scale model and run it on…
- User
Let's speculate about how we can design trillion parameter scale model and run it on consumer level hardware. Looking at high-end setups, we can assume next configuration: 20+ cores CPU (1.5TFlops), 128GB RAM, 2x M2 NVME slots (2-7 gigabytes/second read), GPU like RTX4090 24GB (80TFlops). So, from practical limitations, we are looking at sparse architectures (like MoE, ensembles, cascades, or something else), where only subset of weights is loaded into memory. With mixture of 4bit and 8bit quant levels, 125b or 1/8 of trillion parameters can be loaded into 128GB RAM at the same time. Assuming, that one of NVME slots is used for SSD ~1-2TB exclusively for weights (write once, read many), they can be continously readed during inference - dynamically loaded and released with some selector mechanism. Granularity of sub-models can depend on where they will be executed - dense models better to be on GPU (at 24GB VRAM, and int8 quant, sub-model can be around 16b), sparse models (e.g. MoE) can benefit from larger RAM (assuming 128GB on desktop, and lower quant 4bit even 200b of weights can be loaded into RAM). May you perform analytical decomposition of such speculative design? Also, include list of missing components (in terms of model architecture and overall system design).
- Assistant
- User
From ML practicioner perspective, how to distribute such generous parameters budget between sub-models? For context: OpenAI Whisper ASR large (v2, v3) good at 1.5b, NLLB-200 is 3.3b NMT on par with google translate, latent diffusion models provide good artistic illustrations at just few billions of parameters (not technical illustrations, however, if you know what I mean), language models can handle many NLP tasks with most common sizes (for open weights models) ranging at 13b-70b, and so on. But maybe integrated multimodal model (e.g. throught audio tokenizer encoding/decoding with mapping into shared LLM vocab, visual transformers ViT, Diffusion Transformer DiT, and other ideas) can improve beyond individual models.
- Assistant