WhisperHyperParameters

data class WhisperHyperParameters(val vocabularySize: Int, val audioContext: Int, val audioState: Int, val audioHeads: Int, val audioLayers: Int, val textContext: Int, val textState: Int, val textHeads: Int, val textLayers: Int, val melBands: Int, val fileTypeId: Int, val quantizationVersion: Int)(source)

Hyper-parameters of a whisper.cpp ggml model file (whisper_hparams, in file order).

Constructors

Link copied to clipboard
constructor(vocabularySize: Int, audioContext: Int, audioState: Int, audioHeads: Int, audioLayers: Int, textContext: Int, textState: Int, textHeads: Int, textLayers: Int, melBands: Int, fileTypeId: Int, quantizationVersion: Int)

Properties

Link copied to clipboard

n_audio_ctx: encoder positions (1500 = 30 s of audio).

Link copied to clipboard

n_audio_head: encoder attention heads.

Link copied to clipboard

n_audio_layer: encoder layers (identifies the model size, see WhisperModelHeader.modelType).

Link copied to clipboard

n_audio_state: encoder width.

Link copied to clipboard

ggml_ftype with the quantization version factor removed.

Link copied to clipboard

n_mels: mel frequency bands of the input spectrogram (80, or 128 for large-v3).

Link copied to clipboard

GGML_QNT_VERSION the file was quantized with (0 for unquantized files).

Link copied to clipboard

n_text_ctx: decoder positions.

Link copied to clipboard

n_text_head: decoder attention heads.

Link copied to clipboard

n_text_layer: decoder layers.

Link copied to clipboard

n_text_state: decoder width.

Link copied to clipboard

n_vocab: tokens in the vocabulary.