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

[API][CPP] Add overloaded func of model.config. #45

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

Duyi-Wang
Copy link
Contributor

No description provided.

@@ -33,6 +33,8 @@ class Model {
bool doEarlyStopping_ = false, int eosTokenId_ = -1, int padTokenId_ = -1, bool doSample_ = false,
float temperature_ = 1.0, int topK_ = 50, float topP_ = 1.0);

void config(SearcherConfig &config_);
Copy link
Contributor

Choose a reason for hiding this comment

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

When you have added the config api, but you didn't use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is necessary for C++ API since it's annoying that all parameters are passed when just the last one is changed. There are two ways now, I just choose another way in the example.

@changqi1 changqi1 merged commit 6f5e981 into intel:main Nov 16, 2023
1 check passed
@Duyi-Wang Duyi-Wang deleted the model_gen_api branch November 24, 2023 08:42
Duyi-Wang added a commit that referenced this pull request Oct 10, 2024
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