pyvene.models.gpt2.modelings_intervenable_gpt2.create_gpt2_classifier

pyvene.models.gpt2.modelings_intervenable_gpt2.create_gpt2_classifier#

create_gpt2_classifier(name='gpt2', config=None, cache_dir=None)[source]#

Creates a GPT2ForSequenceClassification, config, and tokenizer from the given name and revision