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

Add missing struct annotation #483

Merged
merged 1 commit into from
Mar 25, 2023
Merged

Conversation

Doomsdayrs
Copy link
Contributor

llama_sample_top_p_top_k was missing the struct annotation on line 126.

This causes a compiler issue when being parsed by the Kotlin C interop generator.

This commit fixes the above issue by adding the struct annotation.

`llama_sample_top_p_top_k` was missing the struct annotation on line 126.

This causes a compiler issue when being parsed by the Kotlin C interop generator.

This commit fixes the above issue by adding the struct annotation.
Copy link
Collaborator

@Green-Sky Green-Sky left a comment

Choose a reason for hiding this comment

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

It might be, that the intention was to have a typedef, since its very mixed right now.

@Doomsdayrs
Copy link
Contributor Author

It might be, that the intention was to have a typedef, since its very mixed right now.

I'm currently hosting a patch on my own fork to ensure I can compile and bind llama to a Kotlin library. I simply wish to upstream the change.

I understand that intentions of what to do with the data structure are currently muddled, the PRs focus is to fix compilation issues with the current (struct based) implementation.

@ggerganov ggerganov merged commit 36d0753 into ggerganov:master Mar 25, 2023
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.

3 participants