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 models support and example for THUDM/glm-4 #2362

Merged
merged 13 commits into from
Aug 5, 2024

Conversation

donjuanplatinum
Copy link
Contributor

No description provided.

@LaurentMazare
Copy link
Collaborator

Doesn't seem to compile, see the CI issues.

@LaurentMazare
Copy link
Collaborator

CI still seems to be broken, please ensure that rustfmt and clippy are properly run.
Also could you detail the testing that has been done to check that the model generations are in line with the python version?

let inv_freq = Tensor::from_vec(inv_freq, (1, inv_freq_len), dev)?.to_dtype(dtype)?;
let t = Tensor::arange(0u32, cfg.seq_length as u32, dev)?
.to_dtype(dtype)
.expect("unalbe to dytpe in Rotray Embedding new")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using expect and return a proper error instead using ?.

@LaurentMazare LaurentMazare merged commit 500c9f2 into huggingface:main Aug 5, 2024
10 checks passed
@LaurentMazare
Copy link
Collaborator

Thanks.

@donjuanplatinum donjuanplatinum deleted the dev branch August 5, 2024 15:57
EricLBuehler pushed a commit to EricLBuehler/candle that referenced this pull request Aug 14, 2024
* add models support and example for THUDM/glm-4

* fix the ci report

* fmt

* fix

* Update README.org

* Update README.org

* fmt

* Update README.org

* README.md add codegeex4

* README.md add glm4

* Typo.

* change expect into ?

---------

Co-authored-by: Laurent Mazare <[email protected]>
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.

2 participants