[Bugfix] Fix TP > 1 for new granite (#8544)
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user