DeepSeek-V3
Explore dynamic vs static activation quantization. DeepSeek-V3 uses dynamic schemes for real-time scaling and peak accuracy. Understand how per-block scales improve inference.
How to Set Up Distributed Inference with torchrun for Multi-Node DeploymentLearn how to set up distributed inference with torchrun for multi-node deployment. Effortlessly launch generate.py using torchrun flags for efficient model scaling and sharded checkpoint loading across nodes.
DeepSeek-V3-Base vs DeepSeek-V3 Chat Model Architectures: Key Differences ExplainedExplore the key differences between DeepSeek-V3-Base and DeepSeek-V3 Chat models. Understand their shared architecture and distinct fine-tuning for optimal performance.
How weight_dequant Handles Per-Block Scaling in DeepSeek-V3 FP8 GEMMExplore how weight_dequant manages per-block scaling for FP8 GEMM in DeepSeek-V3. Understand its custom Triton kernel for applying unique scaling factors to weight tiles.
How to Profile DeepSeek-V3 Inference Kernels Using Triton AutotuningProfile DeepSeek-V3 inference kernels efficiently with Triton autotuning. Learn to capture runtime selections or benchmark specific kernel configurations for optimized performance.
How to Implement Custom Expert Routing Strategies in the DeepSeek-V3 Gate ModuleMaster custom expert routing in DeepSeek-V3. Learn to modify hyperparameters, subclass the Gate class, or implement alternative scoring for advanced control.
DeepSeek-V3 MLA KV Cache Memory Footprint for 128K Context LengthDiscover the DeepSeek-V3 MLA KV cache memory footprint for 128K context. Learn about BFloat16 and FP8 quantization options impacting GPU memory usage, perfect for optimizing large context models.
How to Convert HuggingFace FP8 Weights to DeepSeek-V3 Format Using convert.pyLearn to convert HuggingFace FP8 weights to DeepSeek-V3 format with convert.py. Reshape and shard checkpoints for DeepSeek-V3 inference engine.
DeepSeek-V3 quantization_config Parameters Explained: e4m3, weight_block_size, and activation_schemeUnderstand DeepSeek-V3 quantization_config parameters like e4m3, weight_block_size, and activation_scheme to optimize LLM inference. Learn FP8 storage, block quantization, and activation scaling.
How DeepSeek-V3 Handles Expert Load Imbalance in MoE Layers Without Auxiliary LossDeepSeek-V3 overcomes expert load imbalance in MoE layers using deterministic routing and group constraints without auxiliary loss. Learn how it optimizes performance.
DeepSeek-V3 671B Model Parallelism Requirements: Tensor Parallel Size SetupLearn the tensor parallel size for DeepSeek-V3 671B model loading. Discover how to set up model parallelism across 16 GPUs for efficient inference.
DeepSeek-V3 RoPE Scaling Factor (`rope_factor=40`) and YaRN Extrapolation for 128K ContextDiscover how DeepSeek-V3 achieves 128K context with rope_factor=40 and YaRN extrapolation. Learn about frequency scaling and linear ramp correction for enhanced performance.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →