Git Product home page Git Product logo

Comments (12)

yhhu99 avatar yhhu99 commented on June 25, 2024

I also meet this problem when I transfer a CUDA tensor by float_quantize yesterday, and cannot figure out what made this mistake.

from qpytorch.

Tiiiger avatar Tiiiger commented on June 25, 2024

hi @ASHWIN2605 and @yhhu99,

sorry to hear this and thank you for letting me know. Would you kindly help try out v0.2.0 to see if you encounter the same issue?

I will look into it in the meantime.

from qpytorch.

yhhu99 avatar yhhu99 commented on June 25, 2024

hi @ASHWIN2605 and @yhhu99,

sorry to hear this and thank you for letting me know. Would you kindly help try out v0.2.0 to see if you encounter the same issue?

I will look into it in the meantime.

thanks for your reply, but I wonder know that how can I change the version?

from qpytorch.

Tiiiger avatar Tiiiger commented on June 25, 2024

can you try pip install qtorch==0.2.0? thank you!

from qpytorch.

yhhu99 avatar yhhu99 commented on June 25, 2024

can you try pip install qtorch==0.2.0? thank you!

I'm sorry that it doesn't work.
image
image

from qpytorch.

yhhu99 avatar yhhu99 commented on June 25, 2024

can you try pip install qtorch==0.2.0? thank you!
But when I test this problem in another script, it works well:
image

from qpytorch.

Tiiiger avatar Tiiiger commented on June 25, 2024

hi @ASHWIN2605 @yhhu99

please downgrade to v2.0.0 for now. I will look into fixing this.

from qpytorch.

Tiiiger avatar Tiiiger commented on June 25, 2024

@ASHWIN2605 @yhhu99

unfortunately I cannot replicate the segmentation fault you are seeing. I am on torch v1.8.0 and CUDA11.1.

Not sure if this is due to the difference in our CUDA versions. Can you provide me a minimal example to replicate the issue you are seeing?

Also, maybe try removing the cached compilation and recompile it. For example try rm -rf /tmp/torch_extensions/quant_cuda /tmp/torch_extensions/quant_cpu (but note that your torch_extensions might live somewhere else).

from qpytorch.

yhhu99 avatar yhhu99 commented on June 25, 2024

@ASHWIN2605 @yhhu99

unfortunately I cannot replicate the segmentation fault you are seeing. I am on torch v1.8.0 and CUDA11.1.

Not sure if this is due to the difference in our CUDA versions. Can you provide me a minimal example to replicate the issue you are seeing?

Also, maybe try removing the cached compilation and recompile it. For example try rm -rf /tmp/torch_extensions/quant_cuda /tmp/torch_extensions/quant_cpu (but note that your torch_extensions might live somewhere else).

Thanks for your reply. I had tried the command 'rm -rf ...quant_cuda & quant_cpu', but it didn't work. I make a small example to show the question as below:
image

And after I run the script on gpu, the 'segmetation fault (core dump)' would occur.

from qpytorch.

ASHWIN2605 avatar ASHWIN2605 commented on June 25, 2024

Hi,

It was my bad.I didn't update the CUDA version of Pytorch installation to latest 11.0.I had only my NVCC updated in my linux machine to version 11.0 earlier and now after updating the Pytorch CUDA veraion to 11.0,it is working fine without the segmentation fault error.Thank you for the trials you made. @yhhu99 I hope this will help you as well.

from qpytorch.

yhhu99 avatar yhhu99 commented on June 25, 2024

Hi,

It was my bad.I didn't update the CUDA version of Pytorch installation to latest 11.0.I had only my NVCC updated in my linux machine to version 11.0 earlier and now after updating the Pytorch CUDA veraion to 11.0,it is working fine without the segmentation fault error.Thank you for the trials you made. @yhhu99 I hope this will help you as well.

Thank you! I think I know where the problem is.

from qpytorch.

Tiiiger avatar Tiiiger commented on June 25, 2024

Closing because this seems to be resolved.

from qpytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.