granite¶
granite
¶
Granite on vLLM (vllm.model_executor.models.granite).
Llama's names and a plain block: it is called with the positions and the residual stream and returns the stream. Granite's four scalars are where they are on transformers, and the values carry the same meanings:
residual_multiplier: the block adds each sublayer's output times it, soattention_outputandmlp_outputare the module's output times the multiplier, the term that reaches the stream. That product is a computed copy (aFlatwith afactor): an assignment or an in-place edit is divided back into the module's output, and a read that edits nothing hands the output back untouched.embedding_multiplier: the model multiplies the embedding module's output by it (in place) before the first block, sotoken_embeddingsis the lookup before the multiplier, as on transformers, andlayers[0].layer_inputthe multiplied stream.attention_multiplieris the attention layer's scale, which the recomputed scores use.logits_scaling: vLLM's logits processor divides by it (itsscale), so the defaultproject_on_vocabthrough that processor already does.