saveState method

List<Float32List> saveState()

A copy of the conv histories: with the KV cache rows before the current position, which later tokens never overwrite, they are all the state a position carries.

Implementation

List<Float32List> saveState() => [
  for (final conv in _conv)
    if (conv != null) Float32List.fromList(conv.history),
];