mediapipe
mediapipe copied to clipboard
model gemma3-1b-it-int4.task does not load and work
Model never loads and errors in console
gemma3-1b-it-int4.task
import {FilesetResolver, LlmInference} from 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-genai';
const input = document.getElementById('input');
const output = document.getElementById('output');
const submit = document.getElementById('submit');
const modelFileName = 'gemma3-1b-it-int4.task'; /* Update the file name */
Same issue, I found more discussion here: https://huggingface.co/google/gemma-3n-E4B-it-litert-preview/discussions/4
The 3n preview is not available on web yet, but "gemma3-1b-it-int4.task" should work.
However, our web LLM Inference requires hardware-supported WebGPU, and the error seen above of "No available adapters" sounds like you are running without WebGPU support being available.