---
title: "contextLength"
sidebar_label: "contextLength"
description: "Kotlin binding reference: contextLength."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[TranslateLoadOptions](index.md)/[contextLength](contextLength.md)

# contextLength

[common]\
val [contextLength](contextLength.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = 0

The context window in tokens: the longest sentence in plus its translation out, the decoder's key-value cache sized for it. 0 is auto (the window that fits the device's free memory, bounded by the checkpoint's own); a value names the window, clamped to it.