Coder Social home page Coder Social logo

ValueError: The model's max seq len (4096) is larger than the maximum number of tokens that can be stored in KV cache (3792). Try increasing `gpu_memory_utilization` or decreasing `max_model_len` when initializing the engine. about qanything HOT 4 OPEN

Hzzhang-nlp avatar Hzzhang-nlp commented on August 23, 2024
ValueError: The model's max seq len (4096) is larger than the maximum number of tokens that can be stored in KV cache (3792). Try increasing `gpu_memory_utilization` or decreasing `max_model_len` when initializing the engine.

from qanything.

Comments (4)

huweibin1983 avatar huweibin1983 commented on August 23, 2024

bash ./run.sh -c local -i 0 -b vllm -m Qwen-7B-QAnything -t qwen-7b-qanything -p 1 -r 0.85
将后面的0.85改成0.95试一下

from qanything.

Ericocococo avatar Ericocococo commented on August 23, 2024

问题解决了吗?为也遇到类似问题

from qanything.

hgsw avatar hgsw commented on August 23, 2024

4090 24G 显卡 纯python部署 代码分支 qanything-python
搜索 gpu_memory_utilization 字段,
修改文件qanything_kernel/utils/general_utils.py 205行 gpu_memory_utilization = 0.89;
208行7B模型修改也修改0.89;
图片
这里字段gpu_memory_in_GB打印应该为24G

希望能帮助后面的人。

from qanything.

mrhan1993 avatar mrhan1993 commented on August 23, 2024

round(8 / gpu_memory_in_GB, 2) 中的 8 改成 10

from qanything.

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.