pub struct LlamaCppConfig {
pub gpu_arch: String,
pub channel: String,
pub repo_url: Option<String>,
pub branch: String,
pub build_dir: Option<String>,
pub install_prefix: Option<String>,
pub dry_run: bool,
}Expand description
Configuration for the llama.cpp installer.
Fields§
§gpu_arch: StringGPU architecture string (e.g., “gfx1100”).
channel: StringROCm channel (legacy/stable/latest).
repo_url: Option<String>Repo URL override (defaults to DEFAULT_REPO_URL).
branch: StringBranch to clone (defaults to DEFAULT_BRANCH).
build_dir: Option<String>Build directory override.
install_prefix: Option<String>Install prefix override (relative to $HOME).
dry_run: boolWhether to run in dry-run mode.
Implementations§
Source§impl LlamaCppConfig
impl LlamaCppConfig
Sourcepub fn install_prefix(&self) -> &str
pub fn install_prefix(&self) -> &str
Get the effective install prefix (relative to $HOME).
Sourcepub fn install_bin_dir(&self, home: &str) -> PathBuf
pub fn install_bin_dir(&self, home: &str) -> PathBuf
Get the full install bin directory path.
Sourcepub fn detection_binary_path(&self, home: &str) -> PathBuf
pub fn detection_binary_path(&self, home: &str) -> PathBuf
Get the path to the detection binary.
Trait Implementations§
Source§impl Clone for LlamaCppConfig
impl Clone for LlamaCppConfig
Source§impl Debug for LlamaCppConfig
impl Debug for LlamaCppConfig
Auto Trait Implementations§
impl Freeze for LlamaCppConfig
impl RefUnwindSafe for LlamaCppConfig
impl Send for LlamaCppConfig
impl Sync for LlamaCppConfig
impl Unpin for LlamaCppConfig
impl UnsafeUnpin for LlamaCppConfig
impl UnwindSafe for LlamaCppConfig
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