Companion

Constants and factory functions of LlamaContextConfig.

Properties

Link copied to clipboard

All defaults: 4096-token context, 512-token batches, the model's own embedding pooling.

Link copied to clipboard
const val DEFAULT_BATCH_SIZE: Int = 512

Default batchSize in tokens.

Link copied to clipboard
const val DEFAULT_CONTEXT_LENGTH: Int = 4096

Default contextLength in tokens.

Link copied to clipboard
Link copied to clipboard
const val MODEL_CONTEXT_LENGTH: Int = 0

contextLength sentinel: use the model's training context length.