From 30cdd9c0813e1dd3af3fd4b42e491368e5cc0ea3 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Fri, 10 May 2024 02:27:50 -0700 Subject: [PATCH] Release llamafile v0.8.4 --- llama.cpp/grammar-parser.cpp | 2 +- llamafile/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llama.cpp/grammar-parser.cpp b/llama.cpp/grammar-parser.cpp index 57463bd457..f90b152329 100644 --- a/llama.cpp/grammar-parser.cpp +++ b/llama.cpp/grammar-parser.cpp @@ -173,7 +173,7 @@ namespace grammar_parser { out_elements.push_back({type, char_pair.first}); if (pos[0] == '-' && pos[1] != ']') { - if (pos[1]) { // [jart] don't sync until upstream fixes bug + if (!pos[1]) { // [jart] don't sync until upstream fixes bug throw std::runtime_error("unexpected end of input"); } auto endchar_pair = parse_char(pos + 1); diff --git a/llamafile/version.h b/llamafile/version.h index fdd6c599aa..1819bfe9b0 100644 --- a/llamafile/version.h +++ b/llamafile/version.h @@ -2,7 +2,7 @@ #define LLAMAFILE_MAJOR 0 #define LLAMAFILE_MINOR 8 -#define LLAMAFILE_PATCH 3 +#define LLAMAFILE_PATCH 4 #define LLAMAFILE_VERSION \ (100000000 * LLAMAFILE_MAJOR + 1000000 * LLAMAFILE_MINOR + LLAMAFILE_PATCH)