jeanvydes/llm-routing-text-classification
Viewer • Updated • 611k • 122
How to use jeanvydes/jane with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jeanvydes/jane") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jeanvydes/jane")
model = AutoModelForSequenceClassification.from_pretrained("jeanvydes/jane")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jeanvydes/jane")
model = AutoModelForSequenceClassification.from_pretrained("jeanvydes/jane")Finedtuned bert-uncased-model for prompt classification.
Classify Prompts into Tasks/Categories for select an appropiate LLM for it.
Use the code below to get started with the model.
Fined tuned on https://huggingface.co/datasets/jeanvydes/llm-routing-text-classification
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jeanvydes/jane")