Skip to content

Commit

Permalink
added necessary pch includes
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Apr 16, 2024
1 parent f6e7e93 commit 1e4e0b2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/common.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
#include "common.h"
#include "json.hpp"
#include "json-schema-to-grammar.h"
Expand Down
1 change: 1 addition & 0 deletions common/grammar-parser.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
#include "grammar-parser.h"
#include <cstdint>
#include <cwchar>
Expand Down
1 change: 1 addition & 0 deletions common/json-schema-to-grammar.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
#include "json-schema-to-grammar.h"
#include <algorithm>
#include <fstream>
Expand Down
1 change: 1 addition & 0 deletions common/ngram-cache.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
#include "ngram-cache.h"
#include "common.h"
#include "log.h"
Expand Down
3 changes: 2 additions & 1 deletion common/sampling.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
#include "sampling.h"

struct llama_sampling_context * llama_sampling_init(const struct llama_sampling_params & params) {
Expand Down Expand Up @@ -365,4 +366,4 @@ void llama_sampling_rollback(
}

ctx_sampling->prev.erase(ctx_sampling->prev.end() - rollback_num, ctx_sampling->prev.end());
}
}
1 change: 1 addition & 0 deletions examples/llava/clip.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
// NOTE: This is modified from clip.cpp only for LLaVA,
// so there might be still unnecessary artifacts hanging around
// I'll gradually clean and extend it
Expand Down
1 change: 1 addition & 0 deletions examples/llava/llava.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "pch.h"
#include "clip.h"
#include "common.h"
#include "llama.h"
Expand Down

0 comments on commit 1e4e0b2

Please sign in to comment.