Files
Alex Barron 69195f8632 Support AWQ Quantization (#88)
* 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>
2025-04-22 15:43:12 -07:00

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)