Xenova HF Staff whitphx HF Staff commited on
Commit
26c50fa
·
verified ·
1 Parent(s): 26de59a

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

Browse files

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


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

README.md CHANGED
@@ -7,15 +7,15 @@ https://huggingface.co/facebook/convnextv2-base-22k-224 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/convnextv2-base-22k-224`.
16
 
17
  ```js
18
- import { pipeline } from '@xenova/transformers';
19
 
20
  // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnextv2-base-22k-224');
@@ -23,7 +23,7 @@ const classifier = await pipeline('image-classification', 'Xenova/convnextv2-bas
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/convnextv2-base-22k-224`.
16
 
17
  ```js
18
+ import { pipeline } from '@huggingface/transformers';
19
 
20
  // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnextv2-base-22k-224');
 
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
  ---
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:516d653fbd17cfce7fe8c856c0ec566ad89ea81e8713e1896961cffcb611f6e2
3
+ size 67504289
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46f1b4e82c3d2d4d6ee27271d5f56c4dce971134fe8afa9b84698838eba582f0
3
+ size 72738398
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61d17ccc7188674b2f4ff439f048a6d33cdd1f592f8d59653fae986c0d1ce2e2
3
+ size 57578269
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94cc2a0c0222fab17b94346021914f4dc7c95b82f379af10d8f037f8d7526123
3
+ size 90339536