Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 6 min read Opinion easyNovice

Large Language Models: A New Moore's Law?

Megatron-Turing NLG 530B and the 10x-per-year growth in language model size look like a new Moore's Law heading for diminishing returns, with roughly $100M of DGX A100 hardware, 6.5 kW per server and a large carbon footprint buying only small benchmark gains. Most teams are better served by starting from pretrained models and choosing the smallest one that meets their accuracy target. Distilled or compact models such as DistilBERT (97% of BERT's language understanding, 40% smaller, 60% faster) and T0 (beats GPT-3 on many tasks at 16x smaller) show this is practical. Fine-tuning instead of training from scratch, running on cloud infrastructure, and applying pruning, layer fusion and quantization further cut cost and energy.

Assumes: transformer language modelsfine-tuning basics

Related posts

  • What is LLM fine-tuning?

    Modal mediumAdept

    Fine-tuning adjusts a pretrained LLM's weights for a specific task or domain, often matching larger models' quality at lower cost and latency. One cited example puts a fine-tuned Llama 7B at roughly 50x cheaper per token than GPT-3.5. The guide compares where to fine-tune (OpenAI, Predibase, Modal, Colab, SageMaker) and which frameworks to use (HuggingFace transformers, TRL, Axolotl). It then walks through choosing a base model, formatting and tokenizing an instruction dataset with optional custom special tokens, training, and efficiency techniques such as LoRA-based PEFT and quantization.

  • How to train a Language Model with Megatron-LM

    Hugging Face hardMaster

    Megatron-LM, NVIDIA's GPU-optimized framework for pre-training transformers, can train a GPT2-style model end to end: environment setup in an NGC PyTorch container, preprocessing data into tokenized binary mmap files, launching distributed training, and converting checkpoints to Hugging Face Transformers. Its speed comes from a DataLoader that pre-computes shuffled sequence indexes across epochs and from fused CUDA kernels, including Apex's fused AdamW, which cut memory movement. A 110M-parameter CodeParrot model trains in about 12 hours on 8 GPUs with data parallelism, and tensor and pipeline parallelism are available for larger models. The extra preprocessing and conversion overhead makes it worth using mainly for pre-training or extended fine-tuning rather than short fine-tunes.

  • Productizing Large Language Models

    Replit mediumAdept

    Replit runs transformer models from ~100M parameters (search, spam) through 1-10B (GhostWriter code autocomplete) to 100B+ in production, and shares lessons on making them usable. Nonsense and repetition loops are handled with temperature and frequency penalty tuning, cycle detection, multi-temperature sampling, reranking with a second model, and fine-tuning on user feedback. Quality is tracked with HumanEval, loop and nonsense rates, and A/B tests. Inference cost is cut with FasterTransformer, distillation and quantization, and GPUs are run at 70-80% utilization on Kubernetes so request queues stay bounded while autoscaling has headroom.

  • Remocal and Minimum Viable Models: Why Right-Sized Models Beat API Overkill

    Docker easyNovice

    Remocal (local development with on-demand bursting to cloud GPUs) paired with Minimum Viable Models, meaning the smallest model that solves the task, is pitched as a cheaper, faster and more private alternative to defaulting to large API models. Small-model techniques are surveyed: curated-data SLMs like Phi-4, NF4 4-bit quantization with low-rank adapters (~75% less GPU RAM), sparse MoE such as Mixtral, FlashAttention-2, and on-device Gemini Nano. A table lists local-capable models (Qwen 3, Gemma 3, Mistral Small 3.2, Llama 3.1 70B, SmolLM3, Phi-4) with VRAM footprints. A rubric keeps API models for broad world knowledge, complex cross-domain reasoning or low volume, and favors right-sized models for well-defined, latency-, cost- or privacy-sensitive tasks.

  • Spread Your Wings: Falcon 180B is here

    Hugging Face mediumAdept

    Falcon 180B from TII is the largest openly available language model, with 180 billion parameters, trained on 3.5 trillion tokens (mostly RefinedWeb) across up to 4096 GPUs for about 7M GPU hours. It scales up Falcon 40B's architecture, including multiquery attention, and scored on par with Llama 2 70B and PaLM 2-Large on common benchmarks. Running it needs serious hardware: 640GB for BF16 inference, 320GB with GPTQ/int4, and 160GB for QLoRA fine-tuning. 8-bit and 4-bit quantization barely change eval scores, and Transformers 4.33 supports loading, quantizing and chat-style prompting.

The quest for software engineering knowledge.

Look:
Layout: