初始化项目,由ModelHub XC社区提供模型

Model: tkeskin/llama-3.2-1b-instruct-code-translation
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-18 06:26:09 +08:00
commit ee9d38ed1d
9 changed files with 309 additions and 0 deletions

15
Modelfile Normal file
View File

@@ -0,0 +1,15 @@
# ollama modelfile auto-generated by llamafactory
FROM .
TEMPLATE """<|begin_of_text|>{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
{{ .Content }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{{ else if eq .Role "assistant" }}{{ .Content }}<|eot_id|>{{ end }}{{ end }}"""
PARAMETER stop "<|eom_id|>"
PARAMETER stop "<|eot_id|>"
PARAMETER num_ctx 4096