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

segmentation fault with @xenova/transformers #6848

Closed
mnpenner opened this issue Nov 2, 2023 · 2 comments
Closed

segmentation fault with @xenova/transformers #6848

mnpenner opened this issue Nov 2, 2023 · 2 comments
Labels
bug Something isn't working crash An issue that could cause a crash needs investigate Needs to be investigated to find the root cause

Comments

@mnpenner
Copy link

mnpenner commented Nov 2, 2023

What version of Bun is running?

1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157

What platform is your computer?

Linux 4.4.0-19041-Microsoft x86_64 x86_64

What steps can reproduce the bug?

Create main.mjs:

import { pipeline } from '@xenova/transformers';

// Allocate a pipeline for sentiment-analysis
let pipe = await pipeline('sentiment-analysis');

let out = await pipe('I love transformers!');

console.log(out)

And package.json:

{
    "dependencies": {
        "@xenova/transformers": "^2.7.0"
    },
    "trustedDependencies": ["sharp"]
}

bun install to install the dep, and then bun main.mjs to run it. Output should be

❯ bun main.mjs
No model specified. Using default model: "Xenova/distilbert-base-uncased-finetuned-sst-2-english".
zsh: segmentation fault (core dumped)  bun main.mjs

What is the expected behavior?

Runs without crashing.

What do you see instead?

Segfault

Additional information

This is the example from here: https://github.com/xenova/transformers.js#quick-tour

@mnpenner mnpenner added the bug Something isn't working label Nov 2, 2023
@Electroid Electroid added crash An issue that could cause a crash needs investigate Needs to be investigated to find the root cause labels Nov 4, 2023
@johnhorsema
Copy link

Duplicate of #4619.

@mnpenner
Copy link
Author

I'll close this one in favor of the other ticket. Still happening in 1.0.16+800fb1290

@mnpenner mnpenner closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash needs investigate Needs to be investigated to find the root cause
Projects
None yet
Development

No branches or pull requests

3 participants