mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-19 16:45:45 +00:00
fix logprob, add filtering, temperature annealing, lr descent
This commit is contained in:
@@ -387,7 +387,7 @@ def dist_log_prob(
|
||||
dtype=dtype,
|
||||
)
|
||||
else:
|
||||
log_prob = log_softmax(logits)
|
||||
log_prob = log_softmax(logits, dim=-1)
|
||||
log_prob = log_prob.gather(dim=-1, index=labels.unsqueeze(-1))
|
||||
|
||||
return log_prob
|
||||
|
Reference in New Issue
Block a user