Skip to content

Commit b39e465

Browse files
committed
Self-review
1 parent 1a15782 commit b39e465

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/capi_frontend/server_settings.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct PluginConfigSettingsImpl {
9191
std::optional<std::string> kvCachePrecision;
9292
std::optional<uint32_t> maxPromptLength;
9393
std::optional<std::string> modelDistributionPolicy;
94-
std::optional<std::string> cacheDir;
94+
//std::optional<std::string> cacheDir;
9595
};
9696

9797
struct TextGenGraphSettingsImpl {

src/test/ovmsconfig_test.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ TEST(OvmsExportHfSettingsTest, allChanged) {
12321232
(char*)"--plugin_config",
12331233
(char*)"{\"NUM_STREAMS\":\"2\"}",
12341234
(char*)"--cache_dir",
1235-
(char*)"/tmp/testchachedir"};
1235+
(char*)"/tmp/cache_dir_with_gold"};
12361236

12371237
int arg_count = 19;
12381238
ConstructorEnabledConfig config;
@@ -1247,10 +1247,10 @@ TEST(OvmsExportHfSettingsTest, allChanged) {
12471247
ASSERT_EQ(hfSettings.exportSettings.targetDevice, "NPU");
12481248
ASSERT_EQ(hfSettings.downloadType, ovms::OPTIMUM_CLI_DOWNLOAD);
12491249
ASSERT_EQ(hfSettings.exportSettings.extraQuantizationParams.value(), "--sym --ratio 1.0");
1250-
ASSERT_EQ(hfSettings.exportSettings.cacheDir.value(), "/tmp/testchachedir");
1250+
ASSERT_EQ(hfSettings.exportSettings.cacheDir.value(), "/tmp/cache_dir_with_gold");
12511251
// here we expect only what is passed by user not all plugin parameters passed to genai
12521252
ASSERT_EQ(hfSettings.exportSettings.pluginConfig, "{\"NUM_STREAMS\":\"2\"}");
1253-
ASSERT_EQ(serverSettings.cacheDir, "/tmp/testchachedir");
1253+
ASSERT_EQ(serverSettings.cacheDir, "/tmp/cache_dir_with_gold");
12541254
ASSERT_EQ(config.getServerSettings().serverMode, ovms::HF_PULL_MODE);
12551255
}
12561256

@@ -1277,7 +1277,7 @@ TEST(OvmsExportHfSettingsTest, allChangedPullAndStart) {
12771277
(char*)"--plugin_config",
12781278
(char*)"{\"NUM_STREAMS\":\"2\"}",
12791279
(char*)"--cache_dir",
1280-
(char*)"/tmp/testchachedir"};
1280+
(char*)"/tmp/cache_dir_with_gold"};
12811281

12821282
int arg_count = 20;
12831283
ConstructorEnabledConfig config;
@@ -1293,7 +1293,7 @@ TEST(OvmsExportHfSettingsTest, allChangedPullAndStart) {
12931293
ASSERT_EQ(hfSettings.exportSettings.extraQuantizationParams.value(), "--sym --ratio 1.0");
12941294
ASSERT_EQ(config.getServerSettings().serverMode, ovms::HF_PULL_AND_START_MODE);
12951295
ASSERT_EQ(hfSettings.exportSettings.pluginConfig, "{\"NUM_STREAMS\":\"2\"}");
1296-
ASSERT_EQ(hfSettings.exportSettings.cacheDir.value(), "/tmp/testchachedir");
1296+
ASSERT_EQ(hfSettings.exportSettings.cacheDir.value(), "/tmp/cache_dir_with_gold");
12971297
}
12981298

12991299
TEST(OvmsGraphConfigTest, positiveDefault) {

0 commit comments

Comments
 (0)