Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade llama.cpp #645

Merged
merged 5 commits into from
Oct 27, 2023
Merged

feat: upgrade llama.cpp #645

merged 5 commits into from
Oct 27, 2023

Conversation

wsxiaoys
Copy link
Member

@wsxiaoys wsxiaoys commented Oct 26, 2023

this change will merge once we've updated gguf files for all models in https://tabby.tabbyml.com/docs/models/

fix TAB-281

@@ -21,7 +21,6 @@ class TextInferenceEngineImpl : public TextInferenceEngine {
TextInferenceEngineImpl(owned<llama_model> model, owned<llama_context> ctx) :
model_(std::move(model)),
ctx_(std::move(ctx)) {
batch_ = llama_batch_init(N_BATCH, 0);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous usage of batch api in tabby generates a segmentation fault with updated llama.cpp version - roll back to llama_batch_get_one as workaround, will revisit this when integrating the continuous batching support.

@@ -89,4 +89,8 @@ impl ModelDir {
pub fn ggml_q8_0_file(&self) -> String {
self.path_string("ggml/q8_0.gguf")
}

pub fn ggml_q8_0_v2_file(&self) -> String {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated llama.cpp requires re-converting all starcoder models, updating filepath to keep forward compatibility.

@wsxiaoys wsxiaoys marked this pull request as ready for review October 27, 2023 19:17
@wsxiaoys wsxiaoys merged commit f378405 into main Oct 27, 2023
4 checks passed
@wsxiaoys wsxiaoys deleted the upgrade-llama-cpp branch October 27, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant