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_weightsto handle the lm_head bias.
Source code in vllm/model_executor/models/transformers/causal.py
compute_logits_local(hidden_states)
¶
Logits for this TP rank's vocab shard, for batch-sharded sampling.
Source code in vllm/model_executor/models/transformers/causal.py
load_weights(weights)
¶
A thin wrapper around Base.load_weights to handle the lm_head bias.