mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
backend: use llamamodel.cpp for StarCoder
This commit is contained in:
parent
aa706ab1ff
commit
6277eac9cc
@ -116,11 +116,6 @@ foreach(BUILD_VARIANT IN LISTS BUILD_VARIANTS)
|
|||||||
bert.cpp utils.h utils.cpp llmodel_shared.cpp llmodel_shared.h)
|
bert.cpp utils.h utils.cpp llmodel_shared.cpp llmodel_shared.h)
|
||||||
target_compile_definitions(bert-${BUILD_VARIANT} PRIVATE LLAMA_VERSIONS=>=3 LLAMA_DATE=999999)
|
target_compile_definitions(bert-${BUILD_VARIANT} PRIVATE LLAMA_VERSIONS=>=3 LLAMA_DATE=999999)
|
||||||
prepare_target(bert llama-mainline)
|
prepare_target(bert llama-mainline)
|
||||||
|
|
||||||
add_library(starcoder-${BUILD_VARIANT} SHARED
|
|
||||||
starcoder.cpp utils.h utils.cpp llmodel_shared.cpp llmodel_shared.h)
|
|
||||||
target_compile_definitions(starcoder-${BUILD_VARIANT} PRIVATE LLAMA_VERSIONS=>=3 LLAMA_DATE=999999)
|
|
||||||
prepare_target(starcoder llama-mainline)
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
@ -392,7 +392,8 @@ DLL_EXPORT bool magic_match(const char * fname) {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool isValid = gguf_get_version(ctx_gguf) <= 2;
|
bool isValid = gguf_get_version(ctx_gguf) <= 2;
|
||||||
isValid = isValid && get_arch_name(ctx_gguf) == "llama";
|
auto arch = get_arch_name(ctx_gguf);
|
||||||
|
isValid = isValid && (arch == "llama" || arch == "starcoder");
|
||||||
|
|
||||||
gguf_free(ctx_gguf);
|
gguf_free(ctx_gguf);
|
||||||
return isValid;
|
return isValid;
|
||||||
|
@ -78,7 +78,6 @@ struct mpt_model {
|
|||||||
|
|
||||||
struct llm_kv_cache kv_self;
|
struct llm_kv_cache kv_self;
|
||||||
struct ggml_context * ctx;
|
struct ggml_context * ctx;
|
||||||
std::map<std::string, struct ggml_tensor *> tensors;
|
|
||||||
|
|
||||||
|
|
||||||
llm_buffer eval_buf;
|
llm_buffer eval_buf;
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user