pub struct Hardware {
pub os: String,
pub arch: String,
pub cpu_threads: usize,
pub ram_bytes: u64,
pub gpus: Vec<Gpu>,
}Fields§
§os: String§arch: String§cpu_threads: usize§ram_bytes: u64§gpus: Vec<Gpu>Implementations§
Source§impl Hardware
impl Hardware
Sourcepub fn unified(&self) -> bool
pub fn unified(&self) -> bool
Models live in system memory (unified devices and CPU-only machines).
Sourcepub fn vllm_supported(&self) -> bool
pub fn vllm_supported(&self) -> bool
Whether vLLM can run here: Linux on NVIDIA sm_80 or newer. (AMD ROCm support depends on vLLM’s list of gfx targets and is not detected yet.)
Sourcepub fn needs_cuda13(&self) -> bool
pub fn needs_cuda13(&self) -> bool
NVIDIA sm_121 (GB10) needs CUDA 13 engine builds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hardware
impl<'de> Deserialize<'de> for Hardware
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Hardware
impl StructuralPartialEq for Hardware
Auto Trait Implementations§
impl Forget for Hardware
impl Freeze for Hardware
impl Move for Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnsafeUnpin for Hardware
impl UnwindSafe for Hardware
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