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

ggml_graph_compute_helper函数的作用? #142

Closed
wildkid1024 opened this issue Oct 13, 2023 · 3 comments
Closed

ggml_graph_compute_helper函数的作用? #142

wildkid1024 opened this issue Oct 13, 2023 · 3 comments

Comments

@wildkid1024
Copy link

当我在扩展新的模型时,发现在cuda版本下,chatglm.cpp的#463行ggml_graph_compute_helper(ctx_.work_buffer, &ctx_.gf, n_threads);函数会导致以下cuda bug:
CUDA error 9 at /home/pan/Code/chatglm.cpp/third_party/ggml/src/ggml-cuda.cu:6047: invalid configuration argument

但是在纯cpu环境下运行时无问题,去掉该函数也没问题,所以对该函数的作用很疑惑,望能够解答.

@gambler119
Copy link

你好,我也碰到了这个问题,请问你解决了吗

@wildkid1024
Copy link
Author

ggml会创建一个graph,最后是实际计算的那个函数。

检查是不是attention写的不对,一般是cuda内存的问题。这个问题我也没完全解决。

@wac81
Copy link

wac81 commented Mar 10, 2024

my fault

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

No branches or pull requests

3 participants