mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 01:12:24 +08:00
Apply formatter
This commit is contained in:
parent
07cf4336b3
commit
fb5e225523
@ -1947,12 +1947,7 @@ class Model(PlamoPreTrainedModel):
|
||||
weights[k] = v.moveaxis(2, 1)
|
||||
return weights
|
||||
|
||||
def make_cache(self) -> PlamoCache:
|
||||
print("make_cache")
|
||||
return "a"
|
||||
|
||||
def __call__(self, inputs: mx.array, cache: PlamoCache | None = None) -> mx.array:
|
||||
print(cache)
|
||||
output = self.forward(
|
||||
input_ids=inputs,
|
||||
use_cache=self.config.use_cache,
|
||||
|
Loading…
Reference in New Issue
Block a user