update
This commit is contained in:
parent
6eaca41018
commit
77cf24c925
@ -612,14 +612,17 @@ class MiniMindLM(PreTrainedModel):
|
||||
logits=logits,
|
||||
past_key_values=past_kvs,
|
||||
)
|
||||
output.hidden_states = h
|
||||
|
||||
output.aux_loss = aux_loss
|
||||
|
||||
# 尝试添加其他属性(如果支持的话)
|
||||
try:
|
||||
output.hidden_states = h
|
||||
# try:
|
||||
# output.hidden_states = h
|
||||
|
||||
output.aux_loss = aux_loss
|
||||
except:
|
||||
pass
|
||||
# output.aux_loss = aux_loss
|
||||
# except:
|
||||
# pass
|
||||
|
||||
return output
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user