Xenova HF Staff whitphx HF Staff commited on
Commit
0bc6ad5
·
verified ·
1 Parent(s): 7891430

Add/update the quantized ONNX model files and README.md for Transformers.js v3 (#2)

Browse files

- Add/update the quantized ONNX model files and README.md for Transformers.js v3 (529df484276d35f6c5a56e69bb0c0d35a4a391dc)


Co-authored-by: Yuichiro Tachibana <[email protected]>

README.md CHANGED
@@ -5,4 +5,21 @@ library_name: transformers.js
5
 
6
  https://huggingface.co/NbAiLab/nb-whisper-large-beta with ONNX weights to be compatible with Transformers.js.
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
 
5
 
6
  https://huggingface.co/NbAiLab/nb-whisper-large-beta with ONNX weights to be compatible with Transformers.js.
7
 
8
+ ## Usage (Transformers.js)
9
+
10
+ If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using:
11
+ ```bash
12
+ npm i @huggingface/transformers
13
+ ```
14
+
15
+ **Example:** Transcribe audio from a URL.
16
+
17
+ ```js
18
+ import { pipeline } from '@huggingface/transformers';
19
+
20
+ const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/nb-whisper-large-beta');
21
+ const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
22
+ const output = await transcriber(url);
23
+ ```
24
+
25
  Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).
onnx/decoder_model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee1bde69bf251a01ef42ae492b8da79e15f3d062306b752627e2cb875cd404f0
3
+ size 743928480
onnx/decoder_model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b994951382d92a069d02d347517a603921295a14d968d11f78e360d0ae3a747
3
+ size 1814428308
onnx/decoder_model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4a6e2fef0f04c2584744bf96cc48064328f734c122fc965b3d480adb7d87f3f
3
+ size 1177657683
onnx/decoder_model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d431abff581f9c40695432afc8c626434cf5fc1aea7b84e5bfc07a99e1d2971
3
+ size 796354688
onnx/decoder_model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8bf1b5a2d75531c8832e3bbee550fb463ea3123b2af1d73c8abcf29cb7d0875
3
+ size 608612981
onnx/decoder_model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89c228ac7ac94e171c0ae943f361cf72d003268f434bc4bd0fad03795fab2bf0
3
+ size 1177657839
onnx/decoder_with_past_model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:379ee492759b229a821dafe0d310ba957be74fee18f231a4f77dfeafc39f506b
3
+ size 684822244
onnx/decoder_with_past_model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66496094e67f586e26c1cd5bbb9a6bf98c46465ad49034c202c55ee129274ee3
3
+ size 1604702870
onnx/decoder_with_past_model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:654d0b123509e917118ac1a0b5f0a509dff37872d85c7d29fef82e60bbfa2fb9
3
+ size 1072623046
onnx/decoder_with_past_model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b13908592558873ab2e3e92f1e211353f4c530d41947b90397f4628f7ebab429
3
+ size 730695364
onnx/decoder_with_past_model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fced5761895b082e9bd24a9240262153b171af1d0642a1be26df448959b96a60
3
+ size 549610825
onnx/decoder_with_past_model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d6480a7b0396f4a235dca1a369859e5692495da9892b865f7ab56c3ca98e14b
3
+ size 1072623168
onnx/encoder_model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0598511ed20af842ce09d3964ac435690e38cd4557f7c5340976cf1429d19a0b
3
+ size 384910274
onnx/encoder_model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d7fd8bb7e1ffb1920706efba567c202819b078b0f2421a0faffb43f9e087fc9
3
+ size 1274001163
onnx/encoder_model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93cfe9a0f3c2af4b51cbeab1ede0bc30abbcdf4aefc87ae4e33758374b53208c
3
+ size 424230306
onnx/encoder_model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac947f9f6cfe7dd44f2c3c4e1e70a0acc9b7ba0340b9df0cea482600332ab620
3
+ size 369632638
onnx/encoder_model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:baf38afe747fdd56c336a40a236ba941f92a7990d462a25bd02e5e6fad8a51ad
3
+ size 644662676