Skip to content

Commit 49535fd

Browse files
committed
rename define
1 parent d7da1eb commit 49535fd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

otherarch/sdcpp/model.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "model.h"
1818
#include "stable-diffusion.h"
1919
#include "util.h"
20-
#ifndef KCPP_BAKE_SD_VOCAB
20+
#ifndef KCPP_NO_BAKE_SD_VOCAB
2121
#include "vocab.hpp"
2222
#include "vocab_qwen.hpp"
2323
#include "vocab_umt5.hpp"
@@ -2056,7 +2056,7 @@ void ModelLoader::set_wtype_override(ggml_type wtype, std::string prefix) {
20562056
}
20572057

20582058
std::string ModelLoader::load_merges() {
2059-
#ifndef KCPP_BAKE_SD_VOCAB
2059+
#ifndef KCPP_NO_BAKE_SD_VOCAB
20602060
std::string merges_utf8_str(reinterpret_cast<const char*>(merges_utf8_c_str), sizeof(merges_utf8_c_str));
20612061
return merges_utf8_str;
20622062
#else
@@ -2065,7 +2065,7 @@ std::string ModelLoader::load_merges() {
20652065
}
20662066

20672067
std::string ModelLoader::load_qwen2_merges() {
2068-
#ifndef KCPP_BAKE_SD_VOCAB
2068+
#ifndef KCPP_NO_BAKE_SD_VOCAB
20692069
std::string merges_utf8_str(reinterpret_cast<const char*>(qwen2_merges_utf8_c_str), sizeof(qwen2_merges_utf8_c_str));
20702070
return merges_utf8_str;
20712071
#else
@@ -2074,7 +2074,7 @@ std::string ModelLoader::load_qwen2_merges() {
20742074
}
20752075

20762076
std::string ModelLoader::load_t5_tokenizer_json() {
2077-
#ifndef KCPP_BAKE_SD_VOCAB
2077+
#ifndef KCPP_NO_BAKE_SD_VOCAB
20782078
std::string json_str(reinterpret_cast<const char*>(t5_tokenizer_json_str), sizeof(t5_tokenizer_json_str));
20792079
return json_str;
20802080
#else
@@ -2083,7 +2083,7 @@ std::string ModelLoader::load_t5_tokenizer_json() {
20832083
}
20842084

20852085
std::string ModelLoader::load_umt5_tokenizer_json() {
2086-
#ifndef KCPP_BAKE_SD_VOCAB
2086+
#ifndef KCPP_NO_BAKE_SD_VOCAB
20872087
std::string json_str(reinterpret_cast<const char*>(umt5_tokenizer_json_str), sizeof(umt5_tokenizer_json_str));
20882088
return json_str;
20892089
#else

otherarch/sdcpp/sdtype_adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <algorithm>
1414
#include <filesystem>
1515

16-
#define KCPP_BAKE_SD_VOCAB
16+
#define KCPP_NO_BAKE_SD_VOCAB
1717

1818
#include "model_adapter.h"
1919

0 commit comments

Comments
 (0)