Skip to main content

Module device

Module device 

Source

Functions§

parse_device
Parse a device alias. Delegates to the upstream FromStr for Device impl in rlx-driver, which knows every alias (mps, wgpu, hip, …) and returns a uniform error string. Kept as a wrapper that surfaces anyhow::Result so existing callers don’t change.
parse_gemma_device
parse_llada2_device
parse_llama32_device
parse_qwen35_device
parse_sam_device
Parse a CLI device name and enforce the SAM backend set (standard + tpu).
parse_standard_device
Parse a CLI device name and enforce the workspace-wide standard backend set.