Skip to content

Commit

Permalink
Update chat_sample.cpp (openvinotoolkit#770)
Browse files Browse the repository at this point in the history
Minor fixes -- ensure using the device variable instead of hard coding
"CPU"
  • Loading branch information
raymondlo84 authored Aug 14, 2024
1 parent ebf6ff3 commit 6bf616d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/cpp/chat_sample/chat_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main(int argc, char* argv[]) try {
std::string model_path = argv[1];

std::string device = "CPU"; // GPU, NPU can be used as well
ov::genai::LLMPipeline pipe(model_path, "CPU");
ov::genai::LLMPipeline pipe(model_path, device);

ov::genai::GenerationConfig config;
config.max_new_tokens = 100;
Expand Down

0 comments on commit 6bf616d

Please sign in to comment.