Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to push model to huggingface ? #646

Open
new-Sunset-shimmer opened this issue Nov 16, 2024 · 2 comments
Open

how to push model to huggingface ? #646

new-Sunset-shimmer opened this issue Nov 16, 2024 · 2 comments

Comments

@new-Sunset-shimmer
Copy link

No description provided.

@ciCciC
Copy link

ciCciC commented Nov 18, 2024

Assuming that there is a quantized model, an installation of the pkg named huggingface_hub and an existing HF repository with the repo_type model, you can use the following code chunk ->

quant_path = <path of the directory which contains your quantized model>

repo_id = <your HF repo id> e.g. "owner/my-quantized-model-awq"

api = HfApi(token=<your HF token>)

api.upload_folder(
    folder_path=quant_path,
    repo_id=repo_id,
    repo_type="model",
)

@Zeju1997
Copy link

@casper-hansen Can you please elaborate on this? Is this how you did it to push models to huggingface? Best,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants