Skip to main content

Module pkg

Module pkg 

Source
Expand description

Load .rlxp packages into a Session.

ⓘ
let compiled = rlx_runtime::pkg::compile_rlxp(&session, "model.rlxp")?;

Also: open_rlxp, load_rlxp_graph, placement helpers, and rlxp://path#tensor URI resolution in the weight cache.

Functions§

compile_rlxp
Compile the embedded MIR graph of an .rlxp package.
compile_rlxp_bind_params
Compile an .rlxp and bind every catalog tensor onto matching Params (and leave Constants to Package::graph materialize).
compile_rlxp_with
Compile with explicit CompileOptions.
load_rlxp_graph
Open a package and return its MIR graph (hot-tier materialize).
load_rlxp_placement
Placement metadata from a package, if present.
open_rlxp
Open a flat .rlxp, ZIP, or package directory.
tensors_for_rank
Tensor names this rank should load for a placement (metadata-only packs).
weight_names_for_rank
Prefer a physical dist/rank-{rank}/ tree when present; otherwise filter the global weight index by tensors_for_rank.