Comments (5)
Got it, feel free to close this issue then. Would be great to be able to use the params you mentioned!
from transformers.js.
Great, I'll give it a shot.
from transformers.js.
The main reason is I copied it from HuggingFace's transformers library code, but either (1) no supported model uses it or (2) it hasn't been implemented yet.
The reason it's commented out (and not, well, deleted), is because I plan to add it :) For example, the RepetitionPenaltyLogitsProcessor
, NoRepeatNGramLogitsProcessor
, and MinLengthLogitsProcessor
classes will be coming soon!
from transformers.js.
Is there a rough timeline for implementing additional config, like the three you mentioned above? Just curious since it would be very useful to my project. I could also take a look at implementing them if there is no work started on that.
I saw the python code here: https://huggingface.co/transformers/v4.1.1/internal/generation_utils.html#transformers.RepetitionPenaltyLogitsProcessor
from transformers.js.
That would be awesome if you could try implementing it! I'm currently adding new model types, so, I'd only be able to get to adding this in ~a week or so.
Here's the original implementation code from HF: https://github.com/huggingface/transformers/blob/main/src/transformers/generation/logits_process.py
and this library's implementation is here: https://github.com/xenova/transformers.js/blob/main/src/generation.js
The conversion shouldn't be too difficult, but if you have any questions, feel free to ask!
from transformers.js.
Related Issues (20)
- The inference results on the same model are inconsistent when using WebGPU and WASM
- TTS for multiple languages HOT 1
- Decode and WebGPU error when using online application Xenova/experimental-phi3-webgpu HOT 8
- Store downloaded model files in IndexedDB HOT 1
- Uncaught Error: Can't create a session for remove-background-client demo HOT 2
- Electron exe build of app crashes to desktop when trying to import Transformers.js
- Upgrade to Jinja v0.3.0 HOT 3
- Unsupported model type: jais HOT 10
- (V3) `examples/demo-stite` had problems generating results HOT 1
- Stable Diffusion HOT 3
- (V3) WebGPU - await extractor() broken - Error: Session already started HOT 3
- [v3] `NoBadWordsLogitsProcessor` breaks when the size of `bad_word_ids` exceeds the size of the input ids HOT 1
- Steps to test out V3 HOT 4
- openvino backend HOT 3
- (v3) speed up NoBadWordsLogitsProcessor HOT 2
- Support wavlm-base-plus-sv with WebGPU HOT 3
- [v3] feature-extraction run with webgpu throw error
- The "path" argument must be of type string or an instance of URL. Received undefined HOT 2
- Where should I get `decoder_model_merged` file from? HOT 3
- When running the feature extraction pipeline with an array of strings as input, the embedding result is different from running the pipeline for one string at a time. HOT 3
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.