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 files24 unmodified lines252627282930313 unmodified lines353637383940415 unmodified lines474849505152538 unmodified lines62636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241 unmodified line1261271281291301311323 unmodified lines1361371381391401411421431441451461471481491501511523 unmodified lines15615715815916016117 unmodified lines17918018118218318419 unmodified lines20420520620720820912 unmodified lines222223224225226227228104 unmodified lines33333433533633733840 unmodified lines379380381382383384166 unmodified lines551552553554555556557179 unmodified lines73773873974074174274334 unmodified lines77877978078178278378415 unmodified lines80080180280324 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:3 unmodified linesRodinia 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="https://huggingface.co/NeoSapian/Rodinia/resolve/main/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.1 unmodified line1. Receive a financial state or text input.2. Receive one or more typed decision questions.3. Process the state and question using the model.4. Extract logits corresponding to predefined answer tokens.5. Calculate probability distributions.6. Apply temperature calibration.3 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",12 unmodified lines# 3. Training MethodologyRodinia was trained using full fine-tuning of its base model.The training process combines real-world financial classification datasets and synthetic, rule-labelled decision tasks.104 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,166 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 |34 unmodified linesThe model is distributed under the license specified in the repository.The underlying base model and its licensing terms must also be respected.This model is provided for research, experimentation, and decision-support applications.15 unmodified linesA compact 0.8B typed financial decision intelligence model.</div>24 unmodified lines252627282930313 unmodified lines353637383940415 unmodified lines474849505152538 unmodified lines62636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311 unmodified line1331341351361371381393 unmodified lines1431441451461471481491501511521531541551561571581591601613 unmodified lines16516616716816917017117217 unmodified lines19019119219319419519619719 unmodified lines21721821922022122222322412 unmodified lines237238239240241242243104 unmodified lines34834935035135235335435540 unmodified lines396397398399400401402403166 unmodified lines570571572573574575576179 unmodified lines75675775875976076176234 unmodified lines79779879980080180280315 unmodified lines81982082182224 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:3 unmodified linesRodinia 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.The model is a full fine-tuned 0.8B financial decision intelligence 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 || 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 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.## 1.2 Core Architecture FlowRodinia processes financial information through a typed decision architecture. The system converts financial states into predefined classification decisions and associated probability distributions.<p align="center"><imgsrc="https://huggingface.co/NeoSapian/Rodinia/resolve/main/rodinia-architecture.png"alt="Rodinia 0.8B Typed Financial Decision Intelligence Architecture"width="100%"/></p>### Architecture Processing Stages1. **Financial State Input:** Receives financial news, portfolio information, market-state descriptions, or other supported financial text.2. **Typed Decision Questions:** Receives explicitly defined decision questions and their available answer options.3. **Rodinia 0.8B:** Processes the supplied financial state and decision question.4. **Typed Decision Interface:** Determines the appropriate decision type.5. **Decision Branches:** Processes the task through Choice, Score, or Noul.6. **Option-Token Logits:** Extracts logits associated with predefined answer tokens.7. **Probability Calculation:** Applies softmax to produce probability distributions.8. **Temperature Calibration:** Adjusts the confidence distribution using the fitted calibration temperature.9. **Structured Decision Output:** Returns the selected decision and its associated probabilities.---# 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.1 unmodified line1. Receive a financial state or text input.2. Receive one or more typed decision questions.3. Process the state and question using Rodinia.4. Extract logits corresponding to predefined answer tokens.5. Calculate probability distributions.6. Apply temperature calibration.3 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",12 unmodified lines# 3. Training MethodologyRodinia was trained using full fine-tuning.The training process combines real-world financial classification datasets and synthetic, rule-labelled decision tasks.104 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,166 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 || Architecture | Rodinia 0.8B || Fine-tuning | Full fine-tuning || Decision interface | Typed classification || Choice | Supported |34 unmodified linesThe model is distributed under the license specified in the repository.The underlying model and its licensing terms must also be respected.This model is provided for research, experimentation, and decision-support applications.15 unmodified linesA compact 0.8B typed financial decision intelligence model.</div>
README.md+61-42