Instructions to use Sweaterdog/GRaPE-Mini-Beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Sweaterdog/GRaPE-Mini-Beta with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sweaterdog/GRaPE-Mini-Beta:F16 # Run inference directly in the terminal: llama cli -hf Sweaterdog/GRaPE-Mini-Beta:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sweaterdog/GRaPE-Mini-Beta:F16 # Run inference directly in the terminal: llama cli -hf Sweaterdog/GRaPE-Mini-Beta:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Sweaterdog/GRaPE-Mini-Beta:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Sweaterdog/GRaPE-Mini-Beta:F16
Use Docker
docker model run hf.co/Sweaterdog/GRaPE-Mini-Beta:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use Sweaterdog/GRaPE-Mini-Beta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sweaterdog/GRaPE-Mini-Beta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sweaterdog/GRaPE-Mini-Beta", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sweaterdog/GRaPE-Mini-Beta:F16
- Ollama
How to use Sweaterdog/GRaPE-Mini-Beta with Ollama:
ollama run hf.co/Sweaterdog/GRaPE-Mini-Beta:F16
- Unsloth Desktop
- Docker Model Runner
How to use Sweaterdog/GRaPE-Mini-Beta with Docker Model Runner:
docker model run hf.co/Sweaterdog/GRaPE-Mini-Beta:F16
- Lemonade
How to use Sweaterdog/GRaPE-Mini-Beta with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sweaterdog/GRaPE-Mini-Beta:F16
Run and chat with the model
lemonade run user.GRaPE-Mini-Beta-F16
List all available models
lemonade list
- Atomic Chat
Update modelfile
Browse files
modelfile
CHANGED
|
@@ -6,11 +6,56 @@ PARAMETER top_k 0
|
|
| 6 |
PARAMETER repeat_penalty 1.15
|
| 7 |
PARAMETER num_ctx 8192
|
| 8 |
|
| 9 |
-
TEMPLATE """{{ if .
|
| 10 |
-
{{ .System }}<|
|
| 11 |
-
{{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
{{ .Content }}<|im_end|>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
{{ end }}<|im_start|>assistant
|
|
|
|
| 14 |
"""
|
| 15 |
|
| 16 |
SYSTEM """You are GRaPE Mini Beta, GRaPE stands for General Reasoning Agent for Project Exploration.
|
|
|
|
| 6 |
PARAMETER repeat_penalty 1.15
|
| 7 |
PARAMETER num_ctx 8192
|
| 8 |
|
| 9 |
+
TEMPLATE """{{- if .Messages }}
|
| 10 |
+
{{- if or .System .Tools }}<|im_start|>system
|
| 11 |
+
{{- if .System }}
|
| 12 |
+
{{ .System }}
|
| 13 |
+
{{- end }}
|
| 14 |
+
{{- if .Tools }}
|
| 15 |
+
|
| 16 |
+
# Tools
|
| 17 |
+
|
| 18 |
+
You may call one or more functions to assist with the user query.
|
| 19 |
+
|
| 20 |
+
You are provided with function signatures within <tools></tools> XML tags:
|
| 21 |
+
<tools>
|
| 22 |
+
{{- range .Tools }}
|
| 23 |
+
{"type": "function", "function": {{ .Function }}}
|
| 24 |
+
{{- end }}
|
| 25 |
+
</tools>
|
| 26 |
+
|
| 27 |
+
For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
|
| 28 |
+
<tool_call>
|
| 29 |
+
{"name": <function-name>, "arguments": <args-json-object>}
|
| 30 |
+
</tool_call>
|
| 31 |
+
{{- end }}<|im_end|>
|
| 32 |
+
{{ end }}
|
| 33 |
+
{{- range $i, $_ := .Messages }}
|
| 34 |
+
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
|
| 35 |
+
{{- if eq .Role "user" }}<|im_start|>user
|
| 36 |
{{ .Content }}<|im_end|>
|
| 37 |
+
{{ else if eq .Role "assistant" }}<|im_start|>assistant
|
| 38 |
+
{{ if .Content }}{{ .Content }}
|
| 39 |
+
{{- else if .ToolCalls }}<tool_call>
|
| 40 |
+
{{ range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}}
|
| 41 |
+
{{ end }}</tool_call>
|
| 42 |
+
{{- end }}{{ if not $last }}<|im_end|>
|
| 43 |
+
{{ end }}
|
| 44 |
+
{{- else if eq .Role "tool" }}<|im_start|>user
|
| 45 |
+
<tool_response>
|
| 46 |
+
{{ .Content }}
|
| 47 |
+
</tool_response><|im_end|>
|
| 48 |
+
{{ end }}
|
| 49 |
+
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
|
| 50 |
+
{{ end }}
|
| 51 |
+
{{- end }}
|
| 52 |
+
{{- else }}
|
| 53 |
+
{{- if .System }}<|im_start|>system
|
| 54 |
+
{{ .System }}<|im_end|>
|
| 55 |
+
{{ end }}{{ if .Prompt }}<|im_start|>user
|
| 56 |
+
{{ .Prompt }}<|im_end|>
|
| 57 |
{{ end }}<|im_start|>assistant
|
| 58 |
+
{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}
|
| 59 |
"""
|
| 60 |
|
| 61 |
SYSTEM """You are GRaPE Mini Beta, GRaPE stands for General Reasoning Agent for Project Exploration.
|