Instructions to use Raychanan/Longformer_Conflict with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Raychanan/Longformer_Conflict with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Raychanan/Longformer_Conflict")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Raychanan/Longformer_Conflict") model = AutoModelForSequenceClassification.from_pretrained("Raychanan/Longformer_Conflict") - Notebooks
- Google Colab
- Kaggle
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
- 16