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

#1
by whitphx HF Staff - opened
README.md CHANGED
@@ -7,23 +7,21 @@ https://huggingface.co/facebook/convnext-xlarge-224-22k with ONNX weights to be
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/@xenova/transformers) using:
11
  ```bash
12
- npm i @xenova/transformers
13
  ```
14
 
15
  **Example:** Perform image classification with `Xenova/convnext-xlarge-224-22k`.
16
 
17
  ```js
18
- import { pipeline } from '@xenova/transformers';
19
 
20
- // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnext-xlarge-224-22k');
22
 
23
- // Classify an image
24
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
25
  const output = await classifier(url);
26
- console.log(output)
27
  ```
28
 
29
  ---
 
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:** Perform image classification with `Xenova/convnext-xlarge-224-22k`.
16
 
17
  ```js
18
+ import { pipeline } from '@huggingface/transformers';
19
 
 
20
  const classifier = await pipeline('image-classification', 'Xenova/convnext-xlarge-224-22k');
21
 
 
22
  const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/tiger.jpg';
23
  const output = await classifier(url);
24
+ console.log(output);
25
  ```
26
 
27
  ---
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c23c439c2876ced57166434f65b098a7c68d94c42e3ff260ce8fda427bccbd49
3
+ size 420362541
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b96ca4c876f36805978be08f08319d6628cb1f9f234ce3a61246a7536667ff10
3
+ size 441300699
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:985d58fbce3b1fef579a3c9529e7dbf68ccf372e9e1ec13ccd7ea90a03248228
3
+ size 304601763
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8577c6dd9e3331a7482d76b0a8921b86497dc0e2e515dddebf29f461cf087087
3
+ size 394558480