mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-13 04:00:16 +00:00
minja
: gcc tweaks
This commit is contained in:
parent
2eb29bf8b8
commit
5f5be9cde7
@ -4,6 +4,7 @@
|
||||
|
||||
#include "llama.h"
|
||||
|
||||
#include <functional>
|
||||
#include <queue>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -657,7 +658,7 @@ private:
|
||||
);
|
||||
}
|
||||
|
||||
void build(const std::function<std::vector<llama_token>(const std::string)> & tokenizer, const std::vector<std::string> & stop_words, const std::vector<std::string> & grammar_trigger_words) {
|
||||
void build(const std::function<std::vector<llama_token>(const std::string &)> & tokenizer, const std::vector<std::string> & stop_words, const std::vector<std::string> & grammar_trigger_words) {
|
||||
clear();
|
||||
this->stop_words = stop_words;
|
||||
this->grammar_trigger_words = grammar_trigger_words;
|
||||
|
@ -435,7 +435,7 @@ public:
|
||||
};
|
||||
|
||||
template <>
|
||||
json Value::get<json>() const {
|
||||
inline json Value::get<json>() const {
|
||||
if (is_primitive()) return primitive_;
|
||||
if (is_null()) return json();
|
||||
if (array_) {
|
||||
|
Loading…
Reference in New Issue
Block a user