mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-23 22:19:47 +00:00
rm torch.cuda.synchronize
This commit is contained in:
parent
fab294c7f4
commit
10e3c9f923
@ -198,8 +198,6 @@ class RequestHandler:
|
|||||||
if type in config_dict and config_dict[type] is not None:
|
if type in config_dict and config_dict[type] is not None:
|
||||||
logits = logit_processor(type, logits, config_dict[type])
|
logits = logit_processor(type, logits, config_dict[type])
|
||||||
|
|
||||||
torch.cuda.synchronize()
|
|
||||||
|
|
||||||
# calculate probs
|
# calculate probs
|
||||||
probs = torch.softmax(logits, dim=-1, dtype=torch.float)
|
probs = torch.softmax(logits, dim=-1, dtype=torch.float)
|
||||||
logprobs = torch.log_softmax(logits, dim=-1, dtype=torch.float)
|
logprobs = torch.log_softmax(logits, dim=-1, dtype=torch.float)
|
||||||
|
Loading…
Reference in New Issue
Block a user