-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
Doesn't seem to compile, see the CI issues. |
CI still seems to be broken, please ensure that rustfmt and clippy are properly run. |
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") |
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.
Avoid using expect and return a proper error instead using ?
.
Thanks. |
* 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]>
No description provided.