11#include <catch2/catch_amalgamated.hpp>
21 Network::setLocalMode(
true);
31 pcfg.put(
"device",
"llama2Device");
32 pcfg.put(
"model_name",
"/home/leonardo/Repos/yarp-device-llama2/models/gemma/gemma-2b-it.gguf");
40 std::string prompt =
"This is a prompt";
46 ret =
illm->setPrompt(prompt);
54 ret =
illm->setPrompt(prompt);
58 ret =
illm->ask(
"This is a question",answer);
69 ret =
illm->deleteConversation();
83 Network::setLocalMode(
false);
bool view(T *&x)
Get an interface to the device driver.
A container for a device driver.
bool close() override
Close the DeviceDriver.
bool open(const std::string &txt)
Construct and configure a device by its common name.
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
TEST_CASE("dev::llama2Device_test", "[yarp::dev]")
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.