-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add GPU example for GLM-4 #11267
Add GPU example for GLM-4 #11267
Conversation
python/llm/example/GPU/HF-Transformers-AutoModels/Model/glm4/generate.py
Outdated
Show resolved
Hide resolved
python/llm/example/GPU/HF-Transformers-AutoModels/Model/glm4/generate.py
Show resolved
Hide resolved
python/llm/example/GPU/HF-Transformers-AutoModels/Model/glm4/generate.py
Outdated
Show resolved
Hide resolved
## Example 2: Stream Chat using `stream_chat()` API | ||
In the example [streamchat.py](./streamchat.py), we show a basic use case for a GLM-4 model to stream chat, with IPEX-LLM INT4 optimizations. | ||
### 1. Install | ||
#### 1.1 Installation on Linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this environment in Example 2 is duplicated, can we merge this with Example 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is kind of following the template. We do this in case user only refers to example 2, and for the case that environments are different for different examples. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may update the readme of ChatGLM3 series in further PRs
Fix pretrained arguments in generate and streamchat.py
Update install tiktoken required for GLM-4
Description
-Add and update GPU example for GLM-4