mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add best match tokenizer logic for DeepSeek and Nemo
This commit is contained in:
@ -325,6 +325,12 @@ export function getTokenizerBestMatch(forApi) {
|
|||||||
if (model.includes('gemma')) {
|
if (model.includes('gemma')) {
|
||||||
return tokenizers.GEMMA;
|
return tokenizers.GEMMA;
|
||||||
}
|
}
|
||||||
|
if (model.includes('nemo') || model.includes('pixtral')) {
|
||||||
|
return tokenizers.NEMO;
|
||||||
|
}
|
||||||
|
if (model.includes('deepseek')) {
|
||||||
|
return tokenizers.DEEPSEEK;
|
||||||
|
}
|
||||||
if (model.includes('yi')) {
|
if (model.includes('yi')) {
|
||||||
return tokenizers.YI;
|
return tokenizers.YI;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user