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 (62b29d0ffdb6780db095da58588c95ca38fb5f30)
Co-authored-by: Yuichiro Tachibana <whitphx@users.noreply.huggingface.co>
- README.md +4 -4
- onnx/model_bnb4.onnx +3 -0
- onnx/model_q4.onnx +3 -0
- onnx/model_q4f16.onnx +3 -0
- onnx/model_uint8.onnx +3 -0
README.md
CHANGED
@@ -7,15 +7,15 @@ https://huggingface.co/facebook/convnextv2-large-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/@
|
11 |
```bash
|
12 |
-
npm i @
|
13 |
```
|
14 |
|
15 |
**Example:** Perform image classification with `Xenova/convnextv2-large-22k-384`.
|
16 |
|
17 |
```js
|
18 |
-
import { pipeline } from '@
|
19 |
|
20 |
// Create image classification pipeline
|
21 |
const classifier = await pipeline('image-classification', 'Xenova/convnextv2-large-22k-384');
|
@@ -23,7 +23,7 @@ const classifier = await pipeline('image-classification', 'Xenova/convnextv2-lar
|
|
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-large-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-large-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:8a181e98a0a30836cc573f6e061b2cdb90501abdfe9b8ac753febe543bac935f
|
3 |
+
size 144575649
|
onnx/model_q4.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e019764bc231a87fab0dd456df651b684b7b991946619fc4718e3e2903e3843
|
3 |
+
size 156353136
|
onnx/model_q4f16.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c8c403ce91de5ede4fe8a8f62fc4cc9dc2b2997ca7a0eddc3ffad38676a1156
|
3 |
+
size 125559087
|
onnx/model_uint8.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f70961c8f2aafd1ce7a5014e280b94e5f9118f98b0bf454f080b1765f3b912b5
|
3 |
+
size 200020872
|