pyvene.models.gpt_oss.modelings_intervenable_gpt_oss

pyvene.models.gpt_oss.modelings_intervenable_gpt_oss#

Each modeling file in this library is a mapping between abstract naming of intervention anchor points and actual model module defined in the huggingface library.

We also want to let the intervention library know how to config the dimensions of intervention based on model config defined in the huggingface library.

Module Attributes

gpt_oss_type_to_dimension_mapping

gpt-oss model with LM head

Functions

create_gpt_oss([name, cache_dir, access_token])

Creates a GPT-OSS model, config, and tokenizer from the given name and revision