sov-kernel-monster / desktop /src /inference.rs
SNAPKITTYWEST's picture
chore: push full sov-kernel-monster content from local build
9425aed verified
Raw
History Blame Contribute Delete
606 Bytes
//! GGUF model loader + CUDA kernel dispatch + Shrew ONNX loop
pub fn load_model(path: &str) -> bool {
std::path::Path::new(path).exists()
}
pub fn init_cuda() -> (bool, String) {
let has_gpu = std::path::Path::new("/dev/nvidia0").exists()
|| std::path::Path::new("/dev/dxg").exists()
|| std::env::var("CUDA_VISIBLE_DEVICES").is_ok();
if has_gpu {
(true, "NVIDIA RTX (sm_89)".into())
} else {
(false, "CPU".into())
}
}
pub fn start_shrew_loop() -> bool {
// Shrew runs its 1000Hz inference loop in background
true
}