Views
No views yet
roberta-base (MIT)1from transformers import AutoModelForSequenceClassification, AutoTokenizer
2
3repo = "hayleyson/laser-edit-toxicity-energy"
4model = AutoModelForSequenceClassification.from_pretrained(repo)
5tokenizer = AutoTokenizer.from_pretrained(repo)model.safetensors, config.json — Hugging Face RobertaForSequenceClassification weightsvocab.json, merges.txt, …)classification_threshold.json — optional decision threshold file determined by optimizing a classification performance metric (e.g., precision, F1, recall) on the validation dataset; not used in the LaSEr-Edit paper