C HARON : A U NIFIED AND F INE -G RAINED S IMULATOR FOR L ARGE -S CALE LLM T RAINING AND I NFERENCE
arXiv:2605.17164v1 [cs.DC] 16 May 2026
Mengtian Yang 1 2 Zhekun Zhang 2 Mingheng Wu 2 Jianwen Yan 2 Hanshi Sun 2 Li-wen Chang 2
A BSTRACT Deploying large-scale LLM training and inference with optimal performance is exceptionally challenging due to a complex design space of parallelism strategies, system optimizations, and hardware configurations. Accurate and rapid performance simulation is critical for guiding optimization Hooker Figure efforts and system studies by validating “what-if” hypotheses. To address this, we introduce Charon, a unified, modular, and fine-grained simulator for accurately predicting LLM performance. Experiments show Charon achieves high accuracy across different models and configurations, with an overall prediction error consistently under 5.35%, and even under 3.74% for training with a large-scale GPU cluster. In a practical inference deployment case, Charon discovered a configuration that improved system throughput over an engineering-tuned baseline, demonstrating its significant real-world value. 1
I NTRODUCTION
In recent years, large language model (LLM) workloads have rapidly transitioned from research prototypes to production systems powering search engines, conversational agents, and code assistants. This shift has brought an unprecedented surge in computational demand—for instance, training a model like LLaMA-3 405B can consume over 30 million GPU hours across 16,000 H100 GPUs (meta llama, 2024). At this scale, the efficiency of both training and inference depends on the careful coordination of parallelism strategies, network topology, and model architecture. Even small misconfigurations can result in days of wasted compute or intolerable serving latency, leading to substantial financial and operational costs. To address these, performance simulators have been widely explored to capture the behavior of LLM training and serving pipelines, facilitating scalability analysis and hardware–software co-design (Won et al., 2023; Wang et al., 2025; Liang et al., 2025; Feng et al., 2024; Cho et al., 2024; Agrawal et al., 2024). However, existing LLM simulators remain fragmented and insufficient for end-to-end analyses. Most are specialized for either training (Wang et al., 2025; Liang et al., 2025; Feng et al., 2024; Hu, 2022) or inference (Agrawal et al., 2024; Cho et al., 2024), forcing engineers to rely on separate, often incompatible tools. They also impose substantial usability overhead, requiring manually building models inside 1
University of Texas at Austin, Texas, USA. Work done at ByteDance Seed 2 ByteDance Seed. Correspondence to: Mengtian Yang <[email protected]>. Proceedings of the 9 th MLSys Conference, Bellevue, WA, USA, 2026. Copyright 2026 by the author(s).
Native Models
Training/Inference Workload • Best Config • Expected Perf GPU • Exec Timeline
Profiling-based GPU Tuning
OR
Design Exploration w/ Charon
Cost Per Evaluation
$1k Profile
>30k x Saving
Few ¢
Charon
• Graph-based Operator-level Simulation
Evaluation Accuracy
• Different Computation Card Adoption
1
• Cluster Topology-aware Communication Charon Simulation Platform
-3.74%
Profile Charon 0
Figure 1: Charon enables end-to-end, operator-level simulation for LLM training and inference. It delivers more than 30k cost reduction compared with cluster profiling for large-scale experiment, with only 3.74% total training time error on a large-scale training task.
the simulator (Won et al., 2023; Wang et al., 2025; Agrawal et al., 2024) or pre-processing (Liang et al., 2025; Feng et al., 2024) rather than supporting direct use of native models. Architecturally, existing simulators either lack operator-level granularity in modeling both computation and communication (Won et al., 2023; Wang et al., 2025), or lack the flexibility to modify operator graphs for simulating system or compiler optimizations (Feng et al., 2024; Agrawal et al., 2024). These limitations hinder fine-grained performance analysis, seamless hardware integration, and optimization exploration. Table 1 summarizes these limitations, including gaps in workload coverage, parallelism support, simulation granularity, and backend flexibility. Consequently, an ideal simulator should support both training and inference, allow direct use of native models, provide operator-level insights, and enable flexible integration of hardware backends and
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference
Table 1: Capabilities of existing training and inference simulators Training Inference Design Searching Trace Generation Optimizations (Fusion, Reorder, ...) Overlapping Slowdown Computation Modeling Communication Modeling Parallelism Input
Astra-sim ✓ ✓ ✗ ✗
SimAI ✓ ✗ ✗ ✗
Lumos ✓ ✗ ✗ ✓
Echo ✓ ✗ ✗ ✗
Vidur ✗ ✓ ✓ ✓
LLMServingSim ✗ ✓ ✗ ✗
Charon (This Work) ✓ ✓ ✓ ✓(w/ 3D Timeline)
✗
✗
✗
✓
✗
✗
✓
N/A
Ratio
N/A
Prediction
N/A
N/A
Cluster-aware Modeling
Analytical
Profile / Analytical
Profile / In-house
Profile
Profile
Profile / Analytical
Analytical
Analytical
In-house
Profile
Analytical
TP / DP / PP Hand Crafted
TP / DP / PP / EP Mocked Model
TP / PP / DP Profiled Traces
TP / PP
TP / PP
Mocked Model
Hand Crafted
Analytical / Profile / Prediction Analytical / Profile / Prediction TP / PP / DP / EP / SP / ZeRO / DualPipe Native HuggingFace / PyTorch / vLLM Model
Analytical/ Prediction TP / PP / DP Mocked Traces
parallelism strategies, allowing accurate design-space exploration and performance analysis at scale. To overcome the fragmentation and rigidity of existing LLM simulators, which often trade off fidelity for speed or flexibility for usability, we propose Charon, a unified, modular, and fine-grained simulation framework for large-scale LLM training and inference. The key insight is to treat LLM simulation as a compiler-style transformation process, where each stage incrementally refines the model, schedule, and system representation to balance speed, accuracy, and scalability. Architecturally, this perspective allows Charon to have a higher coverage and accuracy than prior simulators by: (i) native model interface directly accepts HuggingFace, vLLM or custom PyTorch models, eliminating hand-crafting or preprocessing; (ii) modular pass-based design which supports plug-and-play analysis and optimization passes, allowing flexible parallelism strategies and new optimization to be modeled without refactoring core infrastructure; (iii) multi-granularity analysis produces system-level aspects as well as fine-grained PyTorch style traces, exposing rich information for performance debugging; (iv) hybrid operator simulation which combined analytical, profiling, and prediction backends, achieving optimal trade off between speed and accuracy. Empirically, we conducted extensive evaluations of Charon, validating its accuracy against both ground-truth hardware measurements and leading simulators. Across diverse models, including LLaMA3-8B, Qwen3-8B, and Qwen3-30BA3B, Charon consistently achieves the highest end-to-end simulation fidelity, with overall prediction errors within 5.35% of physical hardware and even within 3.74% with a large-scale GPU cluster. Fine-grained operator-level breakdowns further confirm that Charon accurately models both computation and communication, including overlapping operators and multi-parallelism strategies. Beyond accuracy,
Charon demonstrates practical impact in design-space exploration and inference optimization: in a case study on LLaMA-3 70B, it automatically discovered an inference deployment configuration that improved system throughput over a manually-tuned baseline.
2
BACKGROUND AND M OTIVATION
Modern LLMs are based on a decoder-only transformer architecture shown in Figure 2(a) (Vaswani et al., 2023), composed of stacked blocks with self-attention and a feedforward network, which is often a Mixture-of-Experts (MoE) for parameter efficiency(Fedus et al., 2022). As shown in Figure 2(b), their execution workflows differ: training involves iterative forward, backward, and optimizer passes, while inference operates a forward pass accelerated by the key-value (KV) cache. The scale of these models necessitates both sophisticated parallelism strategies to distribute the workload and extensive performance tuning to optimize execution on large clusters. 2.1
Parallelism Strategy
Due to the enormous LLM model sizes and data involved, training and inference of LLMs almost invariably require large GPU clusters. Consequently, parallelism strategies are critical to achieving acceptable performance. Figure 2(b) right part shows the most widely used parallelism strategies: Tensor parallelism (TP) partitions individual weight tensors across multiple GPUs, allowing for wide hidden dimensions at the expense of additional all-reduce communication during each layer. Data parallelism (DP) traditionally replicates the full model on each GPU and splits the input mini-batch, synchronizing gradients across replicas after the backward pass. Modern variants such as ZeRO (Rajbhandari et al., 2020) and FSDP (Zhao et al., 2023) divide optimizer states,
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference (a) Query (Q) Generation
Transformer Block N
(b)
Despite the detailed visibility offered by modern profiling tools, tuning training and inference configurations at cluster scale remains highly challenging. As shown in Figure 2(c), conventional tuning workflow typically follows an iterative “profile–analyze–tune” way: engineers run workloads, collect traces, interpret results, and manually adjust settings. However, with ever-growing model sizes and emerging optimization techniques, the design space for large LLMs has expanded dramatically. Even restricting the exploration to GPU model selection and parallelism strategies can involve thousands of possible configurations(Gui et al., 2025). Evaluating a single design point on a large-scale cluster needs repeated runs (e.g., cold launches and multiple warm-ups) and can consume hundreds of GPU hours. The total exploration cost can approach 106 GPU hours, even under a constrained search that evaluates only four parallelism sizes per parallelism type. Consequently, exhaustive profiling-
Gradient
Optimizer
Error
Weight
…
MoE
Attention
Expected
x
=
GPU1
x
GPU2
x
Model GPU1 GPU2
GPU1
FFN1
GPU2
FFN2
①Forward ②Backward ③Update
Key-Value (KV) Cache
(c) Profiling-based Tuning Flow Initial Configuration
Multiple iterations
Cluster-level Profiling Experiments GPU
GPU
Optimized Configuration
Micro batch
Layer 1
Layer 2
Sequence Parallel (SP) Sequence token
GPU1
GPU1
GPU2
GPU2
Norm
Profiling-based Tuning Cost on Cluster with >10k GPUs 1.E+06 106
GPU Hours Design Space
10000
1.E+05 105
1000
1.E+04 104
100
103 1.E+03
10
102 1.E+02
GPU Types +Parallelism +Parallelism Sizes* Types
1
Total Design Space Size
Decode Stage
Pipeline Parallel (PP)
Total GPU Hours
Prefill Stage
Output Sequence
Input Sequence
Inference / Serving Steps
Tuning at Cluster Scale
Considering the scale of modern LLMs, tuning configurations to achieve optimal training and inference performance is essential before deploying models to production clusters. Profiling tools, such as PyTorch Profiler and NVIDIA Nsight Systems, are widely adopted for diagnosing performance bottlenecks in large-scale LLM workloads. By instrumenting both forward and backward passes, these profilers capture fine-grained metrics including operator execution time, GPU SM and memory utilization, kernel-launch overhead, and inter-device communication latency. With this information, engineers can identify bottlenecks such as inefficient attention kernels, suboptimal memory accesses, or network contention and determine which configuration parameters (e.g., batch size, fusion settings, or communication overlap) require adjustment.
Grouped Query
Linear Activation Linear
Parallelism Strategies Tensor Parallel (TP) Data Parallel (DP) Expert Parallel (EP)
Training Steps Input Sequence
Output
Key (K) Generation Value (V) Generation
LM Head Layer
Experienced Engineers
2.2
Norm Layer
Transformer Block 1
Feed Forward
Multi-head
Norm Layer
Embedding Layer
…
gradients, and parameters themselves across devices to optimize per-GPU memory usage and communication volume. Expert parallelism (EP) applies specifically to mixture-ofexperts models, distributing different expert sub-networks across GPUs and incurring routing and load-balancing overhead. Pipeline parallelism (PP) divides the transformer blocks into sequential stages, assigning each stage to a different GPU. Micro-batches flow through these stages to keep all GPUs utilized. Sequence parallelism (SP) slices the input token sequence across devices for normalization layers, accelerating normalization calculation at the cost of additional communication. Modern deployments typically mix two to four of these schemes simultaneously(Shoeybi et al., 2020; Narayanan et al., 2021; Smith et al., 2022; Li et al., 2022). For example, TP is used for GPUs in a node, PP is used for inter-node, and EP is used for MoE routing. Each combination imposes distinct demands on computation resources as well as intra-node and inter-node connections, making the design choice very hard for software engineers.
*Suppose for each parallelism type, the parallel size has 4 choices
Figure 2: LLM architecture, execution workflows, and tuning challenges: (a) Decoder-only Transformer stack with QKV attention and optional MoE in the feed-forward layers.(b) Training (forward, backward, update) and inference (prefill, decode with KV cache) workflows alongside key parallelism schemes. (c) Iterative profiling-based tuning loop and its GPU-hour/design-space explosion on large GPU clusters.
based tuning becomes prohibitively time-consuming and economically infeasible. 2.3
Related Works
Several simulators have been developed to estimate the performance of LLM training and inference across large-scale systems. ASTRA-Sim (Won et al., 2023) provides a purely analytical framework for distributed simulation, but requires users to manually construct workload models using predefined templates, limiting ease of use and model fidelity. For training simulation, SimAI (Wang et al., 2025) adopts a profiling-based, operator-level performance model for computation while estimating communication at the layer level through either analytical bandwidth models or a slower network-package simulator. Recent work (Kumar et al., 2025) extends SimAI by adding support for custom device groups and interconnect topologies, yet still depends on mocked models as input. Lumos (Liang et al., 2025)
Communication Op Simulator
TODO: Sync Color with Hooker
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference Input Description
Simulation Results
Native Model Hugging Face vLLM
Model Information + Configuration Graph Generation Linear
Custom (PyTorch)
+ GPU/NPU Info
Graph Manipulation
Linear
Scale
Interconnect
Trace
Graph-based Frontend
…
Param 1
Analytical Engine Computation Communication
Graph Execution
Softmax
Parallelism Plan
Profiling Engine Prediction Engine
Matmul
Design Parameters
Fused Engine
Param 2
…
…
Param 3
…
System Config
Operator Simulator
Prune Configuration
Op Overlap Processor
Rule-based Pruning Tool
Multi-engine Backend
Design Explorer
Charon Simulation Platform
Simulation Summary • Latency • Flops / MFU • Memory • Power Timeline Trace • Single Layer Trace • 3D Timeline Trace
Design Exploration • Best Config
Figure 3: Architecture overview of proposed Charon simulator. The system consists of a graph-based frontend that constructs forward and backward computation graphs while applying optimizations and analyses; a multi-engine backend that accurately simulates both computation and communication operators; and a design explorer that searches for the optimal configuration through guided pruning. and Echo (Feng et al., 2024) provide operator-level simulation for training but rely on profiling or synthetic traces as workload inputs, introducing additional preprocessing overhead. For inference simulation, Vidur (Agrawal et al., 2024) achieves high accuracy by profiling both computation and communication, but requires models to be rebuilt within its own simulation framework. LLMServingSim (Cho et al., 2024) extends ASTRA-Sim to integrate hardware-specific simulators such as NPUs and PIM devices, but still relies on manually crafted workload descriptions.
3
M ETHODOLOGY
3.1
Architecture Overview
Figure 3 presents the high-level architecture of Charon, our unified “all-in-one” simulator for LLM training, inference and design-space exploration. Charon ingests native models such as HuggingFace, vLLM, or customized PyTorch models, alongside a system configuration describing GPU or even NPU specifications, interconnect topology, and desired parallelism schemes. From these inputs, Charon produces both high-level summaries (e.g., FLOPs, model-FLOPs utilization, memory footprint, and power or TDP estimates) and, if enabled, fine-grained execution traces in the style of the PyTorch Profiler (including single-layer timelines and full 3D multi-GPU traces). Charon’s architecture comprises three key components. The frontend parses the model graph and applies a sequence of compiler-style passes—tracing operators, injecting parallelism, scheduling execution, and analyzing results. The backend executes operator-level simulations via interchangeable workers for profiling-based, analytical-based, and prediction-based simulations. It also features an overlap processor to capture communication-computation and communication-communication overlapping and estimate
the slowdown for overlapped operators. Finally, the parameter searcher explores the configuration space with suboptimal settings pruning to identify optimal designs regarding cost and performance. 3.2
Graph-based Frontend
Charon’s frontend is the interface between user’s input and the operator-level backend simulator with a computational graph-oriented design. As Figure 4 illustrates, the frontend turns the simulation input into a computational graph and applies multiple graph manipulations to simulate the optimization or analyze the results. (a) Graph Generation with Native PyTorch Model: To maximize usability and support a wide variety of model architectures, Charon is designed to directly accept native PyTorch models as its simulation input. Since modern LLM architectures typically comprise multiple duplicated Transformer blocks, Charon extracts and simulates only a single transformer decoder block. This approach substantially accelerates simulation while preserving architectural fidelity and numerical accuracy. However, this single-block simulation is a performance optimization primarily for symmetric architectures. For asymmetric models or workloads requiring PP, Charon traces distinct layers into separate FX graphs according to the model definition and schedules them explicitly per rank, ensuring that all PP ranks and inter-stage dependencies are accurately modeled. Furthermore, to enable disaggregated serving support, Charon can trace prefill and decode operations into independent computation graphs. This allows simulation of heterogeneous execution where different stages are mapped to different hardware clusters. The input model can originate from widely used frameworks such as Hugging Face or vLLM, or from any customized PyTorch implementation. This flexibility is enabled by the Graph Tracer shown in Figure 4(a), which automat-
torch.compile torch.fx.symbolic_trace
Torch Partitioners
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference (a) Native PyTorch Models
LM Head
...
Transformer
Embedding
Transformer
(Decoder-based LLMs)
Graph Optimize + Refine
Joint Graph (FWD + BWD)
Torch AOT Autograd
Torch Partitioner
Dummy Input Tensor Dummy Loss Function + Raw Forward Graph
BWD Postprocess
Forward Graph
Backward Graph
Single Transformer Block
torch.compile torch.fx.symbolic_trace
Parallelism Passes
Analysis Passes
Operator Rewrite
Shard Pass (TP/EP/SP)
MFU Analysis
Operator Fusion
Pipeline Parallel Pass
Memory Analysis
...
...
Recompute / Reorder
Data Parallel Pass
Timeline Analysis
Passes
Passes
Passes
Simulation Results
Optimization Passes
...
Traced FWD / BWD Graph
(b)
Figure 4: Frontend architecture of proposed Charon simulator. (a) Trace and generate forward and backward groups from native PyTorch models. (b) Apply compiler-style passes for optimizations and analyses.
ically converts the native model into an intermediate computation graph using torch.fx.symbolic_trace or torch.compile. Specifically, the Graph Tracer first symbolically traces the model to capture its operatorlevel structure, then leverages the compilation pipeline in torch.compile to optimize and lower the traced module into a unified forward compute graph suitable for simulation. For training tasks that also need the backward computational graph, the graph tracer is designed to automatically generate the backward graph utilizing the torch._function.aot_autograd feature. To achieve this, a dummy loss function as well as a fake input tensor will be added to the forward graph to allow dynamic output shapes. After tracing, the joint graph is processed through several passes to enhance its structure and semantics. These include adding tensor metadata, renaming input and weight nodes, and removing useless operations such as view, detach, and other operations that do not alter the tensor’s shape or data type. The joint graph is then partitioned into separate forward and backward graph modules using the default_partition function. The backward graph undergoes further refinement, including decomposing auto-functionalized operations, removing self-clone operations, and eliminating dead code. Through this series of well-orchestrated steps, graph tracer efficiently and automatically generates a clean and optimized backward graph for the given forward computation. (b) Graph-based Optimization and Parallelism: Modern LLMs usually contain multiple optimizations with different parallelism strategies during their training and infer-
ence flow. In order to support various optimizations and parallelisms as well as prepare for adopting the upcoming techniques in the future, we proposed a compiler-style design where optimizations and parallelisms are abstracted as graph manipulation passes that apply directly to computational graphs illustrated in Figure 4(b). Adding or removing the pass will enable or disable a specific optimization for simulation tasks, and different passes can be freely combined to enable joint optimizations. Operator-level optimizations in Charon, such as operator rewrite and fusion, are implemented through a flexible match-and-replace graph manipulation framework. During this optimization pass, Charon traverses the computation graph to identify target node patterns that meet predefined matching criteria. Once matched, the framework modifies the node types and attributes to apply the intended optimization, such as merging multiple operators into one or replacing inefficient operator forms. This design enables high extensibility since new optimization rules can be easily added by defining custom match patterns and their corresponding transformation actions. Moreover, for quantization, Charon can either add a quantization pass to change the precision of the node or directly trace quantized models, enhancing usability and coverage given the widespread adoption of quantization in modern LLM implementations. Leveraging its pass-based modular design, Charon supports multi-parallelism by sequentially applying the corresponding passes to the computation graph, providing flexible composition of hybrid parallelism strategies. As illustrated in Section 2, modern LLMs typically employ multiple forms of parallelism when deployed across multi-GPU systems. These parallelisms introduce collective communication operations to coordinate computation and data movement among devices. To model the resulting overhead, Charon inserts communication operators into the computation graph through a series of dedicated parallelism passes: (i) Shard-based parallelisms such as TP, SP, and EP partition tensors and their associated computation operators across multiple GPUs. Charon traces the computation graph, adjusts the tensor shapes of the sharded operators, and inserts the corresponding communication operators (e.g., all reduce, all gather, reduce scatter) before and after each sharded operation according to the selected strategy. (ii) PP partitions the training or inference workflow into multiple stages, with explicit dependencies across devices. In Charon, this is implemented through a schedule pattern generator that constructs inter-stage dependencies and inserts send/recv communication operators to model data transfer between stages. Charon supports both the classic 1F1B schedule and the DualPipe schedule with communication and computation overlapping. The resulting dependency graph and communication events are logged for subsequent
torch.compile torch.fx.symbolic_trace Torch Partitioners
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference
The Charon analyzer supports both dependencyindependent and dependency-aware metrics through unified graph-based processing. For metrics that do not require operator dependencies such as model FLOPs utilization, the analyzer operates directly on the computation graph, computing per-node metrics and aggregating them into system-level results through graph traversal. For dependency-aware metrics, such as detailed timeline traces, the analyzer interacts with the Charon backend to obtain the start and end times of each operator. These are then refined by the operator scheduler, which accounts for inter-operator dependencies (e.g., pipeline stages) to generate an accurate execution timeline. From this dependency-adjusted timeline, profiler-style traces and latency-related metrics (e.g., block latency, end-to-end latency, and FLOPs utilization) are derived. Moreover, optimization techniques such as operator recomputation and communication–computation overlap should be analyzed both before and after optimization to quantify their effects. For example, FLOPs analysis is performed before operator recomputation to capture accurate model-level compute costs. Since both optimization and analysis are applied directly on computation graphs, Charon natively supports interleaving them within the same simulation flow, thereby improving efficiency, consistency and flexibility. Accurate peak memory estimation is critical for reliable LLM simulation, as underestimation can lead to out-ofmemory (OOM) errors, and overestimation may result in suboptimal configurations. Peak memory consumption in large-scale training typically arises from optimizer states, model weights and gradients, activation tensors, and temporary buffer allocations. Unlike layer-level simulators which
Profiling Database
Communication Analysis
Train Random Forest Predictor
Results Prediction Engine
Cluster Simulator IB
GPU ... GPU
NVLink
Operator Type+Shape
Peak Performance Perf = min Peak Bandwidth x Arithmetic Intensity
...
(c) Pass-based Multi-granularity Analysis: Charon is designed to provide simulation results at multiple granularities for multiple aspects, including coarse-grained system-level results such as model FLOPs utilization, exposed parallelism communication overhead, memory usage, as well as fine-grained operator-level results such as operator latency, efficiency and profiler-style traces. Charon supports customizing the analysis flow with pass-based analyzers, making it flexible and easy to add new metrics.
Analytical Engine Computation Analysis: Roofline
...
(iii) DP partitions the training dataset across GPUs, allowing each device to compute gradients independently. Charon supports simulation of distributed data-parallel frameworks such as PyTorch DDP, FSDP, and ZeRO. For DDP, the gradients are synchronized via collective communication operations, which is explicitly modeled by inserting communication operators in Charon. FSDP and ZeRO are further supported in Charon through additional parameters and/or optimizer state sharding, optimizer state synchronization, and prefetching analysis.
Profiling Engine Operator Profile GPU Type+Shape Store Lookup Results Results
Comm Type + Size Cluster Info
timeline analysis and visualization.
Comm Latency
+
Link GPU ... GPU Utilization
Fused Engine Operator Y Profiling Engine Support? N Prediction Y Engine Support? N Analytical Engine Results
Figure 5: Backend architecture of Charon simulator. Each operator can be simulated using a profiling, prediction, or analytical engine. A fused backend enables mixed-engine execution, allowing different operators to be simulated by different engines.
can only estimate memory usage based on static tensor sizes (e.g.,Initial optimizer states and weights/gradients), Charon’s Configuration graph-based design also enables precise modeling of actiExperienced Cluster-level vation and temporary memory by analyzing the liveness of Engineers Profiling Experiments each tensor during gradient computation. The backward computational allows Charon to perform livenessGPU Multiple graph iterations based traversal to determine exactly when each intermediate Configuration tensor isOptimized allocated, used, and freed across the backward pass. Consequently, it can reproduce realistic GPU memory behavior, including temporary tensor reuse and deallocation timing that directly influence the peak memory footprint. This fine-grained graph analysis is essential for evaluating memory-critical training configurations (e.g., ZeRO, FSDP, or selective activation checkpoint strategies), where peak memory is reached during backward computation. By leveraging this operator-level liveness modeling, Charon achieves high-fidelity GPU memory simulation that cannot be captured by non-graph-based simulators. 3.3
Multi-engine Driven Backend
The backend of Charon is responsible for simulating a single computation or communication operator. As Figure 5 shows, Charon integrates profiling-based, prediction-based, and analytical-based backend engines, as well as a fused backend engine that can use multiple different backend engines to maximize the balance between simulation speed and simulation accuracy. Additionally, Charon supports common numerical precision formats like FP32, BF16, FP16, FP8, and INT8 by maintaining precision-specific operator profiles or analytical estimates. Different precision choices impact compute efficiency along with memory usage and communication volume. The simulator explicitly models these factors through precision-aware kernel latency and bandwidth scaling. It also estimates the precision-aware memory footprint for activation, parameter, and temporary buffer sizes. (a) Profiling Engine: The profiling engine simulates each
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference IB NVLink Slowdown operator by executing it on the target hardware (a) Original Time and pro-
filing runtime, providing the most accurate latency at the GB/s simulation overhead. For GPU workloads, cost of200higher Comm Charon automatically generates profiling tasks for each opOp 0 50 GB/s erator, dispatches them to our in-house GPU cluster, and Comm records latency once execution completes. Since profiling 50 GB/s Op 1 every operator instance from scratch is prohibitively exComm pensive, Charon integrates a profiling database that caches 200 GB/s Op 2 measured results for common operators and input shapes. (b) AfterUpon Congestion Time receiving a simulation request, the profiling engine first queries this40database; if a matching operator–shape NVLink Congestion w/ Op2 GB/s 200 GB/s Comm pair exists, the cached latency is reused directly, thereby 25 GB/s IB Congestion w/ Op1 Op 0 significantly 50 GB/s improving simulation efficiency.
(a) Original Comm Op 0 Comm Op 1
Comm Op 0 Comm Op 1
For communication operators, Charon employs a hierarchical link-centric model to ensure cross-platform portability and accuracy. Instead of relying on theoretical specifications, Charon models the cluster topology using calibrated per-hop latency and effective bandwidth derived from profiling. Charon supports both Ring and Tree collective communication algorithms across diverse topologies (e.g., Ring, Switch, and Mesh). The analytical engine decomposes highlevel collective operations into physical link-level data transfers. For each link, the latency is calculated by aggregating the calibrated handshake latency and the transmission latency based on data size and effective bandwidth. This granular approach allows Charon to precisely evaluate congestion based on bandwidth sharing and topology constraints. (d) Fused Engine: Fused engine in Charon is designed to integrate multiple simulation backends within a single
Time
50 GB/s 50 GB/s 200 GB/s
Time 25 GB/s
40 GB/s
25 GB/s
40 GB/s
25 GB/s
Req Op 0: 50 Congest Op 0: 25 BW: Op 1: 50 Aware Op 1: 25
Comm Req BW: Congest 160 GB/s Op 2 Op 0: 50 Aware Op 0: 40 Op 2: 160 Op 2: 200
Comm sor shape using100 lightweight machine GB/s 200 GB/s learning models. Its Op 2 primary goal is to provide fast latency estimation, especially
(c) Analytical Engine: The analytical engine analyzes the execution time of the operator with mathematical modeling according to the operator computation and memory requirement, as well as the hardware capability. For computation operators, Charon’s analytical engine utilizes the roofline (Williams et al., 2009) model, which calculates the computation time and memory access time on targeted hardware and takes whichever is longer as the final computation time for this operator. Hardware FLOPs and memory bandwidth are pre-configured according to the simulation hardware, and operator computation FLOPs/memory accesses are computed on-the-fly according to its input shape.
Slowdown
50 GB/s
Comm Op 2 Congestion (b) Aware
Comm (b) Prediction Engine: The50prediction engine estimates GB/s 25 GB/s Op 1 operator latency directly from operator type and input ten-
for unseen input shapes not covered in the profiling database. In Charon, each type of operator is associated with a compact random-forest–based predictor trained on data from the profiling database. This design eliminates the need for real-time hardware execution while preserving high accuracy across diverse operator shapes, achieving substantial acceleration in large-scale simulation workloads.
NVLink IB
Full Speed
Figure 6: Bandwidth-aware communication operators overlap in the proposed Charon simulator, (a) shows the timeline of original communication operations, and (b) shows the timeline with congestion-aware simulation.
execution flow. It enables an adaptive trade-off between simulation speed and accuracy, while maintaining compatibility with emerging models and newly introduced operators. Operators lacking profiling and prediction data can be executed using the analytical engine, while others are simulated using the profiling-based or prediction-based engines. This flexibility is implemented through a prioritized fallback mechanism: each engine maintains a registry of supported operators, and the fused engine dynamically selects the highest-priority backend available for each operator, falling back to lower-priority engines when necessary. This design ensures robust coverage of heterogeneous workloads without sacrificing overall simulation fidelity or scalability. 3.4
Operator Overlap
Modern LLM training and inference frameworks usually overlap communication operators with either compute operators or other communication operators to improve overall performance, which needs to be carefully handled during the simulation to get fine-grained accurate traces. Charon integrates a coarse-grained ratio-based slowdown model for all overlapped operators, as well as a fine-grained bandwidthaware model for communication-communication overlap. The ratio-based slowdown model applies slowdown factors to the overlapped part of two operators. The slowdown factor is engineered from profiling data with targeted hardware clusters. For compute-communication overlap, two separate slowdown factors are used for computation and communication operators. And for communication-communication
E2E Training + Inference +Norm (Remove Normalized Time) Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference Charon
0
TP1
TP2
0
TP2
TP4
0.5 0
+9.5%
-4.9%
+8.1%
-2.3%
-8.9%
-3.0%
-11.3%
-6.3%
Qwen3-30B-A3B + vLLM -8.3%
+8.1%
-2.3%
-8.2%
1.0
X 4x4x2 EP x SP x DP
-3.4%
-10.2%
-5.2%
0
TP4
-8.2%
+13.9%
-5.3%
+3.3%
+10.3%
+2.3% -1.5%
-2.9%
+3.3%
+1.4%
TP1
0.5
X 4x4x1
0
X
TP1
X X TP4 TP2 Qwen3-30B-A3B + vLLM
X TP1
-9.8%
0.5
TP2 Llama3-8B + vLLM
+14.9%
1.0
TP1
1.0
+1.0%
0
+4.9%
+19.3%
+1.6%
TP4
0.5
8x2
0.5
Llama3-8B + vLLM
+12.6%
-9.0%
-9.0%
-3.5%
+0.9%
-3.5%
TP4
+19.7%
0.5
1.0
TP2 Qwen3-8B + vLLM +1.8%
1.0
TP1 +14.8%
0
+2.7%
0.5
+0.04%
Qwen3-8B + vLLM 1.0
X 1x8 TP x DP
8x1
X 8x1x2 2x4x2 TP x PP x DP Qwen3-30B-A3B + VeOmni 1.0
+5.3%
0
8x2
-17.3%
0.5
-24.9%
-1.0%
-17.8%
-4.4%
1.0 -28.8%
-4.8%
+5.4%
Llama3-8B + VeOmni
X 1x8 TP x DP
8x1
X 1x1x8
8x1x1
+14.9%
0
-20.0%
-1.0%
0.5
-1.0%
0
-4.4%
8x1x2 TP x PP x DP
Qwen3-8B + VeOmni
1.0
0.5
X 2x4x2
-6.3%
+20.2%
-2.8%
+7.3%
-2.8%
-7.1%
+23.2%
-4.2%
8x1x1
(b) Inference Normalized TPOT Normalized TTFT
X 1x1x8
Vidur
Llama3-8B + Megatron 1.0
+1.5%
0
+3.4%
0.5
-4.3%
-0.8%
1.0
SimAI
Qwen3-8B + Megatron
-26.0%
Normalized Time
Normalized Time
(a) Training
Astra-SIM
+23.3%
Ground Truth
X TP2
X
TP4
Figure 7: End-to-end time comparison results for Charon and other simulators against measurement ground truth. “X” means the simulator cannot support configurations or cannot give valid results. overlap, the same slowdown factor is shared for two communication operators. The slowdown factor only applies to the portion that the operator has overlapped with other operators. A fine-grained bandwidth-aware slowdown model is available in Charon when using analytical engine for the communication-communication overlap. As shown in Figure 6, the slowdown for each operator is decided by the effective bandwidth as well as the link congestion in the cluster. For each portion of the overlapped operators, Charon checks the link congestion for each interconnect hierarchy and calculates the slowdown according to the effective bandwidth competition ratio to simulate the underlying network packetlevel congestion control. 3.5
Design Space Exploration
As an LLM training and inference simulation solution, identifying the optimal infrastructure configuration for targeted tasks, such as the number of GPUs, parallelism strategies, and parallelism sizes, emerges as a crucial application in Charon. To eliminate the engineering needed for the analysis of the simulation results in order to use Charon for design space exploration, Charon is built in with a native search for the design space. The design space exploration begins with a targeted model
and task, and Charon will take the entire design space, including different choices for GPU numbers and parallelism sizes from the user’s input. To maximize search efficiency, the design exploration tool supports pruning search spaces according to rules. Users can pre-define the known inefficiency cases in Charon and the design space exploration tools can prune the corresponding sub-spaces by directly skipping the simulation.
4
E XPERIMENTS
In this section, we demonstrate the capability and accuracy results of the proposed Charon simulator. 4.1
End-to-end Simulation Accuracy
We evaluated the simulated end-to-end runtime of Charon against existing LLM simulators as well as the ground truth measurements on both training and inference tasks. To demonstrate Charon’s capabilities, we selected two dense models, Qwen3-8B and LLaMA3-8B, and one MoE model, Qwen3-30B-A3B, as representative case studies. For training simulation, we benchmarked Charon against Astra-SIM 2.0 (Won et al., 2023) and SimAI (Wang et al., 2025), measuring simulation performance under the Megatron (Shoeybi et al., 2020) and VeOmni (Ma et al., 2025) training frameworks. For inference simulation, we com-
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference
Table 2: Simulation breakdown for Qwen3-8B. “Prof” denotes profiling results and “Sim” denotes Charon simulation d differentresults, scaleall results are in microseconds(us). (a) Generated Trace with Charon Simulator
(a): Training breakdown with TP8 on Nvidia Ampera GPU, F indicates forward steps, and B indicates backward steps.
L20 dels
1.12%
0
MAE 5.70%
Sim(F) 1770 6490 3788 12980 12980
raining
Prof(D) 58.206 93.47 6.84
68.93 69.20 (+0.39%)
As shown in Figure 7, Charon achieved the best end-to-end time75.96 accuracyLarge amongScale both training and inference tasks with Small Scale 76.18 (+0.29%) 0 different models and different frameworks. For training Ada 1x 75x 180x 78.21 1.5x tasks, Charon’s operation graph-based simulation can accu78.18 (-0.03%) ls (b) Normalized Number of GPUs rately simulate the time of each operator level with accurate 40 60 80 backends, as well as satisfy the operation of different frameMemory (GB) works. Therefore, the end-to-end time is more accurate than the analytical-based simulator Astra-SIM. For comparison with SimAI, although both use profiling-based backends for computation operators, SimAI simulates the communication based on layer-level information since its communication simulation is based on Astra-SIM 1.0 (Rashidi et al., 2020). This will lead to inaccuracy in handling communication overlaps. For Inference tasks, both Charon and Vidur can provide accurate time-to-first-token (TTFT), as Vidur uses profiling-based computation and communication simulation. However, for time-per-output-token (TPOT), Vidur cannot produce very accurate results because its predication engine is not accurate enough for small operations.
ce
4.2
Time Breakdown
To demonstrate the fine-grained simulation accuracy of the proposed Charon simulator, we provide a detailed breakdown of simulation time across individual operations. For training evaluation, we analyze the operation-level simulation of the Qwen3-8B model executed on the VeOmni
Figure 8: Comparison of simulation traces generated by Charon and profiled vLLM serving traces. The traces represent a single layer extracted from the full-model simulation and profiling of Qwen3-8B.
framework under TP8. For inference evaluation, we report the corresponding breakdown using the Qwen3-8B model in the vLLM framework.
Sim(D) 72.1 109 12
pared Charon with Vidur (Agrawal et al., 2024) by simulating workload within the vLLM(Kwon et al., 2023) frameCharon work. All baseline simulators are examined to fix minor +0.71% +2.06% -5.35% -3.74% bugs and support the new Qwen3 and Llama3 models, as 1 well as re-calibrated according to the profiling results to Charon make a fair comparison.
Normalized Time
.37%
(b) Profiled Trace with vLLM
Sim(B) 30329 38430 8658 12980 12980
20 (b): Inference Small Scale breakdown Large Scalewith TP1 on Nvidia Hopper GPU, MAE 0indicates2.22% P64 prefill steps, and D indicates decode steps. 96 4800 11520
-20 (b) Different Number of H800 GPUs MAE Prof(P) Sim(P) Operators 31.84% -40 Attention 3923 3906 Analytical Prediction Analytical Prediction Feed-Forward 9232 9195 Others 141 142
h
Prof(B) 30275 40280 8743 13130 14500
Table 2(a) presents the breakdown of the training simulation results, while Table 2(b) summarizes the corresponding inference simulation results. These results demonstrate that Charon achieves high simulation accuracy not only at the end-to-end but also at the operator-level granularity.
Relative Difference (%)
nce
Normalized Time
OperatorsCharon Prof(F) th Attention 1842 -0.37% +0.71% +2.06% -5.35% -3.74% Feed-Forward 6589 1 3842 Others FlashAttn-3 (N=80) RMS Norm (N=80) 60 All-Gather 13180 13876 Reduce-Scatter 40 MAE
Linear (N=390)the fine-grained FlashAttn-3 RMS Norm (N=80) of Charon, To further validate accuracy we (N=80) 60 5.0 4 compared the simulation-generated execution traces against 2.5 hardware-profiled traces.2 Figure 8 illustrates a 40 single transMAE MAE 0 0 former layer1.44% trace extracted from 1.12% a full-model simulation 20 -2.5 of Qwen3-8B alongside-2the corresponding profiled trace MAE -5.0 MAE -4 comparison from vLLM serving. The demonstrates that 0 MAE 2.22% 6.60% -7.5 5.70% -6 Charon accurately simulates operator-level latency and the -10.0 -20 -8 timeline traces, closely matching the actual hardware execuMAE -12.5 31.84% -10 tion behavior. -40 Analytical Prediction
4.3
Analytical Prediction
Analytical Prediction
Memory Prediction Accuracy
Beyond execution time, accurate GPU memory estimation is critical for large-scale deployments, particularly for Mixtureof-Experts (MoE) model training, where dynamic routing introduces complex memory access patterns. We validated Charon’s memory simulation fidelity during the training of Actual Training Max Memory Allocated
Charon 68.93 69.20 (+0.39%)
Max Memory Reserved
75.96 76.18 (+0.29%)
Total Memory
78.21 78.18 (-0.03%)
0
20
40 Memory (GB)
60
80
Figure 9: Experimental results for Charon memory prediction accuracy during Qwen3-30B-A3B MoE model training (FSDP=8, batch size=2, seqlen=8192).
(a) Different GPU Models
(b) Different Number of H800 GPUs
(b) Profiled Trace with vLLM
Linear (N=390)
2.5 0 -2.5 -5.0 -7.5 -10.0
RMS Norm (N=80) 4 2
MAE 1.44% MAE 6.60%
-12.5
0
MAE 1.12%
-2 -4 -6 -8
MAE 5.70%
FlashAttn-3 (N=80)
20 MAE 2.22%
0
MAE 31.84%
-40
Analytical Prediction
Ground Truth 1
40
-20
-10
Analytical Prediction
60
0
+0.71% -2.82% -4.98% -0.37%
Training
Inference
Hopper Ampere Hopper
Ada
(a) Different GPU Models
Analytical Prediction
Charon 1
Normalized Time
5.0
Normalized Time
Relative Difference (%)
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference
0
+0.71% +2.06% -5.35% -3.74%
Small Scale
Large Scale
1x
75x
1.5x
180x
(b) Normalized Number of GPUs
Figure 10: Statistical indicators of analytical engine and prediction engine accuracy deviation for N unseen Linear, RMSNorm, and FlashAttn-3 operators.
Figure 11: Comparison results between Ground Truth (Profiling) and Charon for different GPU models under both small-scale and large-scale clusters.
the Qwen3-30B-A3B MoE model on 8 GPUs (configured Actualsize Training Charon with FSDP=8, a batch of 2, and a sequence length of 68.93 high preciMax Memory 8192). As shown in Figure 9, Charon achieves 69.20 (+0.39%) sionAllocated in predicting memory dynamics per GPU. By incorpoMax Memory 75.96 rating calibrated collective communication buffer overheads Reserved 76.18 (+0.29%) and dynamic fragmentation effects, the simulation errors 78.21 Total for the maximum allocated memory, maximum reserved Memory 78.18 (-0.03%) memory, and0 total memory footprint are 20 40 60 merely 80 +0.39%, Memory (GB) +0.29%, and -0.03%, respectively. This confirms Charon’s capability to reliably capture realistic memory allocations and provide a faithful representation of the actual memory footprint during complex MoE training.
simulation results.
4.4
Backend Ablation Evaluation
Figure 11 reports the normalized end-to-end latency per training and inference step. As shown in Figure 11(a), Charon consistently achieves accurate end-to-end simulation across diverse GPU models, covering both Nvidia Hopper / Ampere (H800/A100) training GPUs as well as Nvidia Hopper / Ada Lovelace (H20/L20) inference GPUs and achieving overall simulation errors within 4.98%. Furthermore, across varying cluster scales in training tasks shown in Figure 11(b), Charon demonstrates scalability to extralarge configurations with nearly ten thousand GPUs and the optimal combination of all kinds of parallelism (DP, PP, EP, SP, and TP), while keeping simulation error under 3.74%. Meanwhile, Charon consistently maintains the maximum overall error under 5.35% across both small-scale and large-scale clusters.
To demonstrate the effectiveness of our hybrid multi-engine backend, we conducted an ablation study comparing the simulation accuracy of the analytical engine (Roofline model) versus the prediction engine for unseen tensor shapes. Figure 10 presents the statistical deviation of prediction accuracy for Linear, RMSNorm, and FlashAttention-3 operators. While the analytical engine provides reasonable estimates for simpler kernels like Linear and RMSNorm, it struggles with complex operators, exhibiting a 31.84% Mean Absolute Error (MAE) for FlashAttention-3. In contrast, the prediction engine consistently maintains high accuracy across all operators, achieving an MAE of 1.44%, 1.12%, and 2.22%, respectively. This highlights the prediction engine’s superior capability in generalizing to complex, unseen workloads without relying on pure analytical approximations.
The minor prediction error gaps observed across different hardware and scales are primarily due to the inherent runtime variability present in physical execution traces. Factors such as network communication jitter, dynamic congestion, and data-dependent kernel execution randomness introduce stochastic behaviors in real-world clusters. Because Charon currently does not deterministically model these micro-level stochastic variations, minor deviations between the simulated and profiled results are expected. However, as demonstrated by the consistently low error margins, these gaps do not impact the simulator’s ability to provide highly reliable performance and scalability analyses.
4.5
5
Across Different GPU and Cluster Scale
We further evaluated Charon across different GPU architectures as well as both small-scale and large-scale clusters to demonstrate its versatility and scalability. To this end, we selected several in-house profiling experiments targeting both training and inference performance debugging, and configured Charon to simulate these scenarios. We then compared the end-to-end latency per training or inference step between the profiling measurements and the corresponding
C ASE S TUDY
In practice, Charon serves as a versatile platform for conducting comprehensive ”what-if” analyses to guide systemlevel design decisions. Beyond basic configuration tuning, engineers can utilize Charon to evaluate the impact of complex compilation and execution strategies without requiring a full compiler implementation. For example, operator fusion can be simulated by defining localized pattern replacements with fused operator models, allowing users to
①
①②③④
② ③
④
Attention AG Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference
assess latency improvements prior to deployment. Similarly, memory-efficient operator reordering and overlapping strategies can be explored directly on the operation-level graph, with the resulting memory footprint and scheduling timelines instantly reflected in the simulation output. Furthermore, Charon’s pass-based architecture naturally supports the evaluation of advanced techniques such as activation checkpointing, selective offloading, and heterogeneous device placement. To illustrate Charon’s practical utility in navigating complex design spaces, we present two detailed case studies. First, we demonstrate how Charon facilitates the design of a novel dynamic Sequence Parallelism strategy by analyzing the fine-grained tradeoffs between computation and communication. Second, we showcase Charon’s capability to perform rapid, multi-objective optimization for LLM inference, identifying optimal deployment configurations that balance system throughput against strict user-facing latency constraints. 5.1
Dynamic Sequence Parallel Strategy
Sequence parallelism (SP) is commonly used to optimize prefill latency in LLM serving by distributing attention computation across ranks. In this case, zigzag attention divides the sequence dimension into 2xSP chunks, assigning each rank two chunks in a zigzag pattern to balance the workload. This strategy has been widely adopted in large-scale models such as LLaMA-3 (meta llama, 2024). While zigzag attention improves compute balance compared to naive partitioning, it is not always optimal. For short sequences, zigzag attention is less efficient: it over-partitions the input and adds disproportionate all-gather communication overhead, which outweighs the potential compute savings. To address this, we extend zigzag with dynamic SP, a finegrained scheme that assigns different SP configurations per request within a batch, ensuring the best end-to-end latency. We used Charon to analyze the tradeoffs between computation distribution and communication overhead under varying sequence length distributions. Unlike zigzag’s one-sizefits-all pattern, the simulator-generated dynamic SP plans assign different SP and zigzag configurations to each request within a batch. This fine-grained approach allows the system to balance compute and communication more precisely: for requests with long sequences, dynamic SP maintains zigzag-style balancing across ranks; for requests with shorter sequences, it reduces over-partitioning to avoid excessive all-gather overhead. As shown in Figure 12, dynamic SP adaptively adjusts the partitioning strategy per request, resulting in a more balanced utilization of GPU ranks across heterogeneous sequence lengths. By modeling both kernel execution and NCCL communication, Charon predicts per-rank latency and generates optimal request-level
① ④ ①
AG
Q
① ② ③ ④ KV w/o dynamic SP: Req 1 & 2 – SP4 zigzag Req1 0 1 2 3 3 2 1 0 Req2 Rank 0
① ② ③ ④ KV
AG1
Attn1 AG2
Attn2
QKV Proj AG1 Attn1 Attn2 AG2
O Proj
O Proj
Saved Time
Rank 1
Q ②
QKV Proj
w/ dynamic SP: Req 1 – SP4, Req 2 – SP2 zigzag Req1 Req2 0 1 1 0 Rank 0
④
② ③
O Proj
Rank 1
③
(a) Zigzag Attention
QKV Proj AG1 Attn1 Attn2 AG2
Rank 2
QKV Proj AG1
Attn1
QKV Proj AG1
Attn1
Rank 3
O Proj
O O Proj Proj O Proj
(b) Dynamic SP
Proj AG1 Attn1 Attn2 O Proj Figure 12: Illustration ofQKV zigzag attention and dynamic SP Attn1 AG2 planning. Each request can adopt a different SP configuration: request 1 adopts SP4, and request 2 adopts SP2 with zigzag.
SP strategies that minimize attention latency during the prefill stage. We evaluated dynamic SP planning on LLaMA-3 70B model using 8x Nvidia Ada Lovelace inference GPUs and observed an average 15% reduction in attention block latency compared to the zigzag baseline. The performance gains primarily stemmed from better handling of small-sequence requests, where communication overhead dominates. Specifically, disabling zigzag partitioning for short sequences avoided unnecessary all-gather costs, while mixing different SP plans across requests further balanced computation and communication. Together, these adjustments allowed the system to adapt SP strategies to workload characteristics, delivering consistent improvements over static planning. Importantly, we expect these gains to be larger on GPUs with higher communication latency (e.g., PCIe-based interconnects), where reducing communication overhead becomes even more critical. 5.2
Optimal Inference Performance via Simulation
LLM inference is a complex multi-objective optimization problem. It is governed by key performance metrics such as TTFT and TPOT, which together determine userfacing throughput, measured in Tokens Per Second per user (TPS/user). On the hardware side, system throughput, measured in Tokens Per Second per GPU (TPS/GPU), dictates the cost per token. These metrics are jointly influenced by numerous implementation choices, including scheduling algorithms and parallelism strategies (e.g., tensor and pipeline parallelism sizes, prefill chunk sizes, and batch sizes for prefill and decoding). A common deployment requirement is to maximize TPS/GPU (thereby minimizing cost) while adhering to user-facing performance constraints, such as specific Service Level Objectives (SLOs) for TTFT and TPOT. Deriving an optimal configuration analytically is of-
Charon: A Unified and Fine-Grained Simulator for Large-Scale LLM Training and Inference W Ğ ƌ Ĩ Ž ƌ ŵ Ă Ŷ Đ Ğ Ž Ĩ ŝ Ĩ Ĩ Ğ ƌ Ğ Ŷ ƚ Ž Ŷ Ĩ ŝ Ő Ƶ ƌ Ă ƚ ŝ Ž Ŷ Ɛ Ĩ Ž ƌ >