Skip to content

Commit

Permalink
Merge pull request #56 from stackhpc/fix/mistral-tokenizer
Browse files Browse the repository at this point in the history
Default to mistral tokenizer for mistral models
  • Loading branch information
sd109 authored Nov 2, 2024
2 parents 3d6c6ea + 4e28893 commit 7a8ce15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/azimuth-llm/templates/api/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ spec:
- --max-model-len
- {{ .Values.api.modelMaxContextLength | quote }}
{{- end -}}
{{- if and (not (has "--tokenizer-model" .Values.api.extraArgs)) (hasPrefix "mistralai/" .Values.huggingface.model) -}}
- --tokenizer-mode
- mistral
{{- end -}}
{{- if .Values.api.extraArgs -}}
{{- .Values.api.extraArgs | toYaml | nindent 10 }}
{{- end -}}
Expand Down

0 comments on commit 7a8ce15

Please sign in to comment.