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
20582058std::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
20672067std::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
20762076std::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
20852085std::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
0 commit comments