mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Cleanup.
This commit is contained in:
parent
1fde6850bb
commit
1a8a18d541
@ -545,7 +545,7 @@ class MLPSpeculatorModel(torch.nn.Module):
|
||||
# h indicates # of generated tokens
|
||||
state = hidden_states
|
||||
b = state.size(0)
|
||||
ind = input_ids[-b:].unsqueeze(0)
|
||||
ind = input_ids.unsqueeze(0)
|
||||
out = torch.empty(1, b, self.n_predict, device=state.device).int() # b k h
|
||||
# log_probs = torch.zeros(1, b, device=state.device) # b k
|
||||
all_probs = torch.empty(
|
||||
|
Loading…
Reference in New Issue
Block a user