GitHub
189K
Download
Models
Docs
Pricing
Sign in
Download
Models
Docs
Pricing
Sign in
jwtiyar
/
cement-expert
:v5
8
Downloads
Updated
2 days ago
Cement engineering LLM fine-tuning, physics.py solver, BM25 RAG router, and eval/error-discovery suite
Cement engineering LLM fine-tuning, physics.py solver, BM25 RAG router, and eval/error-discovery suite
Cancel
cement-expert:v5
...
/
template
06272dd6927a ยท 569B
{{- if .Messages }}
{{- 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
{{ .Content }}{{ if not $last }}<|im_end|>
{{ end }}
{{- end }}
{{- end }}<|im_start|>assistant
{{ else }}
{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}{{ if .Prompt }}<|im_start|>user
{{ .Prompt }}<|im_end|>
{{ end }}<|im_start|>assistant
{{ end }}