-
Notifications
You must be signed in to change notification settings - Fork 898
Open
Description
from transformers import AutoConfig, AutoModelForSequenceClassification
id2label = {0: "Negative", 1: "Positive"}
label2id = {"Negative": 0, "Positive": 1}
Define checkpoint here to ensure it's in scope
checkpoint = "ArliAI/gpt-oss-20b-Derestricted"
config = AutoConfig.from_pretrained(
checkpoint,
num_labels=2,
id2label=id2label,
label2id=label2id
)
model = AutoModelForSequenceClassification.from_pretrained(
checkpoint,
config=config
)
Metadata
Metadata
Assignees
Labels
No labels