[GH-ISSUE #12290] Model: Add K2 Think #8169

Open
opened 2026-04-12 20:35:07 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @electriquo on GitHub (Sep 15, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12290

Please add K2 Think to Ollama models.

From k2think.ai:

K2 Think marks a turning point in the global march to build smarter, more efficient AI. At just 32 billion parameters, it delivers performance on par with flagship reasoning models like OpenAI and DeepSeek — systems built on hundreds of billions of parameters. This breakthrough makes K2 Think the world’s most parameter efficient advanced reasoning model, redefining what is possible with compact architectures.

K2 Think ranks among the industry’s top reasoning systems, delivering top scores for top math performance across benchmarks such as AIME ’24/’25, HMMT ’25, and OMNI-Math-HARD.

Originally created by @electriquo on GitHub (Sep 15, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12290 Please add [*K2 Think*](https://huggingface.co/LLM360/K2-Think) to Ollama models. From [k2think.ai](https://www.k2think.ai/k2think): > K2 Think marks a turning point in the global march to build smarter, more efficient AI. At just 32 billion parameters, it delivers performance on par with flagship reasoning models like OpenAI and DeepSeek — systems built on hundreds of billions of parameters. This breakthrough makes K2 Think the world’s most parameter efficient advanced reasoning model, redefining what is possible with compact architectures. > > K2 Think ranks among the industry’s top reasoning systems, delivering top scores for top math performance across benchmarks such as AIME ’24/’25, HMMT ’25, and OMNI-Math-HARD.
GiteaMirror added the model label 2026-04-12 20:35:07 -05:00
Author
Owner

@rick-github commented on GitHub (Sep 15, 2025):

FROM hf.co/mradermacher/K2-Think-GGUF:Q4_K_M
SYSTEM You are K2-Think, a helpful assistant trained by MBZUAI. To answer the user's question, you first think about the reasoning process and then provide the user with the answer. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.
TEMPLATE """
{{- $lastUserIdx := -1 -}}
{{- range $idx, $msg := .Messages -}}
{{- if eq $msg.Role "user" }}{{ $lastUserIdx = $idx }}{{ end -}}
{{- end }}
{{- if .System  }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}
{{- range $i, $_ := .Messages }}
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
{{- if eq .Role "user" }}<|im_start|>user
{{ .Content }}<|im_end|>
{{ else if eq .Role "assistant" }}<|im_start|>assistant
{{ if (and $.IsThinkSet (and .Thinking (or $last (gt $i $lastUserIdx)))) -}}
<think>{{ .Thinking }}</think>
{{ end -}}
{{ .Content }}<|im_end|>
{{ end }}
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
{{ end }}
{{- end }}"""
$ ollama pull hf.co/mradermacher/K2-Think-GGUF:q4_k_m
$ ollama create k2-think:32b-q4_K_M
$ ollama run k2-think:32b-q4_K_M
>>> hello
<answer>Hello! How can I help you today?</answer>

>>> who are you?
<answer>I am K2-Think, an AI assistant designed to provide information, answer questions, and assist with a variety of tasks. Feel free to ask me anything—I'm here to help!</answer>

>>> how many cars on a tyre?
Thinking...
Okay, the user is asking "how many cars on a tyre?" Hmm, that's an interesting question. Let me break it down. First, I need to understand what they're really asking. A tire (tyre) is part of a car, right? 
So maybe they're confused about how many cars can be supported by a single tire?

Wait, but a typical car has four tires. But the question is phrased as "how many cars on a tyre?" Maybe they mean how many cars can be attached to one tire? That doesn't make much sense because each car 
usually has its own set of tires. Alternatively, maybe they're thinking about a single tire supporting multiple cars, like in a convoy or something?

Alternatively, could it be a translation issue? Maybe "on a tyre" is meant to be "per tyre"? Like, how many cars can a single tyre support? But that's not standard phrasing. Let me think. If a car has four 
tires, then each tire supports a portion of the car's weight. But the question is about the number of cars, not weight.

Wait, maybe the user is asking how many cars are typically associated with a single tire in terms of production or something? Like, how many cars can be made with one tire? That also doesn't make sense 
because each car needs multiple tires.

Alternatively, perhaps it's a riddle. But I don't think so. Let me check the original question again: "how many cars on a tyre?" Maybe "on" here is confusing. If you have a tire, how many cars are "on" it? 
Well, a tire is part of a car, so each car has four tires (usually). But that's not answering how many cars are on a single tire.

Wait, maybe the user is thinking of a situation where multiple cars are using the same tire, but that's not practical. Tires are designed for individual vehicles. So perhaps the answer is that a single 
tire is part of one car, so there's only one car per tire. But that might not be what they're asking.

Alternatively, maybe they're referring to tire production: how many cars can be equipped with tires from one batch? But that's too vague.

Alternatively, maybe it's a typo. Like "how many tyres on a car?" Then the answer is 4 (for most cars). But the user wrote "cars on a tyre".

Alternatively, think of it as "how many cars can be supported by one tire". Let's calculate. Suppose a car weighs 1500 kg. A tire supports about 375 kg (since 1500/4=375). If we consider the maximum load a 
tire can handle, say 500 kg. Then how many cars? Each car is 1500 kg, so 500 kg per tire divided by 1500 kg per car is 1/3. But that's not possible because you can't have a fraction of a car. So maybe one 
tire can support part of one car, but not multiple full cars.

But the question is phrased as "how many cars on a tyre", which is ambiguous. The most logical interpretation is probably that each car has four tires, so one tire is associated with one car. But that's 
not exactly correct because a tire is a component, not a container for cars.

Alternatively, maybe the user is thinking of a trailer or something. Like, a truck with multiple trailers, but each trailer would have its own tires. Still, each tire is part of a vehicle unit.

I think the best approach is to clarify the ambiguity but provide the most likely answer. The question is probably a misunderstanding, so explain that a single tire is typically part of one car (most cars 
have 4 tires), but if asking how many cars can be supported by one tire, it's not practical as tires are designed per vehicle. Alternatively, if it's about production, but that's unclear.

But maybe the user made a mistake and meant "how many tyres on a car", which is 4. But since they asked "cars on a tyre", I need to address that. Let me check common knowledge. There's no standard number 
of cars per tire because tires are individual components. So the answer is that a single tire is typically part of one car, but the question is ambiguous. Alternatively, if considering how many cars can be 
supported by one tire, it's not feasible as each car requires multiple tires.

But perhaps the user is being playful. Let me see. Maybe "how many cars fit on a tyre" as in stacking? But that's impossible. Tires are round and not designed to hold cars.

Alternatively, maybe it's a translation error. If the user meant "how many tyres are there on a car", then 4. But given the question as is, I should explain the ambiguity and provide possible 
interpretations.

So, the answer could be: The question is a bit ambiguous, but typically, each car has 4 tires (tyres). A single tire (tyre) is part of one car, so there's no standard number of cars "on" a tire. If you're 
asking how many cars can be supported by one tire, that's not practical as each car requires multiple tires for support. Could you clarify your question?
...done thinking.

<answer>The question is a bit ambiguous, but let’s break it down! 

If you’re asking **how many tires (tyres) are on a typical car**: Most cars have 4 tires (one for each wheel). Some vehicles, like trucks or larger cars, might have more, but standard passenger cars use 4.

If you’re wondering **how many cars could be "on" a single tire** (e.g., supported by it), this isn’t practical. Tires are designed to support one vehicle at a time. A single tire can only handle part of a 
car’s weight (about 25% for a standard 4-tire car). Even if we consider maximum load ratings, a tire can’t support an entire second car—each car needs its own set of tires.

Let me know if you meant something else! 😊</answer>
<!-- gh-comment-id:3291394651 --> @rick-github commented on GitHub (Sep 15, 2025): ```dockerfile FROM hf.co/mradermacher/K2-Think-GGUF:Q4_K_M SYSTEM You are K2-Think, a helpful assistant trained by MBZUAI. To answer the user's question, you first think about the reasoning process and then provide the user with the answer. The reasoning process and answer are enclosed within <think> </think> and <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>. TEMPLATE """ {{- $lastUserIdx := -1 -}} {{- range $idx, $msg := .Messages -}} {{- if eq $msg.Role "user" }}{{ $lastUserIdx = $idx }}{{ end -}} {{- end }} {{- if .System }}<|im_start|>system {{ .System }}<|im_end|> {{ end }} {{- range $i, $_ := .Messages }} {{- $last := eq (len (slice $.Messages $i)) 1 -}} {{- if eq .Role "user" }}<|im_start|>user {{ .Content }}<|im_end|> {{ else if eq .Role "assistant" }}<|im_start|>assistant {{ if (and $.IsThinkSet (and .Thinking (or $last (gt $i $lastUserIdx)))) -}} <think>{{ .Thinking }}</think> {{ end -}} {{ .Content }}<|im_end|> {{ end }} {{- if and (ne .Role "assistant") $last }}<|im_start|>assistant {{ end }} {{- end }}""" ``` ```console $ ollama pull hf.co/mradermacher/K2-Think-GGUF:q4_k_m $ ollama create k2-think:32b-q4_K_M $ ollama run k2-think:32b-q4_K_M >>> hello <answer>Hello! How can I help you today?</answer> >>> who are you? <answer>I am K2-Think, an AI assistant designed to provide information, answer questions, and assist with a variety of tasks. Feel free to ask me anything—I'm here to help!</answer> >>> how many cars on a tyre? Thinking... Okay, the user is asking "how many cars on a tyre?" Hmm, that's an interesting question. Let me break it down. First, I need to understand what they're really asking. A tire (tyre) is part of a car, right? So maybe they're confused about how many cars can be supported by a single tire? Wait, but a typical car has four tires. But the question is phrased as "how many cars on a tyre?" Maybe they mean how many cars can be attached to one tire? That doesn't make much sense because each car usually has its own set of tires. Alternatively, maybe they're thinking about a single tire supporting multiple cars, like in a convoy or something? Alternatively, could it be a translation issue? Maybe "on a tyre" is meant to be "per tyre"? Like, how many cars can a single tyre support? But that's not standard phrasing. Let me think. If a car has four tires, then each tire supports a portion of the car's weight. But the question is about the number of cars, not weight. Wait, maybe the user is asking how many cars are typically associated with a single tire in terms of production or something? Like, how many cars can be made with one tire? That also doesn't make sense because each car needs multiple tires. Alternatively, perhaps it's a riddle. But I don't think so. Let me check the original question again: "how many cars on a tyre?" Maybe "on" here is confusing. If you have a tire, how many cars are "on" it? Well, a tire is part of a car, so each car has four tires (usually). But that's not answering how many cars are on a single tire. Wait, maybe the user is thinking of a situation where multiple cars are using the same tire, but that's not practical. Tires are designed for individual vehicles. So perhaps the answer is that a single tire is part of one car, so there's only one car per tire. But that might not be what they're asking. Alternatively, maybe they're referring to tire production: how many cars can be equipped with tires from one batch? But that's too vague. Alternatively, maybe it's a typo. Like "how many tyres on a car?" Then the answer is 4 (for most cars). But the user wrote "cars on a tyre". Alternatively, think of it as "how many cars can be supported by one tire". Let's calculate. Suppose a car weighs 1500 kg. A tire supports about 375 kg (since 1500/4=375). If we consider the maximum load a tire can handle, say 500 kg. Then how many cars? Each car is 1500 kg, so 500 kg per tire divided by 1500 kg per car is 1/3. But that's not possible because you can't have a fraction of a car. So maybe one tire can support part of one car, but not multiple full cars. But the question is phrased as "how many cars on a tyre", which is ambiguous. The most logical interpretation is probably that each car has four tires, so one tire is associated with one car. But that's not exactly correct because a tire is a component, not a container for cars. Alternatively, maybe the user is thinking of a trailer or something. Like, a truck with multiple trailers, but each trailer would have its own tires. Still, each tire is part of a vehicle unit. I think the best approach is to clarify the ambiguity but provide the most likely answer. The question is probably a misunderstanding, so explain that a single tire is typically part of one car (most cars have 4 tires), but if asking how many cars can be supported by one tire, it's not practical as tires are designed per vehicle. Alternatively, if it's about production, but that's unclear. But maybe the user made a mistake and meant "how many tyres on a car", which is 4. But since they asked "cars on a tyre", I need to address that. Let me check common knowledge. There's no standard number of cars per tire because tires are individual components. So the answer is that a single tire is typically part of one car, but the question is ambiguous. Alternatively, if considering how many cars can be supported by one tire, it's not feasible as each car requires multiple tires. But perhaps the user is being playful. Let me see. Maybe "how many cars fit on a tyre" as in stacking? But that's impossible. Tires are round and not designed to hold cars. Alternatively, maybe it's a translation error. If the user meant "how many tyres are there on a car", then 4. But given the question as is, I should explain the ambiguity and provide possible interpretations. So, the answer could be: The question is a bit ambiguous, but typically, each car has 4 tires (tyres). A single tire (tyre) is part of one car, so there's no standard number of cars "on" a tire. If you're asking how many cars can be supported by one tire, that's not practical as each car requires multiple tires for support. Could you clarify your question? ...done thinking. <answer>The question is a bit ambiguous, but let’s break it down! If you’re asking **how many tires (tyres) are on a typical car**: Most cars have 4 tires (one for each wheel). Some vehicles, like trucks or larger cars, might have more, but standard passenger cars use 4. If you’re wondering **how many cars could be "on" a single tire** (e.g., supported by it), this isn’t practical. Tires are designed to support one vehicle at a time. A single tire can only handle part of a car’s weight (about 25% for a standard 4-tire car). Even if we consider maximum load ratings, a tire can’t support an entire second car—each car needs its own set of tires. Let me know if you meant something else! 😊</answer>
Author
Owner

@electriquo commented on GitHub (Sep 16, 2025):

@rick-github

It's clear how to manually import a model into Ollama. However, adding a model to the Ollama model library streamlines future updates.

<!-- gh-comment-id:3297187361 --> @electriquo commented on GitHub (Sep 16, 2025): @rick-github It's clear how to manually import a model into Ollama. However, adding a model to the Ollama model library streamlines future updates.
Author
Owner

@rick-github commented on GitHub (Sep 16, 2025):

Feel free to wait.

<!-- gh-comment-id:3297226697 --> @rick-github commented on GitHub (Sep 16, 2025): Feel free to wait.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#8169