← 返回信息流
论文 Reddit-LocalLLaMA · /u/Ok_Warning2146 2026-10-10 22:38 🔥 热度 1

如何让 gemma 4 在 SWEBench 上正常工作?

用户求助让Gemma 4适配SWEBench评测

原文:How to make gemma 4 works with SWEBench?

我想对比 gemma 4 31b qat q4 和 qwen3.8 27b iq4_nl,于是我在它们上面运行了 SWEBench verified。原始的 gemma 4 聊天模板无法在保留推理的情况下工作,所以 Google 发布了一个更新,使其可以用于智能体编程:https://huggingface.co/google/gemma-4-31B-it/blob/main/chat_template.jinja 然而,当我通过 SWEBench verified 运行它时,我得到的所有结果都是 LimitExceeded 错误,而 Qwen3.8 27b iq4_nl 可以提交 388/500,其中 333/388 被解决。我尝试了网上流传的其他聊天模板:https://gist.github.com/jscott3201/ad69c4ffbd79f18b11a0f6a94c94fadf https://gist.github.com/bbrowning/c584eb2dbd79e4cc9ecedf92eee2d135 https://huggingface.co/stevelikesrhino/gemma-4-31B-it-nvfp4-GGUF/blob/main/gemma4-improved.jinja https://github.com/vllm-project/vllm/blob/main/examples/tool_chat_template_gemma4.jinja https://huggingface.co/google/gemma-4-31B-it/discussions/137 https://huggingface.co/google/gemma-4-31B-it/discussions/135 https://huggingface.co/ManniX-ITA/gemma-4-A4B-98e-v7-coder-it/blob/main/chat_template.jinja 但它们都有同样的问题。这是我的 llama-server 命令:./llama-server -m ~/gguf/gemma-4-31B_q4_0-it.gguf --jinja --chat-template-file chat_template.jinja -ngl 999 -fa 1 --load-mode mmap -np 1 --temp 1.0 --top_p 0.95 --top_k 64 --min_p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 -c 122880 -ctk q8_0 -ctv q8_0 --spec-type none --reasoning-preserve --host 192.168.1.140 --port 8080 --no-mmproj-offload --mmproj ~/gguf/gemma-4-31B-it-mmproj.gguf 我使用的 gguf 是 Google 的 QAT Q4。我也试过 unsloth 的 QAT,但同样报错。这是只运行四个测试的命令:swebench infer verified -c config.yaml -r gemma-4-31b-qat-q4_0-120k-q8_0 -m gemma-4-31b --filter "astropy__astropy-12907|astropy__astropy-13033|astropy__astropy-13977|astropy__astropy-13579" config.yaml model: cost_tracking: "ignore_errors" model_name: "my-local-model" mo

查看原文 ↗ 技术论文开源项目

📌 相关阅读

[开源] N1nEmAn/sapper-v2:自主渗透测试军团——AI指挥官+工作蜂群+分层事实-意图图 热度 11 [开源] dodo-labs-ai/mem-forge:让每个智能体从第一天起就拥有团队大脑,AI智能体的记忆层 热度 9 不用扩散 模型 也能做视觉生成?编码Agent视觉生成能力上限深度实测 【多模态 大模型 】【 AI 生成内容】 热度 9 首个面向个性化移动智能体的用户中心基准iPrefBench发布!精准评估「该猜就猜、该问就问」的智能助手能力 【 AI 智能体】【HCI人机交互】【 大模型 评测】 热度 9 突破扩散语言 模型 解码瓶颈!SPOT用提交顺序预测实现最高9.9倍生成吞吐量 【 大模型 加速】【扩散语言 模型 】【论文解读】 热度 9