We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
请教一下大佬,我看代码llm.cpp中支持上下文对话: void Llm::chat() { std::vector history; history.push_back(std::make_pair("system", "You are a helpful assistant.")); while (true) { std::cout << "\nQ: "; std::string user_str; std::cin >> user_str; if (user_str == "/exit") { break; } if (user_str == "/reset") { history.resize(1); std::cout << "\nA: reset done." << std::endl; continue; } std::cout << "\nA: " << std::flush; history.emplace_back(std::make_pair("user", user_str)); auto assistant_str = response(history); history.emplace_back(std::make_pair("assistant", assistant_str)); std::cout << std::endl; } } 但我在安卓端运行Qwenvl的时候明显感觉他无法感知上下文,不能支持多轮对话,请问这是为什么呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请教一下大佬,我看代码llm.cpp中支持上下文对话:
void Llm::chat() {
std::vector history;
history.push_back(std::make_pair("system", "You are a helpful assistant."));
while (true) {
std::cout << "\nQ: ";
std::string user_str;
std::cin >> user_str;
if (user_str == "/exit") {
break;
}
if (user_str == "/reset") {
history.resize(1);
std::cout << "\nA: reset done." << std::endl;
continue;
}
std::cout << "\nA: " << std::flush;
history.emplace_back(std::make_pair("user", user_str));
auto assistant_str = response(history);
history.emplace_back(std::make_pair("assistant", assistant_str));
std::cout << std::endl;
}
}
但我在安卓端运行Qwenvl的时候明显感觉他无法感知上下文,不能支持多轮对话,请问这是为什么呢?
The text was updated successfully, but these errors were encountered: