cuda : fix rope pos data
ggml-ci
This commit is contained in:
parent
201cc11afa
commit
f9d2b25261
1 changed files with 2 additions and 2 deletions
|
@ -283,9 +283,9 @@ void ggml_cuda_op_rope(ggml_backend_cuda_context & ctx, ggml_tensor * dst) {
|
||||||
const bool is_neox = mode & 2;
|
const bool is_neox = mode & 2;
|
||||||
const bool is_glm = mode & 4;
|
const bool is_glm = mode & 4;
|
||||||
|
|
||||||
if (is_neox) {
|
pos = (const int32_t *) src1_d;
|
||||||
pos = (const int32_t *) src1_d;
|
|
||||||
|
|
||||||
|
if (is_neox) {
|
||||||
if (src2 != nullptr) {
|
if (src2 != nullptr) {
|
||||||
freq_factors = (const float *) src2->data;
|
freq_factors = (const float *) src2->data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue