-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Why quant QKMatMul as a block while it has no submodule? #26
Comments
Same question during experiment, have you ever fixed it? |
it works fine for me by simply skipping it in the weight reconstruction |
By the way, have any one of you succeed in calibrate a bedroom model? It raises a DefaultCPUAllocator with the given scruip: can't allocate memory: you tried to allocate 300647710720 bytes. Error code 12 (Cannot allocate memory). The memory needed is apparently too much... |
@yuzheyao22 Thanks for your suggestion, I fixed it with the same way and I'm wondering whether there is another method. For your question, I've not calibrated a bedroom model, but will it work if you reduce 'batch_size=opt.cali_batch_size' in kwargs in line 498 and 548 in 'sample_diffusion_ldm.py '? |
Yes, thanks a lot! I did work in my case |
SMVMatMul doesn't have submodules neither. Have you also encountered this problem? |
qkv_matmul is replaced by QuantQKMatMul which inherits BaseQuantBlock, but it doesn't have any submodules.
in block_recon.py:
opt_params
is empty and throws an errorValueError: optimizer got an empty parameter list
The text was updated successfully, but these errors were encountered: