[GH-ISSUE #1030] WizardCoder models lack a prompt template #47014

Closed
opened 2026-04-28 02:40:46 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Nan-Do on GitHub (Nov 7, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1030

I have been using the WizardCoder models and they do not use a template, this makes the quality of the output substantially worse, sometimes not writing python code and some others not offering an answer at all.

I have been trying to see how to contribute this to the model but I haven't seen any feasible way to do it so here is a modelfile description that can be used to make the model use the proper template

FROM wizardcoder:13b-python

# set the temperature to 1 [higher is more creative, lower is more coherent]
PARAMETER temperature 0.3

# set the system prompt
TEMPLATE """
{{ .System }}

### Instruction:
{{ .Prompt }}

### Response:
"""

SYSTEM """
Below is an instruction that describes a task. Write a response that appropriately completes the request.
"""
Originally created by @Nan-Do on GitHub (Nov 7, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1030 I have been using the WizardCoder models and they do not use a template, this makes the quality of the output substantially worse, sometimes not writing python code and some others not offering an answer at all. I have been trying to see how to contribute this to the model but I haven't seen any feasible way to do it so here is a modelfile description that can be used to make the model use the proper template ``` FROM wizardcoder:13b-python # set the temperature to 1 [higher is more creative, lower is more coherent] PARAMETER temperature 0.3 # set the system prompt TEMPLATE """ {{ .System }} ### Instruction: {{ .Prompt }} ### Response: """ SYSTEM """ Below is an instruction that describes a task. Write a response that appropriately completes the request. """ ```
GiteaMirror added the model label 2026-04-28 02:40:46 -05:00
Author
Owner

@mxyng commented on GitHub (Nov 7, 2023):

Thanks for the issue. This will be fixed shortly

<!-- gh-comment-id:1798545629 --> @mxyng commented on GitHub (Nov 7, 2023): Thanks for the issue. This will be fixed shortly
Author
Owner

@mxyng commented on GitHub (Nov 16, 2023):

This should be fixed now. Please pull the updated image with ollama pull wizardcoder:13b-python

<!-- gh-comment-id:1815446727 --> @mxyng commented on GitHub (Nov 16, 2023): This should be fixed now. Please pull the updated image with `ollama pull wizardcoder:13b-python`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47014