About Keras
Getting started
Developer guides
Code examples
Keras 3 API documentation
Keras 2 API documentation
KerasTuner: Hyperparam Tuning
KerasHub: Pretrained Models
Getting started
Developer guides
API documentation
Modeling API
Model Architectures
Tokenizers
Preprocessing Layers
Modeling Layers
Samplers
Metrics
Pretrained models list
search
►
KerasHub: Pretrained Models
/
API documentation
/
Model Architectures
/ GPT2
GPT2
GPT2Tokenizer
GPT2Tokenizer class
from_preset method
GPT2Backbone model
GPT2Backbone class
from_preset method
token_embedding property
GPT2CausalLM model
GPT2CausalLM class
from_preset method
generate method
backbone property
preprocessor property
GPT2CausalLMPreprocessor layer
GPT2CausalLMPreprocessor class
from_preset method
generate_preprocess method
generate_postprocess method
tokenizer property
GPT2
GPT2Tokenizer
GPT2Backbone model
GPT2CausalLM model
GPT2CausalLMPreprocessor layer