10000 add PLaMo model by okdshin · Pull Request #3557 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

add PLaMo model #3557

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

Merged
merged 19 commits into from
Dec 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix style
  • Loading branch information
okdshin committed Dec 24, 2023
commit 700f7c600a47cca3971acdeff6edf2554121a438
13 changes: 5 additions & 8 deletions llama.cpp
54A7
Original file line number Diff line number Diff line change
Expand Up @@ -5543,7 +5543,7 @@ struct llm_build_context {
cur = llm_build_norm(ctx0, inpL, hparams,
model.layers[il].attn_norm, NULL,
LLM_NORM_RMS, cb, il);
cb(cur, "attention_norm", il);
cb(cur, "attn_norm", il);

struct ggml_tensor * attention_norm = cur;

Expand Down Expand Up @@ -5603,13 +5603,10 @@ struct llm_build_context {

cur = inpL;

// norm
{
cur = llm_build_norm(ctx0, cur, hparams,
model.output_norm, NULL,
LLM_NORM_RMS, cb, -1);
cb(cur, "result_norm", -1);
}
cur = llm_build_norm(ctx0, cur, hparams,
model.output_norm, NULL,
LLM_NORM_RMS, cb, -1);
cb(cur, "result_norm", -1);

// lm_head
cur = ggml_mul_mat(ctx0, model.output, cur);
Expand Down
0