pub struct MlStackInstaller { /* private fields */ }Expand description
The ML Stack installer.
Implementations§
Source§impl MlStackInstaller
impl MlStackInstaller
Sourcepub fn new(config: MlStackConfig) -> Self
pub fn new(config: MlStackConfig) -> Self
Create a new ML Stack installer with the given config.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default config.
Sourcepub fn install_order() -> Vec<MlStackComponent>
pub fn install_order() -> Vec<MlStackComponent>
Get the ordered list of core components to install.
The order matches the original install_ml_stack.sh:
- ROCm Config
- PyTorch
- ONNX Runtime
- MIGraphX
- Megatron-LM
- Flash Attention
- RCCL
- MPI
Sourcepub fn rocm_config_path(&self) -> String
pub fn rocm_config_path(&self) -> String
Get the ROCm config file path.
Sourcepub fn build_migraphx_install_command(
&self,
distro: &DistroFacade,
) -> SystemCommand
pub fn build_migraphx_install_command( &self, distro: &DistroFacade, ) -> SystemCommand
Construct the MIGraphX package install command per distro.
Sourcepub fn build_rccl_install_command(&self, distro: &DistroFacade) -> SystemCommand
pub fn build_rccl_install_command(&self, distro: &DistroFacade) -> SystemCommand
Construct the RCCL package install command per distro.
Sourcepub fn build_mpi_install_command(&self, distro: &DistroFacade) -> SystemCommand
pub fn build_mpi_install_command(&self, distro: &DistroFacade) -> SystemCommand
Construct the MPI system package install command per distro.
Sourcepub fn build_megatron_clone_command(&self, target_dir: &str) -> SystemCommand
pub fn build_megatron_clone_command(&self, target_dir: &str) -> SystemCommand
Construct the Megatron-LM git clone command into target_dir.
Sourcepub fn build_megatron_install_command(&self) -> PipCommand
pub fn build_megatron_install_command(&self) -> PipCommand
Construct the Megatron-LM pip install command.
Sourcepub fn prerequisite_commands(&self) -> &[&str]
pub fn prerequisite_commands(&self) -> &[&str]
Get the list of prerequisite commands to check.
Sourcepub fn check_prerequisite(&self, cmd: &str) -> bool
pub fn check_prerequisite(&self, cmd: &str) -> bool
Check a single prerequisite.
Auto Trait Implementations§
impl Freeze for MlStackInstaller
impl RefUnwindSafe for MlStackInstaller
impl Send for MlStackInstaller
impl Sync for MlStackInstaller
impl Unpin for MlStackInstaller
impl UnsafeUnpin for MlStackInstaller
impl UnwindSafe for MlStackInstaller
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more