Skip to content

graph : use F32 accumulators for gpt-oss #15312

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
5 changes: 5 additions & 0 deletions src/llama-graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,11 @@ ggml_tensor * llm_graph_context::build_attn_with_sinks(

if (wo) {
cur = build_lora_mm(wo, cur);
if (arch == LLM_ARCH_OPENAI_MOE) {
// similar the original build_attn
// TODO: this is tmp until we refactor and remove the build_attn_with_sinks() path
ggml_mul_mat_set_prec(cur, GGML_PREC_F32);
}
}

if (wo_b) {
Expand Down
Loading