# Read a model's frozen parameters

`(frozen-parameters roots)` returns a path-keyed plist of nonbuffer parameters
outside the trainable floating-point tree: parameters declared
`:trainable false`, and integer or boolean parameters. It accepts a model or a
static list/vector/plist of model roots. Paths are ordered lexically, a tied
value appears once, and shapes, kinds and shared values are preserved.

Save the [buffered model](https://sx.041.io/docs/functional-call.md#buffers-and-frozen-values) as
`buffered.sx`, then inspect its frozen scale:

```sh
sexpgpu probe buffered.sx --expr '(getf (frozen-parameters model) :model.scale)' --max-elements 100
```

The result is `4.0`. The tree is `nil` when there are no such parameters.
Combine it with [parameters](https://sx.041.io/docs/parameters.md) and [buffers](https://sx.041.io/docs/buffers.md) using
[tree-merge](https://sx.041.io/docs/tree-merge.md) to bind every value a
[functional-call](https://sx.041.io/docs/functional-call.md) reads. Differentiate only the trainable
parameter tree and capture the other two trees outside that argument.

Like `parameters`, query inside a function or lambda after model paths are
assigned. An early query during top-level loading is `E-FUNC-003`. Reading or
replacing a leaf does not change the model's stored values.

---

SexpGPU documentation. Every page: https://sx.041.io/llms.txt
