whitphx HF Staff commited on
Commit
91c84d0
·
verified ·
1 Parent(s): 0519da9

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

Browse files

## Applied Quantizations

### ❌ Based on `model.onnx` *with* slimming

```
None
```
↳ ❌ `q4f16`: `model_q4f16.onnx` (added but JS-based E2E test failed)
```
file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:30853
throw Error(`\`local_files_only=true\` or \`env.allowRemoteModels=false\` and file was not found locally at "${localPath}".`);
^

Error: `local_files_only=true` or `env.allowRemoteModels=false` and file was not found locally at "/tmp/tmp52ze3q4v/0519da91fe063cf87db40b97c51fc44740e5eae1/tokenizer.json".
at getModelFile (file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:30853:27)
at async getModelJSON (file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:30997:20)
at async Promise.all (index 0)
at async loadTokenizer (file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:24010:18)
at async AutoTokenizer.from_pretrained (file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:28351:50)
at async Promise.all (index 0)
at async loadItems (file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:23881:5)
at async pipeline (file:///home/ubuntu/src/tjsmigration/node_modules/.pnpm/@[email protected]/node_modules/@huggingface/transformers/dist/transformers.node.mjs:23811:21)
at async file:///home/ubuntu/src/tjsmigration/src/[eval1]:8:15

Node.js v22.16.0
```

Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -9,15 +9,15 @@ YOLOv8n-pose with ONNX weights to be compatible with Transformers.js.
9
 
10
  ## Usage (Transformers.js)
11
 
12
- 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:
13
  ```bash
14
- npm i @xenova/transformers
15
  ```
16
 
17
  **Example:** Perform pose-estimation w/ `Xenova/yolov8n-pose`.
18
 
19
  ```js
20
- import { AutoModel, AutoProcessor, RawImage } from '@xenova/transformers';
21
 
22
  // Load model and processor
23
  const model_id = 'Xenova/yolov8n-pose';
 
9
 
10
  ## Usage (Transformers.js)
11
 
12
+ 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:
13
  ```bash
14
+ npm i @huggingface/transformers
15
  ```
16
 
17
  **Example:** Perform pose-estimation w/ `Xenova/yolov8n-pose`.
18
 
19
  ```js
20
+ import { AutoModel, AutoProcessor, RawImage } from '@huggingface/transformers';
21
 
22
  // Load model and processor
23
  const model_id = 'Xenova/yolov8n-pose';