-
Notifications
You must be signed in to change notification settings - Fork 250
--quantize
is doing something surprising
#788
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
Comments
malfet
added a commit
that referenced
this issue
May 13, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
May 14, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
Jul 17, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
Jul 17, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
Jul 17, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
Jul 17, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
Jul 17, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
malfet
added a commit
that referenced
this issue
Jul 17, 2024
Test plan: ``` % python3 torchchat.py generate llama2 --dtype float16 --quantize '{"linear:int8": {"groupsize": 0}}' --prompt "Once upon a time," --device mps Using device=mps Loading model... Time to load model: 29.03 seconds Quantizing the model with: {'linear:int8': {'groupsize': 0}} Time to quantize model: 14.37 seconds ``` Fixes #788
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's either surprisingly fast or it's not quantizing all the layers, based on almost identical timing it took to quantize stories110M and llama2:
The text was updated successfully, but these errors were encountered: