Skip to content

Commit

Permalink
kompute : add gemma, phi-2, qwen2, and stablelm to whitelist
Browse files Browse the repository at this point in the history
Signed-off-by: Jared Van Bortel <[email protected]>
  • Loading branch information
cebtenzzre committed Feb 21, 2024
1 parent bf31654 commit 7d4ced8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4553,7 +4553,8 @@ static int llama_model_load(const std::string & fname, llama_model & model, llam

#ifdef GGML_USE_KOMPUTE
if (params.n_gpu_layers > 0 && (
!(model.arch == LLM_ARCH_LLAMA || model.arch == LLM_ARCH_FALCON)
!(model.arch == LLM_ARCH_FALCON || model.arch == LLM_ARCH_GEMMA || model.arch == LLM_ARCH_LLAMA ||
model.arch == LLM_ARCH_PHI2 || model.arch == LLM_ARCH_QWEN2 || model.arch == LLM_ARCH_STABLELM)
|| model.hparams.n_expert > 0
|| !(
model.ftype == LLAMA_FTYPE_ALL_F32 ||
Expand Down

0 comments on commit 7d4ced8

Please sign in to comment.