Skip to content

vllm.model_executor.models.transformers.causal

Transformers modeling backend mixin for causal language models.

Classes:

CausalMixin

Bases: VllmModelForTextGeneration, Base

Methods:

  • compute_logits_local –

    Logits for this TP rank's vocab shard, for batch-sharded sampling.

  • load_weights –

    A thin wrapper around Base.load_weights to handle the lm_head bias.

compute_logits_local(hidden_states)

Logits for this TP rank's vocab shard, for batch-sharded sampling.

load_weights(weights)

A thin wrapper around Base.load_weights to handle the lm_head bias.