[Renderer] Consolidate factory methods (#38218)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2026-03-26 12:19:22 +00:00
committed by GitHub
parent 757eafcf37
commit 2e225f7bd2
16 changed files with 32 additions and 232 deletions
+3 -1
View File
@@ -542,7 +542,9 @@ class ModelConfig:
# Set default tokenizer modes based on model architecture
if self.tokenizer_mode == "auto":
if arch == "Grok1ForCausalLM":
if self.model_impl == "terratorch":
self.tokenizer_mode = "terratorch"
elif arch == "Grok1ForCausalLM":
self.tokenizer_mode = "grok2"
elif arch == "MoonshotKimiaForCausalLM":
self.tokenizer_mode = "kimi_audio"