mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
fix bad convert parameter (#178)
This commit is contained in:
parent
f4709cb807
commit
092e87211e
@ -15,7 +15,7 @@ from mixtral import Mixtral, ModelArgs
|
|||||||
from mlx.utils import tree_flatten, tree_map, tree_unflatten
|
from mlx.utils import tree_flatten, tree_map, tree_unflatten
|
||||||
|
|
||||||
|
|
||||||
def convert(weights, config):
|
def convert(tf, config):
|
||||||
def convert_single(k, v):
|
def convert_single(k, v):
|
||||||
v = v.to(torch.float16).numpy()
|
v = v.to(torch.float16).numpy()
|
||||||
if "block_sparse_moe" not in k:
|
if "block_sparse_moe" not in k:
|
||||||
|
Loading…
Reference in New Issue
Block a user