Run this model with HF Jobs
Run Xenova/finbert on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Xenova/finbert. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Xenova/finbert on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Xenova/finbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/finbert with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Xenova/finbert');
Add/update the quantized ONNX model files and README.md for Transformers.js v3
Browse files## Applied Quantizations
### ✅ Based on `model.onnx` *with* slimming
↳ ✅ `int8`: `model_int8.onnx` (added)
↳ ✅ `uint8`: `model_uint8.onnx` (added)
↳ ✅ `q4`: `model_q4.onnx` (added)
↳ ✅ `q4f16`: `model_q4f16.onnx` (added)
↳ ✅ `bnb4`: `model_bnb4.onnx` (added)
Files changed (6)
- README.md+16
- onnx/model_bnb4.onnxAdded+3
- onnx/model_int8.onnxAdded+3
- onnx/model_q4.onnxAdded+3
- onnx/model_q4f16.onnxAdded+3
- onnx/model_uint8.onnxAdded+3
4 unmodified lines567891011121314151617181920212223244 unmodified lines
https://huggingface.co/ProsusAI/finbert with ONNX weights to be compatible with Transformers.js.
## Usage (Transformers.js)
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:```bashnpm i @huggingface/transformers```
**Example:** Text Classification
```jsimport { pipeline } from '@huggingface/transformers';
const classifier = await pipeline('text-classification', 'Xenova/finbert');const output = await classifier('I love transformers!');```
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using [🤗 Optimum](https://huggingface.co/docs/optimum/index) and structuring your repo like this one (with ONNX weights located in a subfolder named `onnx`).123version https://git-lfs.github.com/spec/v1oid sha256:76f2e9e4d12b115b994ed0a479bc76ba0e61d99b639e2e029d241bca7ccfb0c2size 146288153123version https://git-lfs.github.com/spec/v1oid sha256:9b433bc285be993b172da20ca2436ea8fa5c803af0ceda0866273bf0df3e5034size 110248164123version https://git-lfs.github.com/spec/v1oid sha256:a6c7d0473b6518b4f3636daa179698052419e9508e459489002cabdf694d8e83size 151596041123version https://git-lfs.github.com/spec/v1oid sha256:70a9598778d7335d881c745ee205818c28b8c7220bdd2552e93a19d42b4fb9easize 97188032123version https://git-lfs.github.com/spec/v1oid sha256:c329ce1a8dd2bb3ccbfbc23f60d728eebf67ece4a6c493ffbba6dc726f8a3786size 110248207README.md+16
onnx/model_bnb4.onnxAdded+3
onnx/model_int8.onnxAdded+3
onnx/model_q4.onnxAdded+3
onnx/model_q4f16.onnxAdded+3
onnx/model_uint8.onnxAdded+3