Git Product home page Git Product logo

Comments (9)

Luccadoremi avatar Luccadoremi commented on May 24, 2024

same issue,any solution?

from qwen-vl.

ShuaiBai623 avatar ShuaiBai623 commented on May 24, 2024

如果是多卡测试,可以参考eval_mm/evaluate_caption.py 的实现来进行多卡和组batch执行

from qwen-vl.

Keep-lucky avatar Keep-lucky commented on May 24, 2024

如果是多卡测试,可以参考eval_mm/evaluate_caption.py 的实现来进行多卡和组batch执行

我尝试这样做,但是使用model.generate()的方法, 生成效果远远不如model.chat(),请问model.chat()有批量推理的方法嘛?

from qwen-vl.

atomrun39 avatar atomrun39 commented on May 24, 2024

如果是多卡测试,可以参考eval_mm/evaluate_caption.py 的实现来进行多卡和组batch执行

我尝试这样做,但是使用model.generate()的方法, 生成效果远远不如model.chat(),请问model.chat()有批量推理的方法嘛?

同求,请问该怎么实现啊 @ShuaiBai623

from qwen-vl.

iFe1er avatar iFe1er commented on May 24, 2024

同样的问题 求助 @ShuaiBai623

from qwen-vl.

CrazyBrick avatar CrazyBrick commented on May 24, 2024

同样的问题 求助 @ShuaiBai623

from qwen-vl.

FangGet avatar FangGet commented on May 24, 2024

HF上提供了一个qwen_generation_utils.py,循环调用里面make_context函数,组batch,然后调用generate函数和他提供的decode_token函数就好了

from qwen-vl.

peytoncai avatar peytoncai commented on May 24, 2024

所以结论是qwen vl不支持多卡推理?官方没计划支持吗?

from qwen-vl.

drockser avatar drockser commented on May 24, 2024

HF上提供了一个qwen_generation_utils.py,循环调用里面make_context函数,组batch,然后调用generate函数和他提供的decode_token函数就好了

这个要求 输入的query长度必须一致,如果长度不一致的话,现在好像没有合适的padding方法。

from qwen-vl.

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.