Skip to content

llama : rename ctx to user_data in progress_callback #7045

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

Merged
merged 2 commits into from
May 3, 2024

Conversation

danbev
Copy link
Collaborator

@danbev danbev commented May 2, 2024

This commit renames the ctx parameter to user_data in the llama_progress_callback typedef.

The motivation for this is that other callbacks use user_data or data, and using ctx in this case might be confusing as it could be confused with llama_context.

This commit renames the `ctx` parameter to `user_data` in the
`llama_progress_callback` typedef.

The motivation for this is that other callbacks use `user_data` or
`data`, and using `ctx` in this case might be confusing as it could be
confused with `llama_context`.

Signed-off-by: Daniel Bevenius <[email protected]>
Fix pointer leaning to the right.

Signed-off-by: Daniel Bevenius <[email protected]>
@slaren slaren merged commit 433def2 into ggml-org:master May 3, 2024
nopperl pushed a commit to nopperl/llama.cpp that referenced this pull request May 5, 2024
* llama : rename ctx to user_data in progress_callback

This commit renames the `ctx` parameter to `user_data` in the
`llama_progress_callback` typedef.

The motivation for this is that other callbacks use `user_data` or
`data`, and using `ctx` in this case might be confusing as it could be
confused with `llama_context`.

---------

Signed-off-by: Daniel Bevenius <[email protected]>
teleprint-me pushed a commit to teleprint-me/llama.cpp that referenced this pull request May 7, 2024
* llama : rename ctx to user_data in progress_callback

This commit renames the `ctx` parameter to `user_data` in the
`llama_progress_callback` typedef.

The motivation for this is that other callbacks use `user_data` or
`data`, and using `ctx` in this case might be confusing as it could be
confused with `llama_context`.

---------

Signed-off-by: Daniel Bevenius <[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