Upload Modelfile with huggingface_hub
Browse files
Modelfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Modelfile for AgentFlow Planner 7B
|
| 2 |
+
# Based on Qwen2.5-7B-Instruct, specialized for planning and agentic reasoning
|
| 3 |
+
# Source: https://huggingface.co/AgentFlow/agentflow-planner-7b
|
| 4 |
+
|
| 5 |
+
FROM AgentFlow/agentflow-planner-7b
|
| 6 |
+
|
| 7 |
+
# Set parameters optimized for planning tasks
|
| 8 |
+
PARAMETER temperature 0.7
|
| 9 |
+
PARAMETER top_p 0.9
|
| 10 |
+
PARAMETER top_k 40
|
| 11 |
+
PARAMETER num_ctx 32768
|
| 12 |
+
PARAMETER repeat_penalty 1.1
|
| 13 |
+
|
| 14 |
+
# System prompt optimized for agentic planning
|
| 15 |
+
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 16 |
+
{{ .System }}<|im_end|>
|
| 17 |
+
{{ end }}{{ if .Prompt }}<|im_start|>user
|
| 18 |
+
{{ .Prompt }}<|im_end|>
|
| 19 |
+
{{ end }}<|im_start|>assistant
|
| 20 |
+
{{ .Response }}<|im_end|>
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
SYSTEM """You are an advanced AI agent specialized in planning and reasoning. You excel at breaking down complex tasks into manageable steps, analyzing dependencies, and creating effective execution plans. You can use tools and integrate information from multiple sources to solve problems systematically."""
|