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
Run this model with HF Jobs
Run NeoSapian/Rodinia 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/NeoSapian/Rodinia. 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/NeoSapian/Rodinia 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 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 files15 unmodified lines161718192021223 unmodified lines262728293031321 unmodified line3435363738394041425 unmodified lines484950515253548 unmodified lines6364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514611 unmodified lines1581591601611621631641651661671681691701711721731741751763 unmodified lines18018118218318418518618717 unmodified lines20520620720820921021121219 unmodified lines232233234235236237238239123 unmodified lines36336436536636736836937040 unmodified lines411412413414415416417418124 unmodified lines54354454554654754854935 unmodified lines585586587588589590591179 unmodified lines77177277377477577677756 unmodified lines83483583683715 unmodified lines- risk-assessment- sentiment-analysis- portfolio-analysis- qwen- 0.8b- sociodynamics-ai---3 unmodified lines**Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**.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.It uses a specialized classification interface built around three decision types:1 unmodified line- **Score:** Evaluates a state against predefined ordinal levels.- **Noul:** Produces a binary yes/no decision.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 decisions.The model is a full fine-tune of `Qwen/Qwen3.5-0.8B-Base` and uses temperature calibration fitted on a held-out split.---5 unmodified lines| Repository | `NeoSapian/Rodinia` || Developer | Sociodynamics AI || Model size | 0.8B parameters || Base model | Qwen/Qwen3.5-0.8B-Base || Training | Full fine-tuning || Domain | Financial decision intelligence || Model category | Typed decision model |8 unmodified linesRodinia follows a different approach from generative financial LLMs.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.It evaluates the state against those questions and returns probability distributions over the available decision options.This makes the output suitable for downstream systems that need structured classification rather than unrestricted text generation.### Core Architecture Flow```textFinancial State|vRodinia 0.8B|vTyped Decision Interface|+---------+---------+| | |v v vChoice Score Noul| | |+---------+---------+|vOption-token logits|vSoftmax calculation|vProbability distributions|vTemperature calibration|vStructured decisions```---# 2. Model ArchitectureRodinia is a full fine-tune of:`Qwen/Qwen3.5-0.8B-Base`The model uses the base model's learned language representations to interpret financial text and structured state descriptions.Its decision interface operates over predefined output tokens rather than relying on unrestricted text generation.## 2.1 Decision ProcessingFor an input state $x$, the model processes a question $q$ and obtains logits over predefined answer tokens.For a choice task with candidate options $C$, the probability distribution is calculated using temperature-scaled softmax:$$P(c_i \mid x,q) =\frac{\exp(z_i/T)}{\sum_{j=1}^{K}\exp(z_j/T)}$$Where:- $z_i$: Logit associated with candidate option $i$.- $T$: Calibration temperature.- $K$: Number of candidate options.- $P(c_i \mid x,q)$: Probability assigned to candidate option $i$.The selected decision is:$$\hat{c} =\underset{c_i \in C}{\operatorname{argmax}}\; P(c_i \mid x,q)$$The model selects the candidate with the highest probability.11 unmodified linesRodinia applies temperature scaling to adjust the confidence distribution of its predictions.The calibrated probability is:$$P_T(c_i \mid x,q) =\frac{\exp(z_i/T)}{\sum_{j=1}^{K}\exp(z_j/T)}$$Where $T$ is the calibration temperature.- $T > 1$: Produces a softer probability distribution.- $T < 1$: Produces a sharper probability distribution.- $T = 1$: Leaves the original softmax distribution unchanged.Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits.3 unmodified linesChoice selects one option from a predefined collection.Example:```json{"type": "choice",17 unmodified linesScore classifies an input into predefined ordinal levels.Example:```json{"type": "score",19 unmodified linesNoul is a binary decision interface for yes/no questions.Example:```json{"type": "noul",123 unmodified linesRodinia can evaluate multiple decision questions against the same financial state.Example:```pythonresult = clf.decide("Company X cuts full-year guidance and CFO resigns.",40 unmodified linesRodinia can evaluate text or JSON-formatted state descriptions.Example:```pythonportfolio_state = {"portfolio_value": 100000,124 unmodified linesNotable observations:- Headline classification achieves 97.71% accuracy.- Synthetic macro classification achieves 100% accuracy.- Synthetic portfolio classification achieves 97.34% accuracy.- Financial sentiment classification achieves 76.28%.- FOMC classification achieves 67.86%.35 unmodified linesMeasures the squared error between predicted probabilities and actual outcomes.Lower Brier Score indicates better probabilistic accuracy.### Negative Log-Likelihood (NLL)179 unmodified lines| Model name | Rodinia || Model repository | NeoSapian/Rodinia || Parameters | 0.8B || Base architecture | Qwen3.5-0.8B-Base || Fine-tuning | Full fine-tuning || Decision interface | Typed classification || Choice | Supported |56 unmodified linesA compact 0.8B typed financial decision intelligence model.</div>15 unmodified lines1617181920213 unmodified lines252627282930311 unmodified line3334353637383940415 unmodified lines474849505152538 unmodified lines626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312411 unmodified lines1361371381391401411421431441451461471481491501511523 unmodified lines15615715815916016117 unmodified lines17918018118218318419 unmodified lines204205206207208209123 unmodified lines33333433533633733840 unmodified lines379380381382383384124 unmodified lines50951051151251351451535 unmodified lines551552553554555556557179 unmodified lines73773873974074174274356 unmodified lines80080180280315 unmodified lines- risk-assessment- sentiment-analysis- portfolio-analysis- 0.8b- sociodynamics-ai---3 unmodified lines**Rodinia** is a specialized financial decision intelligence model developed by **Sociodynamics AI**.Unlike conventional financial language models designed primarily to generate natural-language responses, Rodinia interprets financial states and produces structured, typed decisions with associated probability distributions.It uses a specialized classification interface built around three decision types:1 unmodified line- **Score:** Evaluates a state against predefined ordinal levels.- **Noul:** Produces a binary yes/no decision.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.Rodinia is a specialized 0.8B financial decision model and uses temperature calibration fitted on a held-out split.---5 unmodified lines| Repository | `NeoSapian/Rodinia` || Developer | Sociodynamics AI || Model size | 0.8B parameters || Model architecture | Rodinia 0.8B || Training | Full fine-tuning || Domain | Financial decision intelligence || Model category | Typed decision model |8 unmodified linesRodinia follows a different approach from generative financial LLMs.A generative model typically receives a financial prompt and produces a textual explanation. Rodinia instead receives a financial state and explicitly defined decision questions.It evaluates the state against those questions and returns probability distributions over the available decision options. This makes the output suitable for downstream systems that need structured classification rather than unrestricted text generation.## 1.2 Core Architecture FlowThe architecture below shows how Rodinia processes a financial state together with typed decision questions and converts the model's option-token logits into calibrated, structured decisions.<p align="center"><img src="rodinia-architecture.png"alt="Rodinia 0.8B typed financial decision architecture"width="100%"></p>**Architecture sequence:**1. **Financial state / text input:** Receives financial news, portfolio information, market-state descriptions, or other supported text.2. **Typed decision questions:** Receives the decision task and its predefined answer space.3. **Rodinia 0.8B:** Processes the supplied state and question.4. **Decision interface:** Extracts logits associated with the predefined answer-option tokens.5. **Typed decision branches:** Routes the task through Choice, Score, or Noul.6. **Option-token logits and softmax:** Converts the relevant logits into a probability distribution.7. **Temperature calibration:** Applies the fitted calibration temperature to adjust confidence.8. **Structured decision outputs:** Returns the selected category and its probability distribution.---# 2. Model ArchitectureRodinia is a specialized 0.8B model for financial text and structured state interpretation. Its decision interface operates over predefined output tokens rather than relying on unrestricted text generation.## 2.1 Decision ProcessingFor an input state \(x\), the model processes a question \(q\) and obtains logits over predefined answer tokens.For a choice task with candidate options \(C\), the probability distribution is calculated using temperature-scaled softmax:\[P(c_i \mid x,q) =\frac{\exp(z_i/T)}{\sum_{j=1}^{K}\exp(z_j/T)}\]Where:- \(z_i\): Logit associated with candidate option \(i\).- \(T\): Calibration temperature.- \(K\): Number of candidate options.- \(P(c_i \mid x,q)\): Probability assigned to candidate option \(i\).The selected decision is:\[\hat{c} =\underset{c_i \in C}{\operatorname{argmax}}\; P(c_i \mid x,q)\]The model selects the candidate with the highest probability.11 unmodified linesRodinia applies temperature scaling to adjust the confidence distribution of its predictions.\[P_T(c_i \mid x,q) =\frac{\exp(z_i/T)}{\sum_{j=1}^{K}\exp(z_j/T)}\]Where \(T\) is the calibration temperature.- \(T > 1\): Produces a softer probability distribution.- \(T < 1\): Produces a sharper probability distribution.- \(T = 1\): Leaves the original softmax distribution unchanged.Temperature scaling adjusts confidence without changing the ranking of candidate options when the same positive temperature is applied to all logits.3 unmodified linesChoice selects one option from a predefined collection.```json{"type": "choice",17 unmodified linesScore classifies an input into predefined ordinal levels.```json{"type": "score",19 unmodified linesNoul is a binary decision interface for yes/no questions.```json{"type": "noul",123 unmodified linesRodinia can evaluate multiple decision questions against the same financial state.```pythonresult = clf.decide("Company X cuts full-year guidance and CFO resigns.",40 unmodified linesRodinia can evaluate text or JSON-formatted state descriptions.```pythonportfolio_state = {"portfolio_value": 100000,124 unmodified linesNotable observations:- Headline classification achieves 97.71% accuracy.- Synthetic macro classification achieves 100.00% accuracy.- Synthetic portfolio classification achieves 97.34% accuracy.- Financial sentiment classification achieves 76.28%.- FOMC classification achieves 67.86%.35 unmodified linesMeasures the squared error between predicted probabilities and actual outcomes.Lower Brier Score indicates better probabilistic performance.### Negative Log-Likelihood (NLL)179 unmodified lines| Model name | Rodinia || Model repository | NeoSapian/Rodinia || Parameters | 0.8B || Model architecture | Rodinia 0.8B || Fine-tuning | Full fine-tuning || Decision interface | Typed classification || Choice | Supported |56 unmodified linesA compact 0.8B typed financial decision intelligence model.</div>
README.md+48-82