theeseus-ai/RiskClassifier
Viewer • Updated • 513 • 17 • 1
RiskClassifier is a fine-tuned version of the meta-llama/Llama-3.1-8B-Instruct model, designed to evaluate risk levels across diverse scenarios using structured critical thinking. It is fine-tuned on the theeseus-ai/RiskClassifier dataset, which focuses on assessing and labeling risk scores while maintaining detailed reasoning explanations. This model is optimized for tasks requiring risk classification, fraud detection, and analytical reasoning.
The RiskClassifier dataset provides structured scenarios with:
Example Reformatted Output:
{
"context": "A customer used a credit card in a high-fraud region for a large purchase.",
"query": "What is the risk level of this transaction?",
"answers": ["Low risk", "Moderate risk", "High risk", "Very high risk"],
"risk_score": 85,
"conversations": [
{"role": "system", "content": "You are a helpful AI that assesses risk levels and provides explanations."},
{"role": "user", "content": "Context: A customer used a credit card in a high-fraud region for a large purchase.\nQuestion: What is the risk level of this transaction?\nAnswers: [Low risk, Moderate risk, High risk, Very high risk]"},
{"role": "assistant", "content": "Risk Level: Very high risk (Score: 85)"}
]
}
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "theeseus-ai/RiskClassifier"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
inputs = tokenizer("Context: A large transaction flagged for manual review.\nQuestion: What is the risk level?", return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0]))
@misc{RiskClassifier2024,
title={RiskClassifier: Fine-Tuned LLaMA 3.1 8B Model for Risk Assessment},
author={Theeseus AI},
year={2024},
howpublished={\url{https://huggingface.co/theeseus-ai/RiskClassifier}}
}
For inquiries, please reach out to theeseus@protonmail.com or visit LinkedIn.