mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 12:26:07 +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)
|
weights[k] = v.moveaxis(2, 1)
|
||||||
return weights
|
return weights
|
||||||
|
|
||||||
def make_cache(self) -> PlamoCache:
|
|
||||||
print("make_cache")
|
|
||||||
return "a"
|
|
||||||
|
|
||||||
def __call__(self, inputs: mx.array, cache: PlamoCache | None = None) -> mx.array:
|
def __call__(self, inputs: mx.array, cache: PlamoCache | None = None) -> mx.array:
|
||||||
print(cache)
|
|
||||||
output = self.forward(
|
output = self.forward(
|
||||||
input_ids=inputs,
|
input_ids=inputs,
|
||||||
use_cache=self.config.use_cache,
|
use_cache=self.config.use_cache,
|
||||||
|
Loading…
Reference in New Issue
Block a user