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

Remove redundant config copy from GeneratorParams #920

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

RyanUnderhill
Copy link
Member

Some model config options were being copied into the GeneratorParams and then relayed to the Generator functions, this is unnecessary and confusing. Instead the GeneratorParams just holds a pointer to the config and these options are now taken directly from the config.

This simplifies the GeneratorParams

src/generators.h Show resolved Hide resolved
@RyanUnderhill RyanUnderhill merged commit bb003af into main Sep 25, 2024
13 checks passed
@RyanUnderhill RyanUnderhill deleted the ryanunderhill/api_params branch September 25, 2024 19:28
skyline75489 pushed a commit to skyline75489/onnxruntime-genai that referenced this pull request Sep 26, 2024
Some model config options were being copied into the GeneratorParams and
then relayed to the Generator functions, this is unnecessary and
confusing. Instead the GeneratorParams just holds a pointer to the
config and these options are now taken directly from the config.

This simplifies the GeneratorParams
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