69195f8632
* Add learned AWQ quantization * remove comment * add MOE support * fix gemma * nits * decouple config * fix indices bug * fix moe and upload command * enable clip search for MoEs * Add readme --------- Co-authored-by: Alex Barron <abarron22@apple.com> Co-authored-by: Awni Hannun <awni@apple.com>
23 lines
526 B
Python
23 lines
526 B
Python
# Copyright © 2025 Apple Inc.
|
|
|
|
import argparse
|
|
|
|
from .utils import upload_to_hub
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(
|
|
description="Upload a model to the Hugging Face Hub"
|
|
)
|
|
|
|
parser.add_argument(
|
|
"--path", type=str, default="mlx_model", help="Path to the MLX model."
|
|
)
|
|
parser.add_argument(
|
|
"--upload-repo",
|
|
help="The Hugging Face repo to upload the model to.",
|
|
type=str,
|
|
)
|
|
args = parser.parse_args()
|
|
upload_to_hub(args.path, args.upload_repo)
|