GithubHelp home page GithubHelp logo

Comments (4)

tianleiwu avatar tianleiwu commented on June 4, 2024 1

build wheel use CPU RAM. The error looks like during testing. You can skip tests if you follow the step I shared in the above link.

export CUDACXX=/usr/local/cuda-12.2/bin/nvcc
sh build.sh --config Release  --build_shared_lib --parallel --use_cuda --cuda_version 12.2 \
            --cuda_home /usr/local/cuda-12.2 --cudnn_home /usr/lib/x86_64-linux-gnu/ --build_wheel --skip_tests \
            --cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=OFF \
            --allow_running_as_root
python3 -m pip install build/Linux/Release/dist/onnxruntime_gpu-*.whl --force-reinstall

from onnxruntime.

tianleiwu avatar tianleiwu commented on June 4, 2024

You can git checkout rel-1.17.3 after git clone https://github.com/microsoft/onnxruntime.git to get the demo script for 1.17.3.

To run the demo in main branch, please follow the document to run in in docker (require the step of build onnxruntime from source):
https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/python/tools/transformers/models/stable_diffusion/README.md#run-demo-with-docker
Or wait for 1.18 release that will be ready in about two weeks.

from onnxruntime.

nguyenthekhoig7 avatar nguyenthekhoig7 commented on June 4, 2024

Hi, thanks for your response.

I tried building from source by first cloning the repo, there was the GpuBindingManager in the code after cloning.
Then I ran

./build.sh --build-wheel

following the installing instruction, but encountered

RuntimeError: CUDA error: out of memory

Can I build wheel using my CPU RAM instead, and how can I do that? If further information is needed, please tell me.
Again, I appreciate your promptly support

from onnxruntime.

nguyenthekhoig7 avatar nguyenthekhoig7 commented on June 4, 2024

It worked(after I change 12.2 to my cuda version, and set some lib path in the enviromnent).
Thank you very much @tianleiwu. Hope you have a good day!

from onnxruntime.

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.