Xenova HF Staff whitphx commited on
Commit
b93e9bb
·
verified ·
1 Parent(s): c88b1ea

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 (b1f0f591c2859e6dcdb45c89ab4ef65090842ac9)


Co-authored-by: Yuichiro Tachibana <whitphx@users.noreply.huggingface.co>

README.md CHANGED
@@ -7,15 +7,15 @@ https://huggingface.co/facebook/convnextv2-base-22k-384 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-384`.
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-384');
@@ -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-384`.
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-384');
 
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:741670f4f704d35300f1746c4e8de6ad5df489e3bfa18a6edb52df5a481a9534
3
+ size 67504289
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d222000eb761b033c6fb6a477438801f05f139ac54dff80c97ceee2a5d87a23
3
+ size 72738398
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b56a854fc18a7b126ff1c33b75dc3e2ae0438ed56db7c0223ac9d7eaf177ff92
3
+ size 57578269
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60bb9b9777606f2b107fdbd180562b6bd3c29a4dec60362fd008f96c517c0af3
3
+ size 90339536