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