How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="Raychanan/Longformer_Conflict")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("Raychanan/Longformer_Conflict")
model = AutoModelForSequenceClassification.from_pretrained("Raychanan/Longformer_Conflict", device_map="auto")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

training_args = TrainingArguments( output_dir="./results", learning_rate=5e-5, per_device_train_batch_size=1, per_device_eval_batch_size=1, num_train_epochs=5, weight_decay=0.01, evaluation_strategy="epoch", push_to_hub=True )

Downloads last month
6
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support