Code Monkey home page Code Monkey logo

Comments (8)

monatis avatar monatis commented on May 24, 2024 1

Memory issue will be handled in #8, and I'll have a look at the other crash.

from clip.cpp.

monatis avatar monatis commented on May 24, 2024 1

I had an oh! moment just wen pouring coffee into my cup :D Instead of hardcoding a single memory size or running a warmup just to learn the memory requirement, we can decide based on the number of tensors, which essentially indicates the model size. So it sounds like an overengineering, but it's not --it's the only way of automatically setting the correct memory size without any initial delay or lib user's intervention, or the only way I could come up with.

from clip.cpp.

monatis avatar monatis commented on May 24, 2024 1

Yeah, but I checked out the fixing branch from my fork until then. We can checkout the upstream master again once it's merged.

from clip.cpp.

monatis avatar monatis commented on May 24, 2024

Reproduced the issue. Will patch it after testing with other checkpoints of models.

from clip.cpp.

Green-Sky avatar Green-Sky commented on May 24, 2024

I think this relates to ggerganov/ggml#260

from clip.cpp.

monatis avatar monatis commented on May 24, 2024

Yes, so let's think of it as a workaround until the proper mecanism is implemented in GGML.

I pushed it in #11

I think we can already merge it.

  1. the memory is allocated based on the model variant.
  2. the NaN issue is resolved for larger models with the patch size of 14.

from clip.cpp.

Green-Sky avatar Green-Sky commented on May 24, 2024

nice. yea, it's been an issue ever since i started with llama.cpp 😆

to 2. , you mean one ggerganov/ggml#274 is merged?

from clip.cpp.

monatis avatar monatis commented on May 24, 2024

#11

from clip.cpp.

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.