Text Classification
Transformers
Safetensors
English
qwen3_5_text
text-generation
Rodinia
finance
financial-ai
decision-intelligence
typed-decisions
financial-classification
calibrated-probabilities
probability-calibration
risk-assessment
sentiment-analysis
portfolio-analysis
0.8b
sociodynamics-ai
Instructions to use NeoSapian/Rodinia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeoSapian/Rodinia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="NeoSapian/Rodinia")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NeoSapian/Rodinia") model = AutoModelForCausalLM.from_pretrained("NeoSapian/Rodinia", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,7 +25,7 @@ tags:
|
|
| 25 |
|
| 26 |
**Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**.
|
| 27 |
|
| 28 |
-
Unlike conventional financial language models designed primarily to generate natural-language responses, Rodinia
|
| 29 |
|
| 30 |
It uses a specialized classification interface built around three decision types:
|
| 31 |
|
|
@@ -35,7 +35,7 @@ It uses a specialized classification interface built around three decision types
|
|
| 35 |
|
| 36 |
Rodinia uses next-token logits over predefined option tokens to calculate decision probabilities. It does not require free-form natural-language generation to produce its primary decisions.
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
---
|
| 41 |
|
|
@@ -47,7 +47,7 @@ Rodinia is a specialized 0.8B financial decision model and uses temperature cali
|
|
| 47 |
| Repository | `NeoSapian/Rodinia` |
|
| 48 |
| Developer | Sociodynamics AI |
|
| 49 |
| Model size | 0.8B parameters |
|
| 50 |
-
|
|
| 51 |
| Training | Full fine-tuning |
|
| 52 |
| Domain | Financial decision intelligence |
|
| 53 |
| Model category | Typed decision model |
|
|
@@ -62,63 +62,70 @@ Rodinia is a specialized 0.8B financial decision model and uses temperature cali
|
|
| 62 |
|
| 63 |
Rodinia follows a different approach from generative financial LLMs.
|
| 64 |
|
| 65 |
-
A generative model typically receives a financial prompt and produces a textual explanation. Rodinia instead receives a financial state and explicitly defined decision questions.
|
| 66 |
|
| 67 |
-
It evaluates the state against those questions and returns probability distributions over the available decision options.
|
|
|
|
|
|
|
| 68 |
|
| 69 |
## 1.2 Core Architecture Flow
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
<p align="center">
|
| 74 |
-
<img
|
| 75 |
-
|
| 76 |
-
|
|
|
|
|
|
|
| 77 |
</p>
|
| 78 |
|
| 79 |
-
|
| 80 |
|
| 81 |
-
1. **Financial
|
| 82 |
-
2. **Typed
|
| 83 |
-
3. **Rodinia 0.8B:** Processes the supplied state and question.
|
| 84 |
-
4. **Decision
|
| 85 |
-
5. **
|
| 86 |
-
6. **Option-
|
| 87 |
-
7. **
|
| 88 |
-
8. **
|
|
|
|
| 89 |
|
| 90 |
---
|
| 91 |
|
| 92 |
# 2. Model Architecture
|
| 93 |
|
| 94 |
-
Rodinia is a specialized 0.8B model for financial text and structured state interpretation.
|
|
|
|
|
|
|
| 95 |
|
| 96 |
## 2.1 Decision Processing
|
| 97 |
|
| 98 |
-
For an input state
|
| 99 |
|
| 100 |
-
For a choice task with candidate options
|
| 101 |
|
| 102 |
-
|
| 103 |
P(c_i \mid x,q) =
|
| 104 |
\frac{\exp(z_i/T)}
|
| 105 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 106 |
-
|
| 107 |
|
| 108 |
Where:
|
| 109 |
|
| 110 |
-
-
|
| 111 |
-
-
|
| 112 |
-
-
|
| 113 |
-
-
|
| 114 |
|
| 115 |
The selected decision is:
|
| 116 |
|
| 117 |
-
|
| 118 |
\hat{c} =
|
| 119 |
\underset{c_i \in C}{\operatorname{argmax}}
|
| 120 |
-
|
| 121 |
-
|
| 122 |
|
| 123 |
The model selects the candidate with the highest probability.
|
| 124 |
|
|
@@ -126,7 +133,7 @@ The model selects the candidate with the highest probability.
|
|
| 126 |
|
| 127 |
1. Receive a financial state or text input.
|
| 128 |
2. Receive one or more typed decision questions.
|
| 129 |
-
3. Process the state and question using
|
| 130 |
4. Extract logits corresponding to predefined answer tokens.
|
| 131 |
5. Calculate probability distributions.
|
| 132 |
6. Apply temperature calibration.
|
|
@@ -136,17 +143,19 @@ The model selects the candidate with the highest probability.
|
|
| 136 |
|
| 137 |
Rodinia applies temperature scaling to adjust the confidence distribution of its predictions.
|
| 138 |
|
| 139 |
-
|
|
|
|
|
|
|
| 140 |
P_T(c_i \mid x,q) =
|
| 141 |
\frac{\exp(z_i/T)}
|
| 142 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 143 |
-
|
| 144 |
|
| 145 |
-
Where
|
| 146 |
|
| 147 |
-
-
|
| 148 |
-
-
|
| 149 |
-
-
|
| 150 |
|
| 151 |
Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits.
|
| 152 |
|
|
@@ -156,6 +165,8 @@ Temperature scaling adjusts confidence without changing the ranking of candidate
|
|
| 156 |
|
| 157 |
Choice selects one option from a predefined collection.
|
| 158 |
|
|
|
|
|
|
|
| 159 |
```json
|
| 160 |
{
|
| 161 |
"type": "choice",
|
|
@@ -179,6 +190,8 @@ Potential applications:
|
|
| 179 |
|
| 180 |
Score classifies an input into predefined ordinal levels.
|
| 181 |
|
|
|
|
|
|
|
| 182 |
```json
|
| 183 |
{
|
| 184 |
"type": "score",
|
|
@@ -204,6 +217,8 @@ The score represents a selected category, not a calibrated numerical probability
|
|
| 204 |
|
| 205 |
Noul is a binary decision interface for yes/no questions.
|
| 206 |
|
|
|
|
|
|
|
| 207 |
```json
|
| 208 |
{
|
| 209 |
"type": "noul",
|
|
@@ -222,7 +237,7 @@ Potential applications:
|
|
| 222 |
|
| 223 |
# 3. Training Methodology
|
| 224 |
|
| 225 |
-
Rodinia was trained using full fine-tuning
|
| 226 |
|
| 227 |
The training process combines real-world financial classification datasets and synthetic, rule-labelled decision tasks.
|
| 228 |
|
|
@@ -333,6 +348,8 @@ clf = m.JevClassifier(MODEL_ID)
|
|
| 333 |
|
| 334 |
Rodinia can evaluate multiple decision questions against the same financial state.
|
| 335 |
|
|
|
|
|
|
|
| 336 |
```python
|
| 337 |
result = clf.decide(
|
| 338 |
"Company X cuts full-year guidance and CFO resigns.",
|
|
@@ -379,6 +396,8 @@ The model returns structured decision results rather than requiring a generated
|
|
| 379 |
|
| 380 |
Rodinia can evaluate text or JSON-formatted state descriptions.
|
| 381 |
|
|
|
|
|
|
|
| 382 |
```python
|
| 383 |
portfolio_state = {
|
| 384 |
"portfolio_value": 100000,
|
|
@@ -551,7 +570,7 @@ Lower ECE indicates better calibration.
|
|
| 551 |
|
| 552 |
Measures the squared error between predicted probabilities and actual outcomes.
|
| 553 |
|
| 554 |
-
Lower Brier Score indicates better probabilistic
|
| 555 |
|
| 556 |
### Negative Log-Likelihood (NLL)
|
| 557 |
|
|
@@ -737,7 +756,7 @@ These are development directions, not claims about currently implemented capabil
|
|
| 737 |
| Model name | Rodinia |
|
| 738 |
| Model repository | NeoSapian/Rodinia |
|
| 739 |
| Parameters | 0.8B |
|
| 740 |
-
|
|
| 741 |
| Fine-tuning | Full fine-tuning |
|
| 742 |
| Decision interface | Typed classification |
|
| 743 |
| Choice | Supported |
|
|
@@ -778,7 +797,7 @@ https://huggingface.co/NeoSapian/Rodinia
|
|
| 778 |
|
| 779 |
The model is distributed under the license specified in the repository.
|
| 780 |
|
| 781 |
-
The underlying
|
| 782 |
|
| 783 |
This model is provided for research, experimentation, and decision-support applications.
|
| 784 |
|
|
@@ -800,4 +819,4 @@ Users are responsible for validating model outputs before using them in financia
|
|
| 800 |
|
| 801 |
A compact 0.8B typed financial decision intelligence model.
|
| 802 |
|
| 803 |
-
</div>
|
|
|
|
| 25 |
|
| 26 |
**Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**.
|
| 27 |
|
| 28 |
+
Unlike conventional financial language models designed primarily to generate natural-language responses, Rodinia is designed to interpret financial states and produce structured, typed decisions with associated probability distributions.
|
| 29 |
|
| 30 |
It uses a specialized classification interface built around three decision types:
|
| 31 |
|
|
|
|
| 35 |
|
| 36 |
Rodinia uses next-token logits over predefined option tokens to calculate decision probabilities. It does not require free-form natural-language generation to produce its primary decisions.
|
| 37 |
|
| 38 |
+
The model is a full fine-tuned 0.8B financial decision intelligence model and uses temperature calibration fitted on a held-out split.
|
| 39 |
|
| 40 |
---
|
| 41 |
|
|
|
|
| 47 |
| Repository | `NeoSapian/Rodinia` |
|
| 48 |
| Developer | Sociodynamics AI |
|
| 49 |
| Model size | 0.8B parameters |
|
| 50 |
+
| Architecture | Rodinia 0.8B |
|
| 51 |
| Training | Full fine-tuning |
|
| 52 |
| Domain | Financial decision intelligence |
|
| 53 |
| Model category | Typed decision model |
|
|
|
|
| 62 |
|
| 63 |
Rodinia follows a different approach from generative financial LLMs.
|
| 64 |
|
| 65 |
+
A generative model typically receives a financial prompt and produces a textual explanation. Rodinia instead receives a financial state and a set of explicitly defined decision questions.
|
| 66 |
|
| 67 |
+
It evaluates the state against those questions and returns probability distributions over the available decision options.
|
| 68 |
+
|
| 69 |
+
This makes the output suitable for downstream systems that need structured classification rather than unrestricted text generation.
|
| 70 |
|
| 71 |
## 1.2 Core Architecture Flow
|
| 72 |
|
| 73 |
+
Rodinia processes financial information through a typed decision architecture. The system converts financial states into predefined classification decisions and associated probability distributions.
|
| 74 |
|
| 75 |
<p align="center">
|
| 76 |
+
<img
|
| 77 |
+
src="https://huggingface.co/NeoSapian/Rodinia/resolve/main/rodinia-architecture.png"
|
| 78 |
+
alt="Rodinia 0.8B Typed Financial Decision Intelligence Architecture"
|
| 79 |
+
width="100%"
|
| 80 |
+
/>
|
| 81 |
</p>
|
| 82 |
|
| 83 |
+
### Architecture Processing Stages
|
| 84 |
|
| 85 |
+
1. **Financial State Input:** Receives financial news, portfolio information, market-state descriptions, or other supported financial text.
|
| 86 |
+
2. **Typed Decision Questions:** Receives explicitly defined decision questions and their available answer options.
|
| 87 |
+
3. **Rodinia 0.8B:** Processes the supplied financial state and decision question.
|
| 88 |
+
4. **Typed Decision Interface:** Determines the appropriate decision type.
|
| 89 |
+
5. **Decision Branches:** Processes the task through Choice, Score, or Noul.
|
| 90 |
+
6. **Option-Token Logits:** Extracts logits associated with predefined answer tokens.
|
| 91 |
+
7. **Probability Calculation:** Applies softmax to produce probability distributions.
|
| 92 |
+
8. **Temperature Calibration:** Adjusts the confidence distribution using the fitted calibration temperature.
|
| 93 |
+
9. **Structured Decision Output:** Returns the selected decision and its associated probabilities.
|
| 94 |
|
| 95 |
---
|
| 96 |
|
| 97 |
# 2. Model Architecture
|
| 98 |
|
| 99 |
+
Rodinia is a specialized 0.8B model for financial text and structured state interpretation.
|
| 100 |
+
|
| 101 |
+
Its decision interface operates over predefined output tokens rather than relying on unrestricted text generation.
|
| 102 |
|
| 103 |
## 2.1 Decision Processing
|
| 104 |
|
| 105 |
+
For an input state $x$, the model processes a question $q$ and obtains logits over predefined answer tokens.
|
| 106 |
|
| 107 |
+
For a choice task with candidate options $C$, the probability distribution is calculated using temperature-scaled softmax:
|
| 108 |
|
| 109 |
+
$$
|
| 110 |
P(c_i \mid x,q) =
|
| 111 |
\frac{\exp(z_i/T)}
|
| 112 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 113 |
+
$$
|
| 114 |
|
| 115 |
Where:
|
| 116 |
|
| 117 |
+
- $z_i$: Logit associated with candidate option $i$.
|
| 118 |
+
- $T$: Calibration temperature.
|
| 119 |
+
- $K$: Number of candidate options.
|
| 120 |
+
- $P(c_i \mid x,q)$: Probability assigned to candidate option $i$.
|
| 121 |
|
| 122 |
The selected decision is:
|
| 123 |
|
| 124 |
+
$$
|
| 125 |
\hat{c} =
|
| 126 |
\underset{c_i \in C}{\operatorname{argmax}}
|
| 127 |
+
P(c_i \mid x,q)
|
| 128 |
+
$$
|
| 129 |
|
| 130 |
The model selects the candidate with the highest probability.
|
| 131 |
|
|
|
|
| 133 |
|
| 134 |
1. Receive a financial state or text input.
|
| 135 |
2. Receive one or more typed decision questions.
|
| 136 |
+
3. Process the state and question using Rodinia.
|
| 137 |
4. Extract logits corresponding to predefined answer tokens.
|
| 138 |
5. Calculate probability distributions.
|
| 139 |
6. Apply temperature calibration.
|
|
|
|
| 143 |
|
| 144 |
Rodinia applies temperature scaling to adjust the confidence distribution of its predictions.
|
| 145 |
|
| 146 |
+
The calibrated probability is:
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
P_T(c_i \mid x,q) =
|
| 150 |
\frac{\exp(z_i/T)}
|
| 151 |
{\sum_{j=1}^{K}\exp(z_j/T)}
|
| 152 |
+
$$
|
| 153 |
|
| 154 |
+
Where $T$ is the calibration temperature.
|
| 155 |
|
| 156 |
+
- $T > 1$: Produces a softer probability distribution.
|
| 157 |
+
- $T < 1$: Produces a sharper probability distribution.
|
| 158 |
+
- $T = 1$: Leaves the original softmax distribution unchanged.
|
| 159 |
|
| 160 |
Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits.
|
| 161 |
|
|
|
|
| 165 |
|
| 166 |
Choice selects one option from a predefined collection.
|
| 167 |
|
| 168 |
+
Example:
|
| 169 |
+
|
| 170 |
```json
|
| 171 |
{
|
| 172 |
"type": "choice",
|
|
|
|
| 190 |
|
| 191 |
Score classifies an input into predefined ordinal levels.
|
| 192 |
|
| 193 |
+
Example:
|
| 194 |
+
|
| 195 |
```json
|
| 196 |
{
|
| 197 |
"type": "score",
|
|
|
|
| 217 |
|
| 218 |
Noul is a binary decision interface for yes/no questions.
|
| 219 |
|
| 220 |
+
Example:
|
| 221 |
+
|
| 222 |
```json
|
| 223 |
{
|
| 224 |
"type": "noul",
|
|
|
|
| 237 |
|
| 238 |
# 3. Training Methodology
|
| 239 |
|
| 240 |
+
Rodinia was trained using full fine-tuning.
|
| 241 |
|
| 242 |
The training process combines real-world financial classification datasets and synthetic, rule-labelled decision tasks.
|
| 243 |
|
|
|
|
| 348 |
|
| 349 |
Rodinia can evaluate multiple decision questions against the same financial state.
|
| 350 |
|
| 351 |
+
Example:
|
| 352 |
+
|
| 353 |
```python
|
| 354 |
result = clf.decide(
|
| 355 |
"Company X cuts full-year guidance and CFO resigns.",
|
|
|
|
| 396 |
|
| 397 |
Rodinia can evaluate text or JSON-formatted state descriptions.
|
| 398 |
|
| 399 |
+
Example:
|
| 400 |
+
|
| 401 |
```python
|
| 402 |
portfolio_state = {
|
| 403 |
"portfolio_value": 100000,
|
|
|
|
| 570 |
|
| 571 |
Measures the squared error between predicted probabilities and actual outcomes.
|
| 572 |
|
| 573 |
+
Lower Brier Score indicates better probabilistic accuracy.
|
| 574 |
|
| 575 |
### Negative Log-Likelihood (NLL)
|
| 576 |
|
|
|
|
| 756 |
| Model name | Rodinia |
|
| 757 |
| Model repository | NeoSapian/Rodinia |
|
| 758 |
| Parameters | 0.8B |
|
| 759 |
+
| Architecture | Rodinia 0.8B |
|
| 760 |
| Fine-tuning | Full fine-tuning |
|
| 761 |
| Decision interface | Typed classification |
|
| 762 |
| Choice | Supported |
|
|
|
|
| 797 |
|
| 798 |
The model is distributed under the license specified in the repository.
|
| 799 |
|
| 800 |
+
The underlying model and its licensing terms must also be respected.
|
| 801 |
|
| 802 |
This model is provided for research, experimentation, and decision-support applications.
|
| 803 |
|
|
|
|
| 819 |
|
| 820 |
A compact 0.8B typed financial decision intelligence model.
|
| 821 |
|
| 822 |
+
</div>
|