Coder Social home page Coder Social logo

Comments (12)

peterchen-intel avatar peterchen-intel commented on July 17, 2024 1

It may due to benchmark.py force to output "--infer_count" tokens for performance consistency (with fixed output size instead of stop at end_token). Will add an option to stop_ending_token.

from openvino.genai.

avinashbhat09 avatar avinashbhat09 commented on July 17, 2024

Tried the same OV converted model using chatglm-openvino (https://github.com/OpenVINO-dev-contest/chatglm3.openvino) and it works fine. We dont see any repetitive words.

image

With this we can conclude below:

  1. No issue running inference on CPU or GPU

  2. Not a model issue

  3. No quantization issue

This looks more of gen-ai interfacing with the model.

from openvino.genai.

avinashbhat09 avatar avinashbhat09 commented on July 17, 2024

Can we add chatbot kind of implementation same as chatglm-openvino into the gen-ai to support chatglm?

from openvino.genai.

avinashbhat09 avatar avinashbhat09 commented on July 17, 2024

Hi, any update on this? @Wovchena

from openvino.genai.

Wovchena avatar Wovchena commented on July 17, 2024

Hi. I don't have any update. @peterchen-intel is the correct person to discuss llm_bench related questions with. As for the chatbot kind of implementation, the sample is here https://github.com/openvinotoolkit/openvino.genai/tree/master/samples/python/chat_sample.

from openvino.genai.

avinashbhat09 avatar avinashbhat09 commented on July 17, 2024

Thanks @Wovchena . Unfortunately, the chat sample does not work for me.
image

from openvino.genai.

avinashbhat09 avatar avinashbhat09 commented on July 17, 2024

Hi. I don't have any update. @peterchen-intel is the correct person to discuss llm_bench related questions with. As for the chatbot kind of implementation, the sample is here https://github.com/openvinotoolkit/openvino.genai/tree/master/samples/python/chat_sample.

@peterchen-intel : Any input from your side?

from openvino.genai.

Wovchena avatar Wovchena commented on July 17, 2024

Your model is stateless. You need a stateful one. To export such a model, ensure you don't have --disable-stateful while running optimum-cli export openvino. Alternatively, if you use python ./llm_bench/python/convert.py, you need to specify --stateful (and not --disable-stateful).

from openvino.genai.

avinashbhat09 avatar avinashbhat09 commented on July 17, 2024

Thanks for your input @Wovchena . I converted using this command and it worked.
optimum-cli export openvino --trust-remote-code --model THUDM/chatglm3-6b chatglm3-6b_stateful --task question-answering

image

So this confirms that we dont have issues with model or quantization. Coming back to original bug- when we use benchmark.py why do we see the answers repeating? Anything can be done to fix that? For our validation get the metrices printed for each response is important (like token/sec, first token latency etc). Which is currently not available in chat_sample.

from openvino.genai.

peterchen-intel avatar peterchen-intel commented on July 17, 2024

CVS-146307

from openvino.genai.

peterchen-intel avatar peterchen-intel commented on July 17, 2024

#606

from openvino.genai.

peterchen-intel avatar peterchen-intel commented on July 17, 2024

@avinashbhat09 Can you try HEAD of openvino.genai master branch with option --end_token_stopping?

from openvino.genai.

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.