Code Monkey home page Code Monkey logo

Comments (5)

aarnphm avatar aarnphm commented on May 29, 2024

did you mount the GPU to the container?

from openllm.

cay89 avatar cay89 commented on May 29, 2024

Ok, when I'm runned it from powershell with --gpus all property (instead of GUI), this error was gone, but heres another:

ValueError: No available memory for the cache blocks. Try increasing gpu_memory_utilization when initializing the engine.

Is it possible that this model will not work with this VGA?

from openllm.

aarnphm avatar aarnphm commented on May 29, 2024

You can set --gpu-memory-utlization to 0.5

from openllm.

cay89 avatar cay89 commented on May 29, 2024

I'm trying, with this:

ENTRYPOINT openllm start HuggingFaceH4/zephyr-7b-alpha --backend vllm --gpu-memory-utilization 0.5

But it cause the following error:

openllm_core.exceptions.OpenLLMException: Failed to initialise vLLMEngine due to the following error:
CUDA error: out of memory
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.

Then:

File "/usr/local/lib/python3.10/dist-packages/vllm/engine/llm_engine.py", line 109, in init
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 112.00 MiB. GPU 0 has a total capacty of 8.00 GiB of which 0 bytes is free. Process 481 has 17179869184.00 GiB memory in use. Of the allocated memory 12.74 GiB is allocated by PyTorch, and 13.52 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

from openllm.

cay89 avatar cay89 commented on May 29, 2024

I've connected another RTX 3070 to my PC, and the memory issue has been resolved. However, a new problem has emerged, for which I am opening a new issue. I am closing this one since the original problem has been solved.

from openllm.

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.