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

Add example for base model dequantization/upscaling #3924

Merged
merged 6 commits into from
Feb 6, 2024
Merged

Conversation

arnavgarg1
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Feb 6, 2024

Unit Test Results

  4 files  ±0    4 suites  ±0   9m 33s ⏱️ - 2m 36s
12 tests ±0    9 ✔️ ±0    3 💤 ±0  0 ±0 
40 runs  ±0  28 ✔️ ±0  12 💤 ±0  0 ±0 

Results for commit d87136c. ± Comparison against base commit 6723a30.

♻️ This comment has been updated with latest results.

base_model_name = "microsoft/phi-2"
dequantized_path = "microsoft-phi-2-dequantized"
save_path = "/home/ray/" + dequantized_path
hfhub_repo_id = "arnavgrg/" + dequantized_path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nonblocking:
Maybe we should use a placeholder instead of "arnavgrg/". Maybe something like:
{HF_USER}/ + dequantized_path`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed! Will update

from ludwig.api import LudwigModel
from ludwig.utils.hf_utils import upload_folder_to_hfhub

hf_username = whoami().get("name")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know that this was a thing. If this works like it's supposed to, then this is sick!

@arnavgarg1 arnavgarg1 merged commit 51f38c5 into master Feb 6, 2024
14 of 17 checks passed
@arnavgarg1 arnavgarg1 deleted the quant_example branch February 6, 2024 19:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants