pub struct FlashAttentionConfig {
pub method: InstallMethod,
pub python_bin: String,
pub force_reinstall: bool,
pub dry_run: bool,
pub install_dir: Option<PathBuf>,
pub gpu_arch: GpuArch,
pub build_jobs: Option<usize>,
}Expand description
Configuration for the Flash Attention CK installer.
Fields§
§method: InstallMethodInstallation method.
python_bin: StringPython binary to use.
force_reinstall: boolWhether to force reinstall.
dry_run: boolWhether to run in dry-run mode.
install_dir: Option<PathBuf>Installation directory (defaults to $HOME/ml_stack/flash_attn_amd).
gpu_arch: GpuArchGPU architecture override.
build_jobs: Option<usize>Number of parallel build jobs (defaults to nproc).
Implementations§
Source§impl FlashAttentionConfig
impl FlashAttentionConfig
Sourcepub fn install_dir(&self) -> PathBuf
pub fn install_dir(&self) -> PathBuf
Get the installation directory path.
Sourcepub fn build_jobs(&self) -> usize
pub fn build_jobs(&self) -> usize
Get the number of build jobs (defaults to num_cpus).
Trait Implementations§
Source§impl Clone for FlashAttentionConfig
impl Clone for FlashAttentionConfig
Source§impl Debug for FlashAttentionConfig
impl Debug for FlashAttentionConfig
Auto Trait Implementations§
impl Freeze for FlashAttentionConfig
impl RefUnwindSafe for FlashAttentionConfig
impl Send for FlashAttentionConfig
impl Sync for FlashAttentionConfig
impl Unpin for FlashAttentionConfig
impl UnsafeUnpin for FlashAttentionConfig
impl UnwindSafe for FlashAttentionConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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