About Keras
Getting started
Developer guides
Keras 3 API documentation
Models API
Layers API
Callbacks API
Ops API
Optimizers
Metrics
Losses
Data loading
Built-in small datasets
Keras Applications
Mixed precision
Multi-device distribution
RNG API
Utilities
KerasTuner
KerasCV
KerasNLP
Pretrained Models
Models API
Tokenizers
Preprocessing Layers
Modeling Layers
Samplers
Metrics
KerasHub
Keras 2 API documentation
Code examples
KerasTuner: Hyperparameter Tuning
KerasHub: Pretrained Models
KerasCV: Computer Vision Workflows
KerasNLP: Natural Language Workflows
search
►
Keras 3 API documentation
/
KerasNLP
/
Pretrained Models
/ OPT
OPT
OPTTokenizer
OPTTokenizer class
from_preset method
OPTBackbone model
OPTBackbone class
from_preset method
token_embedding property
OPTCausalLM model
OPTCausalLM class
from_preset method
generate method
backbone property
preprocessor property
OPTCausalLMPreprocessor layer
OPTCausalLMPreprocessor class
from_preset method
tokenizer property
OPT
OPTTokenizer
OPTBackbone model
OPTCausalLM model
OPTCausalLMPreprocessor layer