Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation pipeline no longer working in Alpha 19 #954

Open
1 of 5 tasks
flatsiedatsie opened this issue Oct 1, 2024 · 0 comments
Open
1 of 5 tasks

Translation pipeline no longer working in Alpha 19 #954

flatsiedatsie opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@flatsiedatsie
Copy link
Contributor

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);
})
@flatsiedatsie flatsiedatsie added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant