Skip to content

llama : rename ctx to user_data in progress_callback#7045

Merged
slaren merged 2 commits intoggml-org:masterfrom
danbev:llama_progress_callback_typedef
May 3, 2024
Merged

llama : rename ctx to user_data in progress_callback#7045
slaren merged 2 commits intoggml-org:masterfrom
danbev:llama_progress_callback_typedef

Conversation

@danbev
Copy link
Copy Markdown
Member

@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 <daniel.bevenius@gmail.com>
Comment thread llama.h Outdated
Fix pointer leaning to the right.

Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
@slaren slaren merged commit 433def2 into ggml-org:master May 3, 2024
@danbev danbev deleted the llama_progress_callback_typedef branch August 13, 2025 09:16
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* 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 <daniel.bevenius@gmail.com>
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* 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 <daniel.bevenius@gmail.com>
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