Giter Club home page Giter Club logo

Comments (3)

pseudotensor avatar pseudotensor commented on June 12, 2024

Hi, can you give your exact run line? For CPU it can be slow when inputting large context,so you can reduce top_k_docs etc.

https://github.com/h2oai/h2ogpt/blob/832ad2d4a6b1431105785045a6b218a8451591f9/docs/FAQ.md#controlling-quality-and-speed-of-parsing

from h2ogpt.

InesBenAmor99 avatar InesBenAmor99 commented on June 12, 2024

Hello , thank you for answering ! this is my exact run line : python generate.py --base_model=TheBloke/Mistral-7B-Instruct-v0.2-GGUF --prompt_type=mistral --max_seq_len=4096 (note that it's too slow even if I don't introduce context (source = llm), simple requests like hello or hi messages for example )

from h2ogpt.

pseudotensor avatar pseudotensor commented on June 12, 2024

Hi, same command line for me yields very fast results on CPU, but I added the top_k_docs limit. I also added the other stuff mentioned, but that wouldn't matter of just LLM chat mode.

(h2ogpt) jon@pseudotensor:~/h2ogpt$ CUDA_VISIBLE_DEVICES= python generate.py --base_model=TheBloke/Mistral-7B-Instruct-v0.2-GGUF --prompt_type=mistral --max_seq_len=4096 --top_k_docs=3 --max_input_tokens=4096

Then I go to http://127.0.0.1:7860

I see about 2-3 tokens per second, maybe 2 words per second, on my CPU system with i9.

from h2ogpt.

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.