File size: 402 Bytes
6ccf48e 8b38665 439d3c0 0416eff | 1 2 3 4 5 6 7 | // 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);
|