// Desktop app: WebLLM from the app's own node_modules (works offline once the model is cached). import * as webllm from '../node_modules/@mlc-ai/web-llm/lib/index.js'; import { loadModelWith } from './model-core.js'; // Desktop: full-precision build (q0f16) where the GPU supports it. export const loadModel = (onProgress, version) => loadModelWith(webllm, onProgress, 'full', version || undefined);