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

Preserve default config for LLM samples #1152

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Wovchena
Copy link
Collaborator

@Wovchena Wovchena commented Nov 6, 2024

This should reduce the difference with transformers and simplify thransition.

This should reduce the difference with transformers and simplify thransition.
@github-actions github-actions bot added category: sampling Sampling / Decoding algorithms category: samples GenAI samples labels Nov 6, 2024
@Wovchena Wovchena marked this pull request as ready for review November 7, 2024 06:14
@@ -12,7 +12,8 @@ int main(int argc, char* argv[]) try {
std::string device = "CPU"; // GPU can be used as well

ov::genai::LLMPipeline pipe(models_path, device);
ov::genai::GenerationConfig config;
ov::genai::GenerationConfig config = pipe.get_generation_config();
config.do_sample = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

what's about other parameters like repetition penalty ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The sample preserves other parameters now. That's the reason for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: samples GenAI samples category: sampling Sampling / Decoding algorithms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants