mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-14 05:25:20 +08:00
[Bugfix] Fix TP > 1 for new granite (#8544)
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
This commit is contained in:
parent
56c3de018c
commit
98f9713399
@ -428,7 +428,8 @@ class GraniteForCausalLM(nn.Module, SupportsLoRA):
|
|||||||
sampling_metadata: SamplingMetadata) -> Optional[torch.Tensor]:
|
sampling_metadata: SamplingMetadata) -> Optional[torch.Tensor]:
|
||||||
logits = self.logits_processor(self.lm_head, hidden_states,
|
logits = self.logits_processor(self.lm_head, hidden_states,
|
||||||
sampling_metadata)
|
sampling_metadata)
|
||||||
logits /= self.config.logits_scaling
|
if logits is not None:
|
||||||
|
logits /= self.config.logits_scaling
|
||||||
return logits
|
return logits
|
||||||
|
|
||||||
def sample(
|
def sample(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user