Downloads · 30 days
14
0% of all-time downloads
brahmairesearch/TFS-v0.2
TFS-v0.2 is a machine learning model from brahmairesearch. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
TFS is a classification model trained on over 5 million entries to classify the given sequences into: - <fastthinking> - <slowthinking> - <calculativethinking>
Downloads · 30 days
14
0% of all-time downloads
All-time downloads
7.5K
Public
Parameters
184M
2.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx1.8 GB · 71%
From the Hugging Face model README
TFS is a classification model trained on over 5 million entries to classify the given sequences into:
from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch
model_id = "brahmairesearch/TFS-v0.2"
model = AutoModelForSequenceClassification.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)
def classify(sequence):
inputs = tokenizer(sequence, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
predicted_class_id = logits.argmax().item()
print(model.config.id2label[predicted_class_id])
classify("How many R are there in STRAWBERRY?")
# <calculative_thinking>