error 3437340512
#1
by
TryTrT
- opened
When loading the model using SvelteKit:
onMount(async () => {
try {
generator = await pipeline(
"text-generation",
"onnx-community/gemma-3-1b-it-ONNX-GQA",
{
dtype: "q4",
progress_callback: updateFileStatuses
}
);
console.log("Model loaded");
modelLoaded.set(true);
} catch (error) {
console.error("Model loading error:", error);
}
});
An error appears in the console with the message 3437340512.
How can I fix this?
Oh yes -- probably should mention, this model works better on WebGPU (without specifying device, it runs on CPU in WASM).
generator = await pipeline(
"text-generation",
"onnx-community/gemma-3-1b-it-ONNX-GQA",
{
dtype: "q4", // or "q4f16"
device: "webgpu", // <-- NEW
progress_callback: updateFileStatuses
}
);
@Xenova
When I run the model with q4 quantization I get the following error: 3436702080 and when running with q4f16 quantization I get the following error: RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
Does this happen to you as well? I'm on the latest version of transformers.js (3.7.5).
Could you try device: "q4f16"?
