mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-13 20:14:29 +00:00
tts : fixes
This commit is contained in:
parent
f766100d8e
commit
66e1e1a18e
@ -135,7 +135,7 @@ static void fold(const std::vector<double> & data, int64_t n_out, int64_t n_win,
|
||||
int64_t end = start + kernel_w;
|
||||
|
||||
for (int64_t w_im = start; w_im < end; ++w_im) {
|
||||
if (w_im >= 0 && w_im < output_height) {
|
||||
if (w_im >= 0 && w_im < output_height && col_idx < (int64_t) data.size()) {
|
||||
output[w_im] += data[col_idx];
|
||||
}
|
||||
col_idx++;
|
||||
@ -291,7 +291,7 @@ int main(int argc, char ** argv) {
|
||||
|
||||
params.prompt = "";
|
||||
|
||||
params.n_predict = 1024;
|
||||
params.n_predict = 4096;
|
||||
params.n_batch = 8192;
|
||||
params.n_ctx = 8192;
|
||||
|
||||
@ -364,7 +364,7 @@ int main(int argc, char ** argv) {
|
||||
if (c == ' ') {
|
||||
prompt_clean += "<|text_sep|>";
|
||||
} else {
|
||||
if (isalpha(c)) {
|
||||
if (isalpha(c) || isdigit(c)) {
|
||||
c = tolower(c);
|
||||
} else {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user