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

Add GPU example for GLM-4 #11267

Merged
merged 5 commits into from
Jun 12, 2024
Merged

Add GPU example for GLM-4 #11267

merged 5 commits into from
Jun 12, 2024

Conversation

lzivan
Copy link
Contributor

@lzivan lzivan commented Jun 7, 2024

Description

-Add and update GPU example for GLM-4

## 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
Copy link
Contributor

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?

Copy link
Contributor

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. :)

Copy link
Contributor

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

lzivan added 2 commits June 11, 2024 14:12
Fix pretrained arguments in generate and streamchat.py
Update install tiktoken required for GLM-4
@Oscilloscope98 Oscilloscope98 merged commit 40fc870 into intel:main Jun 12, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants