diff --git a/convert_hf_to_gguf.py b/convert_hf_to_gguf.py index a86490831..c0ab0f955 100755 --- a/convert_hf_to_gguf.py +++ b/convert_hf_to_gguf.py @@ -297,7 +297,7 @@ class Model: for new_name, data_torch in (self.modify_tensors(data_torch, name, bid)): # TODO: why do we squeeze here? - #data = data_torch.squeeze().numpy() + # data = data_torch.squeeze().numpy() data = data_torch.numpy() # if data ends up empty, it means data_torch was a scalar tensor -> restore diff --git a/examples/tts/tts.cpp b/examples/tts/tts.cpp index e2306a5a8..33ecb8aaf 100644 --- a/examples/tts/tts.cpp +++ b/examples/tts/tts.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -354,9 +355,9 @@ int main(int argc, char ** argv) { // TODO: not sure if this is correct { + std::string prompt_clean; std::string prompt_user = params.prompt; - std::string prompt_clean = ""; - //string_replace_all(prompt_user, " ", "<|text_sep|>"); + for (auto & c : prompt_user) { if (c == ' ') { prompt_clean += "<|text_sep|>";