This commit is contained in:
2026-09-11 13:40:53 -04:00
parent 0f00e11823
commit 1acd371668
7 changed files with 204 additions and 5 deletions
+7
View File
@@ -19,6 +19,13 @@ export const QVAC_MASTER = Object.freeze({
export async function acquireQvac() {
ownerCount += 1;
if (!loadPromise) {
const resources = await Agent.engine.resources();
const gpuVisible = (resources.gpus?.length || 0) > 0 ||
Boolean(resources.drivers?.vulkan || resources.drivers?.cuda || resources.drivers?.opencl || resources.gpu);
if (!gpuVisible) {
ownerCount = Math.max(0, ownerCount - 1);
throw new Error('Jarvis requires a QVAC-visible GPU backend; run npm run gpu-doctor');
}
loadPromise = Agent.engine.load({
model: QVAC_MASTER.model,
tools: true,