merged support for gemma4. the e2b, e4b and 26b work, the 31b does not

This commit is contained in:
Concedo
2026-04-03 11:07:46 +08:00
44 changed files with 2908 additions and 120 deletions
+12 -1
View File
@@ -76,7 +76,18 @@
"assistant_start": "<start_of_turn>model\n",
"assistant_end": "<end_of_turn>\n"
}
},{
}, {
"search": ["<|turn>model","<|think|>"],
"name": "Google Gemma 4",
"adapter": {
"system_start": "<|turn>system\n",
"system_end": "<turn|>\n",
"user_start": "<|turn>user\n",
"user_end": "<turn|>\n",
"assistant_start": "<|turn>model\n",
"assistant_end": "<turn|>\n"
}
}, {
"search": ["<|start_header_id|>assistant<|end_header_id|>"],
"name": "Llama 3.x",
"adapter": {
+12 -1
View File
@@ -76,7 +76,18 @@
"assistant_start": "<start_of_turn>model\n",
"assistant_end": "<end_of_turn>\n"
}
},{
}, {
"search": ["<|turn>model","<|think|>"],
"name": "Google Gemma 4",
"adapter": {
"system_start": "<|turn>system\n",
"system_end": "<turn|>\n",
"user_start": "<|turn>user\n",
"user_end": "<turn|>\n",
"assistant_start": "<|turn>model\n",
"assistant_end": "<turn|>\n"
}
}, {
"search": ["<|start_header_id|>assistant<|end_header_id|>"],
"name": "Llama 3.x",
"adapter": {
+8
View File
@@ -0,0 +1,8 @@
{
"system_start": "<|turn>system\n",
"system_end": "<turn|>\n",
"user_start": "<|turn>user\n",
"user_end": "<turn|>\n",
"assistant_start": "<|turn>model\n",
"assistant_end": "<turn|>\n"
}