pub struct Device {
pub backend: String,
pub name: String,
pub memory: u64,
pub budget: u64,
}Fields§
§backend: String§name: String§memory: u64Its memory as the runtime reads it: llama.cpp’s device total, MLX’s recommended working set, baseRT’s own budget.
budget: u64What the runtime plans a model and its cache against here, the same rule for every runtime: 0 when it plans nothing on it.
Implementations§
Trait Implementations§
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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