mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

model gemma3-1b-it-int4.task does not load and work

Open metalshanked opened this issue 6 months ago • 2 comments

Model never loads and errors in console gemma3-1b-it-int4.task

Image

Image

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 */

metalshanked avatar Jun 07 '25 19:06 metalshanked

Same issue, I found more discussion here: https://huggingface.co/google/gemma-3n-E4B-it-litert-preview/discussions/4

zicojiao avatar Jun 10 '25 03:06 zicojiao

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.

tyrmullen avatar Jun 10 '25 04:06 tyrmullen