Downloads · 30 days
32
7% of all-time downloads
brahmairesearch/TFS-ZS-MNLI
TFS-ZS-MNLI is a zero-shot classification model from brahmairesearch. Use it when you need labels you did not train the model on. It is set up for transformers. The card lists the license as apache-2.0.
Model ID: brahmairesearch/TFS-ZS-MNLI Series: Thinking Fast and Slow (TFS) Parameters: ~279M Base Architecture: DeBERTaV2ForSequenceClassification Type: Zero-Shot Classification Predicted Labels: fastthinking, slowthi…
Downloads · 30 days
32
7% of all-time downloads
All-time downloads
463
Public
Parameters
279M
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx1.1 GB · 49%
From the Hugging Face model README
Model ID: brahmairesearch/TFS-ZS-MNLI
Series: Thinking Fast and Slow (TFS)
Parameters: ~279M
Base Architecture: DeBERTaV2ForSequenceClassification
Type: Zero-Shot Classification
Predicted Labels: fast_thinking, slow_thinking, calculative_thinking
TFS-ZS-MNLI is the first zero-shot classification model in BRAHMAI's TFS (Thinking Fast and Slow) series. It brings cognitive routing to the forefront of NLP. Trained using the MNLI framework, this model predicts the kind of reasoning your text demands — be it intuitive, reflective, or computational.
Zero-shot? Hell yes. Instead of creating a dedicated classifier for every downstream task, we let the model generalize. You provide the text and a set of candidate labels, and the model ranks them using NLI-style entailment scoring. This makes it versatile, scalable, and hella efficient for reasoning-based workflows.
Inspired by Daniel Kahneman’s Thinking, Fast and Slow, this model doesn’t stop at just fast and slow cognition. Real-world AI needs a third gear—calculative thinking—to handle technical, logical, and numerical reasoning tasks.
Quick. Casual. Intuitive. Requires little effort or analysis.
Examples:
- "Is mango a fruit?"
- "Name a city in France"
- "What time is it?"
Deep. Reflective. Abstract. Philosophical or ethical in nature.
Examples:
- "How does AI impact mental health?"
- "Is morality objective or subjective?"
Analytical. Numeric. Algorithmic. Needs math, logic, or structured reasoning.
Examples:
- "What’s the output of 3x + 2 when x = 5?"
- "Write a binary search algorithm"
- "What is Big-O of bubble sort?"
This triad gives you a finer control over routing and model behavior in real-world apps.
Because life (and prod deployments) ain’t always supervised.
Zero-shot allows you to plug this model into any app, any domain, and start classifying cognitive styles without task-specific retraining. You define the labels. The model maps them dynamically.
This flexibility is gold for systems where reasoning type dictates downstream actions. Instead of retraining a model every time the use case shifts, just change the labels.
from transformers import pipeline
classifier = pipeline("zero-shot-classification", model="brahmairesearch/TFS-ZS-MNLI")
sequence = "How many R are in STRRRRAWBERRRRRRY?"
candidate_labels = ["fast_thinking", "slow_thinking", "calculative_thinking"]
output = classifier(sequence, candidate_labels, multi_label=False)
print(output)
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
import torch.nn.functional as F
tokenizer = AutoTokenizer.from_pretrained("brahmairesearch/TFS-ZS-MNLI")
model = AutoModelForSequenceClassification.from_pretrained("brahmairesearch/TFS-ZS-MNLI")
text = "Write a Python function to reverse a linked list."
candidate_labels = ["fast_thinking", "slow_thinking", "calculative_thinking"]
results = []
for label in candidate_labels:
inputs = tokenizer(text, label, return_tensors="pt", truncation=True)
with torch.no_grad():
logits = model(**inputs).logits
score = F.softmax(logits, dim=1)[0][2].item() # Entailment score (MNLI)
results.append((label, score))
results = sorted(results, key=lambda x: x[1], reverse=True)
for label, score in results:
print(f"{label}: {score:.4f}")
The model was fine-tuned on English but supports basic generalization to the following languages:
Performance may vary depending on the language complexity and phrasing.
microsoft/deberta-v2-xlarge-mnli@misc{tfs-zs-mnli-2025,
title={TFS-ZS-MNLI: Zero-Shot Thinking Classification},
author={BRAHMAI},
year={2025},
url={https://huggingface.co/brahmairesearch/TFS-ZS-MNLI}
}
BRAHMAI is on a mission to build the most human-aligned AI systems, starting with how machines think. The TFS (Thinking Fast and Slow) series is our deep dive into cognitive modeling — blending psychology, reasoning theory, and machine learning.
Stay tuned for:
Built with soul. Tested with fire. Welcome to the future of cognition.
BRAHMAI RESEARCH — Think Before You Automate.