Add/update the quantized ONNX model files and README.md for Transformers.js v3
#1
by
						
whitphx
	
							HF Staff
						- opened
							
					
- README.md +16 -0
 - onnx/decoder_model_bnb4.onnx +3 -0
 - onnx/decoder_model_fp16.onnx +3 -0
 - onnx/decoder_model_int8.onnx +3 -0
 - onnx/decoder_model_merged_bnb4.onnx +3 -0
 - onnx/decoder_model_merged_fp16.onnx +2 -2
 - onnx/decoder_model_merged_int8.onnx +3 -0
 - onnx/decoder_model_merged_q4.onnx +3 -0
 - onnx/decoder_model_merged_q4f16.onnx +3 -0
 - onnx/decoder_model_merged_uint8.onnx +3 -0
 - onnx/decoder_model_q4.onnx +3 -0
 - onnx/decoder_model_q4f16.onnx +3 -0
 - onnx/decoder_model_uint8.onnx +3 -0
 - onnx/decoder_with_past_model_bnb4.onnx +3 -0
 - onnx/decoder_with_past_model_fp16.onnx +3 -0
 - onnx/decoder_with_past_model_int8.onnx +3 -0
 - onnx/decoder_with_past_model_q4.onnx +3 -0
 - onnx/decoder_with_past_model_q4f16.onnx +3 -0
 - onnx/decoder_with_past_model_uint8.onnx +3 -0
 - onnx/encoder_model_bnb4.onnx +3 -0
 - onnx/encoder_model_q4.onnx +3 -0
 - onnx/encoder_model_q4f16.onnx +3 -0
 - onnx/encoder_model_uint8.onnx +3 -0
 
    	
        README.md
    CHANGED
    
    | 
         @@ -5,4 +5,20 @@ library_name: transformers.js 
     | 
|
| 5 | 
         | 
| 6 | 
         
             
            https://huggingface.co/openai/whisper-small.en 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/openai/whisper-small.en 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 | 
         
            +
            const transcriber = await pipeline('automatic-speech-recognition', 'Xenova/whisper-small.en');
         
     | 
| 20 | 
         
            +
            const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/jfk.wav';
         
     | 
| 21 | 
         
            +
            const output = await transcriber(url);
         
     | 
