Views
No views yet
| Filename | Quant | Size | Use Case | Memory Required |
|---|---|---|---|---|
agentflow-planner-7b-f16.gguf | F16 | 15.0 GB | Full precision, best quality | ~17 GB |
agentflow-planner-7b-Q8_0.gguf | Q8_0 | 7.6 GB | Near-full quality, faster | ~10 GB |
agentflow-planner-7b-Q5_K_M.gguf | Q5_K_M | 5.1 GB | High quality | ~7 GB |
agentflow-planner-7b-Q4_K_M.gguf | Q4_K_M | 4.4 GB | ⭐ Recommended - Best balance | ~6 GB |
1# Download the Q4_K_M model
2huggingface-cli download kh0pp/agentflow-planner-7b-GGUF agentflow-planner-7b-Q4_K_M.gguf --local-dir .
3
4# Create Modelfile
5cat > Modelfile << 'EOF'
6FROM ./agentflow-planner-7b-Q4_K_M.gguf
7
8TEMPLATE """{{ if .System }}<|im_start|>system
9{{ .System }}<|im_end|>
10{{ end }}{{ if .Prompt }}<|im_start|>user
11{{ .Prompt }}<|im_end|>
12{{ end }}<|im_start|>assistant
13{{ .Response }}<|im_end|>
14"""
15
16PARAMETER temperature 0.7
17PARAMETER top_p 0.9
18PARAMETER top_k 40
19PARAMETER num_ctx 32768
20PARAMETER repeat_penalty 1.1
21
22SYSTEM """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."""
23EOF
24
25# Create and run
26ollama create agentflow-planner:7b -f Modelfile
27ollama run agentflow-planner:7b1# Download the model
2huggingface-cli download kh0pp/agentflow-planner-7b-GGUF agentflow-planner-7b-Q4_K_M.gguf --local-dir .
3
4# Run with llama.cpp
5./llama-cli -m agentflow-planner-7b-Q4_K_M.gguf \
6 -p "Create a detailed plan for building a web application" \
7 -n 512 -c 40961from llama_cpp import Llama
2
3llm = Llama(
4 model_path="agentflow-planner-7b-Q4_K_M.gguf",
5 n_ctx=32768,
6 n_gpu_layers=-1, # Use GPU acceleration
7)
8
9response = llm.create_chat_completion(
10 messages=[
11 {"role": "system", "content": "You are an advanced AI agent specialized in planning and reasoning."},
12 {"role": "user", "content": "Create a detailed project plan for developing a mobile app"}
13 ],
14 temperature=0.7,
15 max_tokens=512,
16)
17
18print(response['choices'][0]['message']['content'])