1pub mod aot_cache;
56pub mod backend;
57pub mod compile_cache;
58pub mod compiled;
59pub mod cost;
60pub mod device_ext;
61pub mod expert_pool;
62pub mod jacfwd;
63pub mod kernel_trace;
64pub mod lora_scheduler;
65pub mod memory_estimate;
66pub mod model_pipeline;
67pub mod moe_expert_store;
68pub mod op_registry;
69pub mod options;
70pub mod paged_kv;
71pub mod precision;
72pub mod record_replay;
73pub mod reflect;
74pub mod registry;
75pub mod router;
76pub mod session;
77pub mod stages;
78pub mod subgraph;
79pub mod trace;
80pub mod weight_registry;
81pub mod weights;
82pub mod worker_pool;
83pub use rlx_ir::perfetto;
88pub mod custom_ops;
89pub mod hwinfo;
90pub mod logit_verify;
91pub mod nan_check;
92pub mod phase;
93pub mod spec_decode;
94pub mod telemetry;
95pub mod validators;
96
97pub mod mock_requests;
100
101pub use rlx_driver::{Buffer, BufferHandle, CommandStream, Device, DeviceArena, SyncStream};
103pub use rlx_driver::{
105 CollectiveError, LocalTransport, Rank, SymmetricBuffer, SymmetricHeap, SymmetricTransport,
106};
107pub use aot_cache::{AotCache, AotCacheError};
109pub use backend::{Backend, ExecutableGraph, compile_hir, compile_module};
110pub use compile_cache::{
111 BucketedCompileCache, CompileCache, DynamicDimCompileCache, pad_rows, slice_rows,
112};
113pub use compiled::CompiledGraph;
114#[cfg(feature = "apple")]
115pub use device_ext::available_apple_devices;
116pub use device_ext::{
117 available_devices, dispatch_report_for_device, dispatch_report_for_device_with_options,
118 first_unsupported_op, first_unsupported_op_with_options, full_name, is_available,
119 legalize_graph_for_device, legalize_graph_for_device_with_options,
120 legalize_graph_for_device_with_report, supports, supports_graph, supports_graph_with_options,
121};
122pub use expert_pool::{
123 ExpertPool, ExpertPoolConfig, ExpertPoolStats, ExpertRefreshPolicy, ExpertRefreshResult,
124 MoEExecMode, gpu_expert_budget_from_vram,
125};
126pub use memory_estimate::{MoeOffloadEstimate, estimate_moe_offload};
127pub use model_pipeline::ModelCompilePipeline;
128pub use options::CompileOptions;
129pub use precision::Precision;
130pub use reflect::{ModelReflection, load_hir_template_with_extensions, specialize_entry};
131pub use registry::{BackendFactory, backend_for, register_backend, registered_devices};
132#[cfg(feature = "cpu")]
133pub use rlx_cpu::moe_residency::MoeResidencyStats;
134#[cfg(feature = "cpu")]
135pub use rlx_cpu::moe_topk_capture::MoeTopkCapture;
136pub use rlx_driver::{ReduceKind, all_gather, all_reduce, reduce_scatter};
137pub use rlx_ir::env::{self, RlxEnv, RuntimeOverrides};
138pub use session::Session;
139pub use stages::{
140 compile_graph_stages, compile_graph_stages_for_backend, compile_hir_stages,
141 compile_module_stages, fusion_target_for, graph_from_lir, maybe_log_fusion,
142 options_with_supported_ops, pipeline_for,
143};
144pub use subgraph::{SubgraphCache, run_if, run_while};
145
146pub use expert_pool::{merged_resident_mask, per_layer_resident_masks};
147pub use moe_expert_store::{ExpertStackF32, LayerMoeWeights, MoeExpertStore};
148pub use weight_registry::{WeightEntry, WeightHandle, WeightKind, WeightRegistry};
149pub use weights::{BytesWeightLoader, WeightLoader};
150
151pub use rlx_ir::{AsyncCopy, BarrierToken, DoubleBuffer, SyncCopy};
155pub use rlx_ir::{CacheBuster, Tick, time_ns};
156
157pub use rlx_ir::{
159 inspect_graph, inspect_hir, inspect_hir_stats, inspect_lir, inspect_mir, inspect_mir_stats,
160};
161pub use rlx_opt::{OpKind, PrecisionPolicy};
162pub use rlx_opt::{PipelineInspect, inspect_pipeline};
163
164pub use rlx_ir::logical_kernel::{KernelDispatchConfig, KernelDispatchPolicy};
166pub use rlx_ir::op;
167pub use rlx_ir::{
168 BindingManifest, CompilationMode, DType, Graph, HirExtensionFn, HirReflection, IoBindingEntry,
169 ManifestDiff, ModelComponent, ModelPhase, ModelVariant, Node, NodeId, Op, Shape, WeightBlock,
170 apply_hir_extensions, register_hir_extension, registered_hir_extensions,
171};
172
173pub use rlx_macros::pipeline_schedule;
175pub use rlx_macros::rlx_model;