| 22 | 
         
            +
            ```
         
     | 
| 23 | 
         
            +
             
     | 
| 24 | 
         
             
            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:cf5f8072472dc7f5d93abec91cd9d0162490d5189e9802547c3bc63fbd1ba307
         
     | 
| 3 | 
         
            +
            size 225574639
         
     | 
    	
        onnx/decoder_model_fp16.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:fff60fdbaaf656453982a8b80a8891265a8b5a0c84e2bb53e7ce774ac2285df1
         
     | 
| 3 | 
         
            +
            size 307681940
         
     | 
    	
        onnx/decoder_model_int8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:6c0fab83a70c55e37fbcc9cdbecac3acba3ab5f8126888d89db624021ceabf48
         
     | 
| 3 | 
         
            +
            size 315079070
         
     | 
    	
        onnx/decoder_model_merged_bnb4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:758434fb83f0017a829421864e55273fd9d605a8f2f76cec7b8b6aaad4ab3b63
         
     | 
| 3 | 
         
            +
            size 226151006
         
     | 
    	
        onnx/decoder_model_merged_fp16.onnx
    CHANGED
    
    | 
         @@ -1,3 +1,3 @@ 
     | 
|
| 1 | 
         
             
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            -
            oid sha256: 
     | 
| 3 | 
         
            -
            size  
     | 
| 
         | 
|
| 1 | 
         
             
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:2ae15f46b098b8e6c692839fe20c7434dbf872fa2f5131da67930062381a65fc
         
     | 
| 3 | 
         
            +
            size 308613541
         
     | 
    	
        onnx/decoder_model_merged_int8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:95780874006aa7b6b6cd4694f1c5e32e20c3f18c605887e6e486836042f087cc
         
     | 
| 3 | 
         
            +
            size 156780576
         
     | 
    	
        onnx/decoder_model_merged_q4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:341735808aecc5e017cdd10b060009ec12c5630a714226923c95bad28939e88e
         
     | 
| 3 | 
         
            +
            size 233227166
         
     | 
    	
        onnx/decoder_model_merged_q4f16.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:cffccb38e5afaebb4c582cfe160ab0d6caafc07a71aa8283541da9628bd46ea5
         
     | 
| 3 | 
         
            +
            size 145834487
         
     | 
    	
        onnx/decoder_model_merged_uint8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:fe90346141c0d92eeedbcf677fa0118bdf54efd9aaa16e5f27e76ae229404cc7
         
     | 
| 3 | 
         
            +
            size 156780631
         
     | 
    	
        onnx/decoder_model_q4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:3adce7fcddf80a893bd9c7c0dd6e4e7455be0cc474a398d5a2b3a8b027fd856e
         
     | 
| 3 | 
         
            +
            size 232651663
         
     | 
    	
        onnx/decoder_model_q4f16.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:8956a3ac474e2f72d58dcdfe2df2e8d40d1088e9174417fb82dd8cd4ac40ba9a
         
     | 
| 3 | 
         
            +
            size 144908486
         
     | 
    	
        onnx/decoder_model_uint8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:e5c501c440acda76e132e7d4a222d23fb25dddb53b7078e3aed7955e675b1b25
         
     | 
| 3 | 
         
            +
            size 315079125
         
     | 
    	
        onnx/decoder_with_past_model_bnb4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:f3e90f1b0d4b836b359aabadeba2be05b2ffcde6c98843ea716b0d35eaf024ed
         
     | 
| 3 | 
         
            +
            size 217588753
         
     | 
    	
        onnx/decoder_with_past_model_fp16.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:8fa081995010635bd72705d4a2ea84b61f3f2d9549517c06eac5ecc9a457ac6f
         
     | 
| 3 | 
         
            +
            size 279377214
         
     | 
    	
        onnx/decoder_with_past_model_int8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:720eea998ceaf72bd0f34616c4461b7a8197beb13f591c5a02427c05b6018a4f
         
     | 
| 3 | 
         
            +
            size 300880097
         
     | 
    	
        onnx/decoder_with_past_model_q4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:4fb23d1b07e7b6de0dce39c898d4dfa80bec97178892f7a0221a73fac0852d05
         
     | 
| 3 | 
         
            +
            size 223781209
         
     | 
    	
        onnx/decoder_with_past_model_q4f16.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:e1db84b6a7f20641811763ba0e57e748518bc00932c111d9df90cf5d4d7b478e
         
     | 
| 3 | 
         
            +
            size 136949088
         
     | 
    	
        onnx/decoder_with_past_model_uint8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:0d37605c7d1ac9fa2108f289e897b253e45f090897a8dd59546af3b95d90b58e
         
     | 
| 3 | 
         
            +
            size 300880142
         
     | 
    	
        onnx/encoder_model_bnb4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:6ee8d42c99be7cbb9719066737c5cdf912761df948a64417dd2257ed2ea8d373
         
     | 
| 3 | 
         
            +
            size 60826927
         
     | 
    	
        onnx/encoder_model_q4.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:1b6d0783234c6baec308308933acae2604457f3df969f6743fe0c0fc98cd6fa2
         
     | 
| 3 | 
         
            +
            size 66134815
         
     | 
    	
        onnx/encoder_model_q4f16.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:8b98b193add342b1d19d86815b72a83aecf3672cc1ae60ae9cc3fb4b6962361a
         
     | 
| 3 | 
         
            +
            size 54388383
         
     | 
    	
        onnx/encoder_model_uint8.onnx
    ADDED
    
    | 
         @@ -0,0 +1,3 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            version https://git-lfs.github.com/spec/v1
         
     | 
| 2 | 
         
            +
            oid sha256:f8d8c82aa4cfe74c5a59db7aba6e6fdcc695f40e88c7143452910dacc742a4c6
         
     | 
| 3 | 
         
            +
            size 92188765
         
     |