Comments (6)
Awesome! Closing now π
from transformers.js.
12163dd should fix this π Let me know if it works!
Here's some example code:
const pipe = await pipeline('translation', 'Helsinki-NLP/opus-mt-en-mul');
const result = await pipe(">>jpn<< I love pizza", {
do_sample: false,
num_beams: 1
});
// Outputs: [{translation_text: 'γγΆγζγγ¦γ'}]
I will close the issue once I publish a full release.
from transformers.js.
You're right! I didn't account for that, my bad! Let me work on that.
Here's the part of the code I missed: https://github.com/huggingface/transformers/blob/12d51db243a00726a548a43cc333390ebae731e3/src/transformers/models/marian/tokenization_marian.py#L204-L213
Good catch!
12163dd indeed fixes the issue, thank you!
from transformers.js.
You're right! I didn't account for that, my bad! Let me work on that.
Here's the part of the code I missed:
https://github.com/huggingface/transformers/blob/12d51db243a00726a548a43cc333390ebae731e3/src/transformers/models/marian/tokenization_marian.py#L204-L213
from transformers.js.
Could this be related to #66 ?
from transformers.js.
Could this be related to #66 ?
Although the error message is the same, I think that's just a general error that onnxruntime throws when something goes wrong :/ That's the reason I added the extra logging statements so that we can perhaps see what the actual issue is.
One thing that might be causing it is an out-of-memory issue which can happen if too many beams are being run (which happens since the default config, which comes from the python library, has num_beams set to something > 1). I'll have to look into it a bit more though.
from transformers.js.
Related Issues (20)
- V3 audio transcription: aud.subarray is not a function HOT 8
- range error: array buffer allocation failed <- how to catch this error?
- transformers@latest: Unsupported model IR version: 9, max supported IR version: 8 HOT 1
- Support nomic-ai/nomic-embed-vision-v1.5 HOT 1
- AutoModel.from_pretrained - Which model is loaded HOT 1
- The scripts/convert.py script fails for a few reasons HOT 1
- RAGatouille/Colbert support
- Result is wrong when decoding tokens one by one HOT 1
- How do you delete a downloaded model? HOT 2
- Support for Both Word-Level and Sentence-Level Timestamps in ASR Decoding
- Segmentation fault while converting Bert-base-uncased with README command HOT 2
- Can't run depth-anything-v2 HOT 1
- Support for react-native
- JavaScript code completion model
- [Severe] Memory leak issue under WebGPU Whisper transcribe pipeline
- 4bit ONNX models support HOT 1
- how to retain spiece token markers HOT 2
- No loader is configured for ".node" files
- musicgen example run error on lastest v3
- compat with transformers >= 4.40 and tokenizers >= 0.19 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transformers.js.