mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-29 02:51:27 +08:00
Fix logit indices
This commit is contained in:
parent
cedb67028a
commit
8888d1c474
@ -311,7 +311,7 @@ class Transformer(nn.Module):
|
||||
)
|
||||
kv_caches[i] = layer_cache
|
||||
x = self.final_norm(x)
|
||||
|
||||
x = x.reshape(-1, x.shape[-1])
|
||||
hidden_states = x[logits_indices]
|
||||
logits = self.embedder.decode(hidden_states)
|
||||
return logits, kv_caches
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user