Instructions to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="edgeimpulse/edgeimpulse-docs-qwen-0.5b", filename="qwen-edgeai-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b 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 edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b: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 edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b: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 edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
Use Docker
docker model run hf.co/edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "edgeimpulse/edgeimpulse-docs-qwen-0.5b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "edgeimpulse/edgeimpulse-docs-qwen-0.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
- Ollama
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with Ollama:
ollama run hf.co/edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
- Unsloth Studio
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for edgeimpulse/edgeimpulse-docs-qwen-0.5b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for edgeimpulse/edgeimpulse-docs-qwen-0.5b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for edgeimpulse/edgeimpulse-docs-qwen-0.5b to start chatting
- Pi
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b: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 edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b: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 "edgeimpulse/edgeimpulse-docs-qwen-0.5b: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"
- Docker Model Runner
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with Docker Model Runner:
docker model run hf.co/edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
- Lemonade
How to use edgeimpulse/edgeimpulse-docs-qwen-0.5b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M
Run and chat with the model
lemonade run user.edgeimpulse-docs-qwen-0.5b-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M# Run inference directly in the terminal:
llama cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_MUse 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 edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M# Run inference directly in the terminal:
./llama-cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_MBuild 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 edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M# Run inference directly in the terminal:
./build/bin/llama-cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_MUse Docker
docker model run hf.co/edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_MEdge Impulse Docs Assistant โ Qwen 0.5B (GGUF)
A compact (0.5B parameter) chat model tuned to answer Edge Impulse questions โ building, training, optimizing and deploying edge AI / TinyML models. It is distributed as a single quantized GGUF file so it runs locally with llama.cpp or Ollama on a laptop, mini-PC, or edge device โ no GPU required.
- Base model:
Qwen/Qwen2.5-Coder-0.5B-Instruct - Format: GGUF,
Q4_K_Mquantization (~398 MB) - Prompt format: ChatML (
<|im_start|>/<|im_end|>) - Context length: 32K tokens
- Good for: on-device documentation Q&A, quick "how do Iโฆ" answers, drafting Edge Impulse CLI / Studio API snippets.
This repository intentionally ships only what you need to run the model. Training data, retrieval indexes, and the training pipeline are not included.
Recommended sampling settings
This is a small 0.5B model. With greedy / low-temperature decoding and no repetition penalty it will loop and repeat sentences. Always run it with a repeat penalty:
| Setting | Value |
|---|---|
temperature |
0.3 |
top_p |
0.9 |
repeat_penalty (Ollama) / --repeat-penalty (llama.cpp) |
1.2 |
The bundled Modelfile already applies these.
Run it with Ollama (easiest)
Ollama can pull the GGUF straight from this repo:
ollama run hf.co/edgeimpulse/edgeimpulse-docs-qwen-0.5b
Then ask it something:
>>> How do I export a model for a Linux target with the Edge Impulse CLI?
Ollama with the bundled Modelfile (recommended)
The Modelfile adds the tuned system prompt and the repeat penalty above:
# download the two small files
huggingface-cli download edgeimpulse/edgeimpulse-docs-qwen-0.5b \
qwen-edgeai-q4_k_m.gguf Modelfile --local-dir edgeimpulse-docs-qwen
cd edgeimpulse-docs-qwen
ollama create edgeimpulse-docs-qwen -f Modelfile
ollama run edgeimpulse-docs-qwen
Run it with llama.cpp
# get the model
huggingface-cli download edgeimpulse/edgeimpulse-docs-qwen-0.5b \
qwen-edgeai-q4_k_m.gguf --local-dir .
# one-shot prompt (note the repeat penalty)
llama-cli -m qwen-edgeai-q4_k_m.gguf --jinja \
--temp 0.3 --repeat-penalty 1.2 --top-p 0.9 \
-p "How do I create an Edge Impulse API key?" -st
# or an OpenAI-compatible local server
llama-server -m qwen-edgeai-q4_k_m.gguf -c 4096 --jinja
# -> http://127.0.0.1:8080 (POST /v1/chat/completions; send repeat_penalty: 1.2)
llama.cpp reads the ChatML chat template embedded in the GGUF (--jinja), so
llama-cli chat mode and the llama-server chat endpoints work out of the box.
Prompt format
The model uses the standard Qwen/ChatML template:
<|im_start|>system
You are the Edge Impulse documentation assistant.<|im_end|>
<|im_start|>user
How do I deploy a model to an Arduino board?<|im_end|>
<|im_start|>assistant
Intended use & limitations
- Intended use: a lightweight, local assistant for Edge Impulse documentation and workflow questions, and as a small building block inside a larger retrieval-augmented (RAG) or agent setup.
- Size trade-off: at 0.5B parameters this model is fast and tiny, but it can be wrong, invent commands/APIs, or be out of date โ for example it may fabricate CLI flags or code that does not exist. Verify anything important against the official docs: https://docs.edgeimpulse.com.
- Best paired with retrieval. For accurate, current answers, feed it relevant documentation snippets as context (RAG) rather than relying on its parametric memory alone.
- Requires a repeat penalty (see settings above) to avoid repetitive output.
- Not a safety-critical system. Do not rely on it for security, compliance, or production configuration without human review.
License
Released under the Apache-2.0 license, inheriting the license of the base
Qwen/Qwen2.5-Coder-0.5B-Instruct model.
- Downloads last month
- 28
4-bit
Model tree for edgeimpulse/edgeimpulse-docs-qwen-0.5b
Base model
Qwen/Qwen2.5-0.5B
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M# Run inference directly in the terminal: llama cli -hf edgeimpulse/edgeimpulse-docs-qwen-0.5b:Q4_K_M