LlamaModelInfo

data class LlamaModelInfo(val description: String, val vocabularySize: Int, val trainContextLength: Int, val embeddingSize: Int, val layerCount: Int, val parameterCount: Long, val sizeBytes: Long, val bosToken: Int, val eosToken: Int, val hasEncoder: Boolean)(source)

Static properties of the loaded model.

Constructors

Link copied to clipboard
constructor(description: String, vocabularySize: Int, trainContextLength: Int, embeddingSize: Int, layerCount: Int, parameterCount: Long, sizeBytes: Long, bosToken: Int, eosToken: Int, hasEncoder: Boolean)

Properties

Link copied to clipboard

beginning-of-sequence token id, -1 if the vocabulary has none.

Link copied to clipboard

llama_model_desc(), e.g. "llama 7B Q4_K - Medium".

Link copied to clipboard

embedding dimension (n_embd): the size of LlamaEngine.embed vectors.

Link copied to clipboard

end-of-sequence token id, -1 if the vocabulary has none.

Link copied to clipboard

true for encoder-decoder models (e.g. T5).

Link copied to clipboard

number of transformer layers (n_layer), the unit of BackendConfig.gpuLayers.

Link copied to clipboard

total number of model parameters.

Link copied to clipboard

total size of the model tensors in bytes.

Link copied to clipboard

context length the model was trained with (n_ctx_train).

Link copied to clipboard

number of tokens in the vocabulary.