Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix: qwen25vl assign samebatch in multimodal input (#10789)
Michael Yang69b2fe928232
diff --git a/model/models/qwen25vl/model.go b/model/models/qwen25vl/model.goindex 7de9b6eb1..32cca5607 100644--- a/model/models/qwen25vl/model.go+++ b/model/models/qwen25vl/model.go@@ -121,13 +121,14 @@ func (m *Model) PostTokenize(inputs []input.Input) ([]input.Input, error) {patchesPerChunk := inp.Multimodal[0].Tensor.Dim(1)// First add the vision start token- result = append(result, input.Input{Token: visionStartToken, SameBatch: patchesPerChunk + 1})+ result = append(result, input.Input{Token: visionStartToken})// Add the image token with the multimodal tensor data at the first positionresult = append(result, input.Input{Token: imageToken,Multimodal: inp.Multimodal,MultimodalHash: inp.MultimodalHash,+ SameBatch: patchesPerChunk,})// Add the placeholder tokens for the remaining positions (tokensPerGrid-1)