About Keras
Getting started
Developer guides
Keras 3 API documentation
Keras 2 API documentation
Models API
The Model class
The Sequential class
Model training APIs
Saving & serialization
Layers API
Callbacks API
Optimizers
Metrics
Losses
Data loading
Built-in small datasets
Keras Applications
Mixed precision
Utilities
Code examples
KerasTuner: Hyperparameter Tuning
KerasHub: Pretrained Models
KerasCV: Computer Vision Workflows
KerasNLP: Natural Language Workflows
search
►
Keras 2 API documentation
/
Models API
/ Saving & serialization
Saving & serialization
Whole model saving & loading
save method
save_model function
load_model function
Weights-only saving & loading
get_weights method
set_weights method
save_weights method
load_weights method
Model config serialization
get_config method
from_config method
clone_model function
Model export for inference
ExportArchive class
Serialization utilities
serialize_keras_object function
deserialize_keras_object function
custom_object_scope class
get_custom_objects function
register_keras_serializable function
Saving & serialization
Whole model saving & loading
Weights-only saving & loading
Model config serialization
Model export for inference
Serialization utilities