Translation pipeline no longer working in Alpha 19
Closed this issue · 0 comments
flatsiedatsie commented
System Info
Transformers.js V3 Alpha 19
Mac OS
Brave browser
Environment/Platform
- Website/web-app
- Browser extension
- Server-side (e.g., Node.js, Deno, Bun)
- Desktop app (e.g., Electron)
- Other (e.g., VSCode extension)
Description
The creation of a translation pipeline in a worker never resolves under Alpha 19.
Reverting to an earlier version solves the issue.
Reproduction
import { pipeline, env } from './tjs/transformers.min.js';
env.allowLocalModels = false;
env.allowRemoteModels = true;
env.useBrowserCache = true;
env.backends.onnx.wasm.simd = true;
pipeline(
'translation',
'Xenova/opus-mt-en-nl',
{
progress_callback: progressCallback,
device: 'webgpu',
}
)
.then((pipe) => {
console.log("TRANSLATION WORKER: MADE PIPE"); // this never happens under the latest version
})
.catch((err) => {
console.error("TRANSLATION WORKER: caught pipeline_construction error. err: ", err);
})