mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 04:25:06 +08:00
Remove unused code part
This commit is contained in:
parent
66dd97ed3d
commit
103c6616c4
@ -1648,9 +1648,6 @@ class Model(PlamoPreTrainedModel):
|
||||
raise ValueError(
|
||||
f"Unexpected output type for causal language model: {type(output)} != CausalLMOutputWithPast"
|
||||
)
|
||||
if output.past_key_values is not None:
|
||||
# output.past_key_values is actually a PlamoCache object
|
||||
self._cache = output.past_key_values # type: ignore
|
||||
if output.logits is not None:
|
||||
return output.logits
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user