import useLLM from "@react-llm/headless"; const Loader = () => { const { loadingStatus, isReady, init, gpuDevice } = useLLM(); if (isReady) return null; if (loadingStatus.progress === 1) return null; if (gpuDevice.unsupportedReason) { return (
Sorry, unsupported!
Reason: {gpuDevice.unsupportedReason}
This project runs models in the browser with WebGPU and only works in Google Chrome v113 and above on Desktop with supported GPUs. Experimental support may be available for desktop Firefox and Safari Tech Preview.