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

common : Changed tuple to struct (TODO fix) #8823

Merged
merged 3 commits into from
Aug 5, 2024
Merged

Conversation

Septa2112
Copy link
Contributor

Use struct llama_init_result to replace the previous std::tuple<struct llama_model *, struct llama_context *>

Use struct `llama_init_result` to replace the previous
std::tuple<struct llama_model *, struct llama_context *>
common/common.cpp Outdated Show resolved Hide resolved
common/common.cpp Outdated Show resolved Hide resolved
common/common.h Outdated Show resolved Hide resolved
common/common.h Outdated Show resolved Hide resolved
@Septa2112
Copy link
Contributor Author

Septa2112 commented Aug 5, 2024

I have modified the code according to your suggestion.

Copy link
Collaborator

@ngxson ngxson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks. Let’s merge when CI passed

@Septa2112
Copy link
Contributor Author

Found CI failed. I have submitted a new commit to delete the extra whitespace in this PR.

@Septa2112 Septa2112 requested a review from ngxson August 5, 2024 08:46
@mofosyne mofosyne added the Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix label Aug 5, 2024
@ngxson ngxson merged commit 0a4ce78 into ggerganov:master Aug 5, 2024
53 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Aug 7, 2024
* common : Changed tuple to struct (TODO fix)

Use struct `llama_init_result` to replace the previous
std::tuple<struct llama_model *, struct llama_context *>

* delete llama_init_default_params()

* delete the extra whitespace
@Septa2112 Septa2112 deleted the pr/2 branch August 21, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants