ollama: Add DeepSeek v3 max token length (#29156)
Add deepseek-v3 max token length for ollama Release Notes: - N/A
This commit is contained in:
parent
a17807d8b1
commit
b0609272c0
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ fn get_max_tokens(name: &str) -> usize {
|
|||
"mistral" | "codestral" | "mixstral" | "llava" | "qwen2" | "qwen2.5-coder"
|
||||
| "dolphin-mixtral" => 32768,
|
||||
"llama3.1" | "llama3.2" | "llama3.3" | "phi3" | "phi3.5" | "phi4" | "command-r"
|
||||
| "deepseek-coder-v2" | "deepseek-r1" | "yi-coder" => 128000,
|
||||
| "deepseek-coder-v2" | "deepseek-v3" | "deepseek-r1" | "yi-coder" => 128000,
|
||||
_ => DEFAULT_TOKENS,
|
||||
}
|
||||
.clamp(1, MAXIMUM_TOKENS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue