Text Classification
Transformers
Safetensors
English
ultrabert
finance
sentiment-analysis
financial-sentiment-analysis
custom_code
fp16
Eval Results (legacy)
Instructions to use beethogedeon/UltraFinBERT-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beethogedeon/UltraFinBERT-150M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="beethogedeon/UltraFinBERT-150M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("beethogedeon/UltraFinBERT-150M", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("beethogedeon/UltraFinBERT-150M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from beethogedeon/UltraFinBERT-150M: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/beethogedeon/UltraFinBERT-150M/resolve/main/config.json
- Command line
-
hf download hf://beethogedeon/UltraFinBERT-150M/config.json
-
curl -L -o config.json https://huggingface.co/beethogedeon/UltraFinBERT-150M/resolve/main/config.json
1.72 kB
| { | |
| "architectures": [ | |
| "UltrabertForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attention_windows": [ | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null, | |
| 128, | |
| 128, | |
| null | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_ultrabert.UltrabertConfig", | |
| "AutoModelForSequenceClassification": "modeling_ultrabert.UltrabertForSequenceClassification" | |
| }, | |
| "bos_token_id": 0, | |
| "classifier_dropout": 0.0, | |
| "dtype": "float16", | |
| "eos_token_id": 0, | |
| "fine_tuning_max_length": 256, | |
| "finetuning_task": "financial-sentiment-analysis", | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "negative", | |
| "1": "neutral", | |
| "2": "positive" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 1024, | |
| "label2id": { | |
| "negative": 0, | |
| "neutral": 1, | |
| "positive": 2 | |
| }, | |
| "mlp_bias": false, | |
| "model_type": "ultrabert", | |
| "num_attention_heads": 6, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 6, | |
| "pad_token_id": 0, | |
| "prediction_head_size": 768, | |
| "problem_type": "single_label_classification", | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": [ | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0, | |
| 10000.0, | |
| 10000.0, | |
| 2560000.0 | |
| ], | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.16.1", | |
| "vocab_size": 49152 | |
| } | |