Xenova HF Staff whitphx HF Staff commited on
Commit
9a27fb8
·
verified ·
1 Parent(s): f9e125c

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 (822f66dcedfc20a02405c4c6bae3b44449be84fd)


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

README.md CHANGED
@@ -7,15 +7,15 @@ https://huggingface.co/facebook/convnext-base-224-22k-1k 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-base-224-22k-1k`.
16
 
17
  ```js
18
- import { pipeline } from '@xenova/transformers';
19
 
20
  // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnext-base-224-22k-1k');
@@ -23,7 +23,7 @@ const classifier = await pipeline('image-classification', 'Xenova/convnext-base-
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-base-224-22k-1k`.
16
 
17
  ```js
18
+ import { pipeline } from '@huggingface/transformers';
19
 
20
  // Create image classification pipeline
21
  const classifier = await pipeline('image-classification', 'Xenova/convnext-base-224-22k-1k');
 
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:91f727494b21178a240f502594ac15ee0aa80f9233ae6d833ad5fd981fe28a94
3
+ size 66850966
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea15639b3569a8b1d13918a3bd6ad37e297d88ef4ddb9b7e03e513b2a21b627a
3
+ size 72085075
onnx/model_q4f16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2f93092012200f251e3f47f9354c5fd1bcb364cb169f126e423a9b5ff95d5c7
3
+ size 57177632
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ba2af56cd667aab7b31867343a245d75f031f01e633d509d316ebfbb8bee281
3
+ size 89681687