fix bad convert parameter (#178)

This commit is contained in:
Daniel Strobusch
2023-12-23 16:09:49 +01:00
committed by GitHub
parent f4709cb807
commit 092e87211e

View File

@@ -15,7 +15,7 @@ from mixtral import Mixtral, ModelArgs
from mlx.utils import tree_flatten, tree_map, tree_unflatten
def convert(weights, config):
def convert(tf, config):
def convert_single(k, v):
v = v.to(torch.float16).numpy()
if "block_sparse_moe" not in k: