pub struct BitsAndBytesInstaller { /* private fields */ }Expand description
The bitsandbytes installer.
Implementations§
Source§impl BitsAndBytesInstaller
impl BitsAndBytesInstaller
Sourcepub fn new(config: BitsAndBytesConfig) -> Self
pub fn new(config: BitsAndBytesConfig) -> Self
Create a new bitsandbytes installer with the given config.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default config.
Sourcepub fn rocm_fork_url(&self) -> &'static str
pub fn rocm_fork_url(&self) -> &'static str
Get the primary ROCm bitsandbytes fork URL.
Sourcepub fn fallback_fork_url(&self) -> &'static str
pub fn fallback_fork_url(&self) -> &'static str
Get the fallback TimDettmers bitsandbytes fork URL.
Sourcepub fn build_git_clone_command(&self, target_dir: &str) -> ShellCommand
pub fn build_git_clone_command(&self, target_dir: &str) -> ShellCommand
Construct the git clone command for the ROCm fork.
Sourcepub fn build_pypi_install_command(&self) -> ShellCommand
pub fn build_pypi_install_command(&self) -> ShellCommand
Construct the initial pip install command for bitsandbytes from PyPI.
The original script tries:
pip install bitsandbytes --break-system-packages --no-cache-dir --no-deps
Sourcepub fn build_rocm_env(&self) -> Vec<(String, String)>
pub fn build_rocm_env(&self) -> Vec<(String, String)>
Construct the build environment variables for ROCm source build.
Sourcepub fn build_build_deps_command(&self) -> ShellCommand
pub fn build_build_deps_command(&self) -> ShellCommand
Construct the build dependencies pip install command.
Sourcepub fn build_source_install_command(&self) -> ShellCommand
pub fn build_source_install_command(&self) -> ShellCommand
Construct the source build pip install command.
The original script uses:
pip install . --no-build-isolation --break-system-packages -Ccmake.define.COMPUTE_BACKEND=hip --no-deps -Ccmake.define.ROCM_PATH=/opt/rocm
Sourcepub fn build_uninstall_command(&self) -> ShellCommand
pub fn build_uninstall_command(&self) -> ShellCommand
Construct the uninstall command for bitsandbytes.
Auto Trait Implementations§
impl Freeze for BitsAndBytesInstaller
impl RefUnwindSafe for BitsAndBytesInstaller
impl Send for BitsAndBytesInstaller
impl Sync for BitsAndBytesInstaller
impl Unpin for BitsAndBytesInstaller
impl UnsafeUnpin for BitsAndBytesInstaller
impl UnwindSafe for BitsAndBytesInstaller
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
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> ⓘ
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> ⓘ
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