---
title: "prewarm(model:transcript:)"
framework: foundationmodels
role: symbol
role_heading: Instance Method
path: "foundationmodels/languagemodelexecutor/prewarm(model:transcript:)"
---

# prewarm(model:transcript:)

The system invokes this method in response to prewarming the session and provides an opportunity to load assets into memory or pre-fill caches.

## Declaration

```swift
func prewarm(model: Self.Model, transcript: Transcript)
```

## Discussion

Discussion note: The default implementation is a no-op.

## See Also

### Prewarming the model

- [Model](foundationmodels/languagemodelexecutor/model.md)
