565 4 months ago

Llama-SEA-LION-v3.5-8B-R is a multilingual model which has been pretrained and instruct-tuned for the Southeast Asia region. Developed by AI Singapore and funded by National Research Foundation, Singapore.

e10a7b4ef18f · 839B
{{- $thinking_mode := "on" }}
{{- if .ThinkingMode }}{{ $thinking_mode = .ThinkingMode }}{{ end }}
{{- $system_prompt := "" }}
{{- if .System }}
{{- $system_prompt = printf "detailed thinking %s\n\n%s" $thinking_mode .System }}
{{- else }}
{{- $system_prompt = printf "detailed thinking %s" $thinking_mode }}
{{- end }}
<|start_header_id|>system<|end_header_id|>
{{ $system_prompt }}<|eot_id|>
{{- range .Messages }}
{{- if eq .Role "system" }}
{{- else if eq .Role "assistant" }}
{{- $content := .Content }}
{{- end }}
<|start_header_id|>{{ .Role }}<|end_header_id|>
{{ .Content }}<|eot_id|>
{{- else }}
<|start_header_id|>{{ .Role }}<|end_header_id|>
{{ .Content }}<|eot_id|>
{{- end }}
<|start_header_id|>assistant<|end_header_id|>
{{- if eq $thinking_mode "on" }}
{{- else }}
<think>
</think>
{{- end }}