Instructions to use nodd-repo/sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use nodd-repo/sentiment with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'nodd-repo/sentiment');
Download browser_parity.json from nodd-repo/sentiment: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/nodd-repo/sentiment/resolve/main/browser_parity.json
- Command line
-
hf download hf://nodd-repo/sentiment/browser_parity.json
-
curl -L -o browser_parity.json https://huggingface.co/nodd-repo/sentiment/resolve/main/browser_parity.json
457 Bytes
| { | |
| "model": "/models/sentiment/v2", | |
| "n": 51, | |
| "results": [ | |
| { | |
| "name": "transformers.js \u00b7 wasm \u00b7 q8", | |
| "device": "wasm", | |
| "agreement": 1, | |
| "maxProbDiff": 0.009276406422991879, | |
| "pass": true | |
| }, | |
| { | |
| "name": "transformers.js \u00b7 webgpu \u00b7 q8", | |
| "device": "webgpu", | |
| "agreement": 1, | |
| "maxProbDiff": 0.06435286888915914, | |
| "pass": true | |
| } | |
| ], | |
| "pass": true, | |
| "webgpu": true | |
| } | |