GithubHelp home page GithubHelp logo

Comments (5)

JohnGalt1717 avatar JohnGalt1717 commented on September 26, 2024 1

I believe it is.

from llamasharp.

AsakusaRinne avatar AsakusaRinne commented on September 26, 2024

Are you trying to offload layers to gpu as much as possible? Thus you want to catch the error if the current configuration is out-of-memory?

Please let me know if I misunderstand your condition. :)

from llamasharp.

JohnGalt1717 avatar JohnGalt1717 commented on September 26, 2024

So I got a little more of an error. It appears it's llama.cpp code that is crashing, but instead of being handled, it takes down any process that LlamaSharp is hosted in even if there is a try/catch around it.

CUDA error 2 at D:\a\LLamaSharp\LLamaSharp\ggml-cuda.cu:6016: out of memory

In that error, it should have fallen back to CPU (which had tons of ram) but didn't instead it just crashed to the desktop.

from llamasharp.

martindevans avatar martindevans commented on September 26, 2024

It looks like this is broadly the same issue as #343, with llama.cpp using assert to terminate the process instead of some kind of recoverable error handling (error return codes, exceptions etc)? If so I'll close this issue and we'll track it over in #343.

from llamasharp.

iulix21 avatar iulix21 commented on September 26, 2024

I have thos error: GGML_ASSERT: /tmp/tmp25xydfjh/llama_cpp_python-0.2.53/vendor/llama.cpp/ggml-cuda.cu:8620: ptr == (void *) (g_cuda_pool_addr[device] + g_cuda_pool_used[device])

from llamasharp.

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.