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

Smoothquant for Phi2 and Qwen2 #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ponytaill
Copy link

Added Smoothquant support for Phi2 and Qwen2 models, and added ppl_eval.py to test results more easily (there were a few issues here that prevented me from using eval_model.py in examples)

ponytaill added 2 commits May 18, 2024 17:08
…al.py to test results more easily (there were a few issues here that prevented me from using eval_model.py in examples)
…al.py to test results more easily (there were a few issues here that prevented me from using eval_model.py in examples)
@AniZpZ AniZpZ self-assigned this Jun 14, 2024
@AniZpZ
Copy link
Owner

AniZpZ commented Jun 14, 2024

Hi , thank you for your contribution. I will take a review.

@AniZpZ AniZpZ self-requested a review June 14, 2024 03:41

model = Int8Qwen2ForCausalLM.from_pretrained(args.model_path, quant_config,
device_map="sequential")
# model = Int8PhiForCausalLM.from_pretrained(args.model_path, quant_config,
Copy link
Owner

Choose a reason for hiding this comment

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

counld you please add a arg to choose model arch?

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.

2 participants