Closed
Description
System Info
- cpu arch x86
- cuda version - 12.2
- GPU - a10g
Who can help?
No response
Information
- The official example scripts
- My own modified scripts
Tasks
- An officially supported task in the
examples
folder (such as GLUE/SQuAD, ...) - My own task or dataset (give details below)
Reproduction
Clone the Repo
Install the requirements.txt
Install ammo
run the quantize.py script in the example
python3 ./examples/quantization/quantize.py --model_dir /opt/ml/fine_tuned_model
--dtype float16
--qformat int4_awq
--awq_block_size 128
--output_dir /opt/ml/quantized_int4-awq
--calib_size 32
Expected behavior
Quantization should start
actual behavior
AttributeError: module 'mpmath' has no attribute 'rational',
additional notes
This is occurring because of not locking mpmath's version somewhere in the requirements . They released a latest version today 1.4.0a0 which is causing this issue. Downgrading back manually to 1.3.0 fixes the issue