Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local code generate slowly #2034

Open
2 tasks done
yx1405585468 opened this issue Sep 20, 2024 · 0 comments
Open
2 tasks done

local code generate slowly #2034

yx1405585468 opened this issue Sep 20, 2024 · 0 comments
Labels
enhancement New feature or request Waiting for reply

Comments

@yx1405585468
Copy link

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

Hi, I deployed dbgpt on my own computer and loaded a local model Qwen2 0.5B, it reasoned very fast in dbgpt, I asked questions and it answered them very fast, however I'm in pycharm, and I'm getting it to work by writing code like.

from transformers import pipeline

messages = [
{“role”: “user”, “content”: “Who are you?”}, ]
]
pipe = pipeline(“text-generation”, model=“Qwen/Qwen2-0.5B”)
pipe(messages)

It's reasoning very slowly, although I'm sure cuda is being used to speed it up.
I don't understand why this is the case, and I'd like to achieve very fast reasoning locally as well

Use case

No response

Related issues

No response

Feature Priority

None

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant