Transformers How to use YakovElm/Apache_5_GPT2_Microsoft_Under_Sampling with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="YakovElm/Apache_5_GPT2_Microsoft_Under_Sampling") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("YakovElm/Apache_5_GPT2_Microsoft_Under_Sampling")
model = AutoModelForSequenceClassification.from_pretrained("YakovElm/Apache_5_GPT2_Microsoft_Under_Sampling")