This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from mlx.utils import tree_flatten, tree_map | |
| from mlx_lm import load, generate | |
| import mlx.core as mx | |
| from mlx_lm.utils import ( | |
| dequantize_model, | |
| fetch_from_hub, | |
| get_model_path, | |
| quantize_model, | |
| save_config, | |
| save_weights, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import copy | |
| import glob | |
| import shutil | |
| import time | |
| import types | |
| from pathlib import Path | |
| import mlx.core as mx | |
| import mlx.nn as nn |
OlderNewer