Contents

SystemLanguageModel.Adapter

Specializes the system language model for custom use cases.

Declaration

struct Adapter

Mentioned in

Overview

Use the base system model for most prompt engineering, guided generation, and tools. If you need to specialize the model, train a custom Adapter to alter the system model weights and optimize it for your custom task. Use custom adapters only if you’re comfortable training foundation models in Python.

For more on custom adapters, see Get started with Foundation Models adapter training.

Topics

Creating an adapter

Prepare the adapter

Getting the metadata

Removing obsolete adapters

Checking compatibility

Getting the asset error

See Also

Loading the model with an adapter