Text Classification
Transformers
PyTorch
TensorFlow
JAX
Safetensors
English
bert
financial-sentiment-analysis
sentiment-analysis
finance
Run this model with HF Jobs
Run ProsusAI/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/ProsusAI/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/ProsusAI/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 ProsusAI/finbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProsusAI/finbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ProsusAI/finbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ProsusAI/finbert") model = AutoModelForSequenceClassification.from_pretrained("ProsusAI/finbert", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download config.json from ProsusAI/finbert: direct link, hf CLI and curl.
- Browser
- Download file 758 Bytes
-
https://huggingface.co/ProsusAI/finbert/resolve/main/config.json
- Command line
-
hf download hf://ProsusAI/finbert/config.json
-
curl -L -o config.json https://huggingface.co/ProsusAI/finbert/resolve/main/config.json
758 Bytes
| { | |
| "_name_or_path": "/home/ubuntu/finbert/models/language_model/finbertTRC2", | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "gradient_checkpointing": false, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "positive", | |
| "1": "negative", | |
| "2": "neutral" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "positive": 0, | |
| "negative": 1, | |
| "neutral": 2 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "type_vocab_size": 2, | |
| "vocab_size": 30522 | |
| } | |