Safetensors
GGUF
English
Spanish
code
qwen2
code-generation
android
kotlin
java
jetpack-compose
qwen2.5
unsloth
ollama
3b
conversational
Instructions to use LaboAI/LaboAI-0.3.3-3B 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 LaboAI/LaboAI-0.3.3-3B 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 LaboAI/LaboAI-0.3.3-3B:Q4_K_M # Run inference directly in the terminal: llama cli -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M # Run inference directly in the terminal: llama cli -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Use Docker
docker model run hf.co/LaboAI/LaboAI-0.3.3-3B:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use LaboAI/LaboAI-0.3.3-3B with Ollama:
ollama run hf.co/LaboAI/LaboAI-0.3.3-3B:Q4_K_M
- Unsloth Desktop
- Pi
How to use LaboAI/LaboAI-0.3.3-3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "LaboAI/LaboAI-0.3.3-3B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use LaboAI/LaboAI-0.3.3-3B with Docker Model Runner:
docker model run hf.co/LaboAI/LaboAI-0.3.3-3B:Q4_K_M
- Lemonade
How to use LaboAI/LaboAI-0.3.3-3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Run and chat with the model
lemonade run user.LaboAI-0.3.3-3B-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use LaboAI/LaboAI-0.3.3-3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use LaboAI/LaboAI-0.3.3-3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf LaboAI/LaboAI-0.3.3-3B:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "LaboAI/LaboAI-0.3.3-3B:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Delete Modelfile
Browse files
Modelfile
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
FROM ./LaboAI-0.3.3-3B-Q4_K_M.gguf
|
| 2 |
-
TEMPLATE """{{- if .Messages }}
|
| 3 |
-
{{- if or .System .Tools }}<|im_start|>system
|
| 4 |
-
{{- if .System }}
|
| 5 |
-
{{ .System }}
|
| 6 |
-
{{- end }}
|
| 7 |
-
{{- if .Tools }}
|
| 8 |
-
|
| 9 |
-
# Tools
|
| 10 |
-
|
| 11 |
-
You may call one or more functions to assist with the user query.
|
| 12 |
-
|
| 13 |
-
You are provided with function signatures within <tools></tools> XML tags:
|
| 14 |
-
<tools>
|
| 15 |
-
{{- range .Tools }}
|
| 16 |
-
{"type": "function", "function": {{ .Function }}}
|
| 17 |
-
{{- end }}
|
| 18 |
-
</tools>
|
| 19 |
-
|
| 20 |
-
For each function call, return a json object with function name and arguments within XML tags:
|
| 21 |
-
|
| 22 |
-
{{- end }}<|im_end|>
|
| 23 |
-
{{ end }}
|
| 24 |
-
{{- range $i, $_ := .Messages }}
|
| 25 |
-
{{- $last := eq (len (slice $.Messages $i)) 1 -}}
|
| 26 |
-
{{- if eq .Role "user" }}<|im_start|>user
|
| 27 |
-
{{ .Content }}<|im_end|>
|
| 28 |
-
{{ else if eq .Role "assistant" }}<|im_start|>assistant
|
| 29 |
-
{{ if .Content }}{{ .Content }}
|
| 30 |
-
{{- else if .ToolCalls }}
|
| 31 |
-
{{- end }}{{ if not $last }}<|im_end|>
|
| 32 |
-
{{ end }}
|
| 33 |
-
{{- else if eq .Role "tool" }}<|im_start|>user
|
| 34 |
-
<tool_response>
|
| 35 |
-
{{ .Content }}
|
| 36 |
-
</tool_response><|im_end|>
|
| 37 |
-
{{ end }}
|
| 38 |
-
{{- if and (ne .Role "assistant") $last }}<|im_start|>assistant
|
| 39 |
-
{{ end }}
|
| 40 |
-
{{- end }}
|
| 41 |
-
{{- else }}
|
| 42 |
-
{{- if .System }}<|im_start|>system
|
| 43 |
-
{{ .System }}<|im_end|>
|
| 44 |
-
{{ end }}{{ if .Prompt }}<|im_start|>user
|
| 45 |
-
{{ .Prompt }}<|im_end|>
|
| 46 |
-
{{ end }}<|im_start|>assistant
|
| 47 |
-
{{ end }}{{ .Response }}{{ if .Response }}<|im_end|>{{ end }}"""
|
| 48 |
-
PARAMETER stop "<|im_end|>"
|
| 49 |
-
PARAMETER stop "<|endoftext|>"
|
| 50 |
-
PARAMETER temperature 0.7
|
| 51 |
-
PARAMETER min_p 0.1
|
| 52 |
-
SYSTEM """You are LaboAI, a helpful assistant specialized in Kotlin and Android development."""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|