mirror of
https://github.com/karpathy/nanochat.git
synced 2026-02-06 02:29:53 +00:00
Add comment with logits shape
This commit is contained in:
parent
b7df9f8eaa
commit
3c4be194e9
|
|
@ -359,7 +359,7 @@ class Engine:
|
|||
)
|
||||
else:
|
||||
logits = self.model.forward(ids, kv_cache=kv_cache_decode)
|
||||
logits = logits[:, -1, :]
|
||||
logits = logits[:, -1, :] # (B, vocab_size)
|
||||
|
||||
def generate_batch(self, tokens, num_samples=1, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user