Improve the coverage of the openai api server test (#878)
This commit is contained in:
@@ -209,7 +209,7 @@ class LogitsProcessor(nn.Module):
|
||||
all_logits = all_logits[:, : self.config.vocab_size].float()
|
||||
|
||||
all_logprobs = all_logits
|
||||
del all_logits
|
||||
del all_logits, hidden_states
|
||||
all_logprobs[:] = torch.nn.functional.log_softmax(all_logprobs, dim=-1)
|
||||
|
||||
# Get the logprob of top-k tokens
|
||||
|
||||
Reference in New Issue
Block a user