Instructions to use seniruk/qwen2.5coder-0.5B_commit_msg 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 seniruk/qwen2.5coder-0.5B_commit_msg 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 seniruk/qwen2.5coder-0.5B_commit_msg # Run inference directly in the terminal: llama cli -hf seniruk/qwen2.5coder-0.5B_commit_msg
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf seniruk/qwen2.5coder-0.5B_commit_msg # Run inference directly in the terminal: llama cli -hf seniruk/qwen2.5coder-0.5B_commit_msg
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 seniruk/qwen2.5coder-0.5B_commit_msg # Run inference directly in the terminal: ./build/bin/llama cli -hf seniruk/qwen2.5coder-0.5B_commit_msg
Use Docker
docker model run hf.co/seniruk/qwen2.5coder-0.5B_commit_msg
- Llama new
- LM Studio
- Jan
- vLLM
How to use seniruk/qwen2.5coder-0.5B_commit_msg with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "seniruk/qwen2.5coder-0.5B_commit_msg" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "seniruk/qwen2.5coder-0.5B_commit_msg", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/seniruk/qwen2.5coder-0.5B_commit_msg
- Ollama
How to use seniruk/qwen2.5coder-0.5B_commit_msg with Ollama:
ollama run hf.co/seniruk/qwen2.5coder-0.5B_commit_msg
- Unsloth Desktop
- Pi
How to use seniruk/qwen2.5coder-0.5B_commit_msg with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf seniruk/qwen2.5coder-0.5B_commit_msg
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "seniruk/qwen2.5coder-0.5B_commit_msg" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use seniruk/qwen2.5coder-0.5B_commit_msg with Docker Model Runner:
docker model run hf.co/seniruk/qwen2.5coder-0.5B_commit_msg
- Lemonade
How to use seniruk/qwen2.5coder-0.5B_commit_msg with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull seniruk/qwen2.5coder-0.5B_commit_msg
Run and chat with the model
lemonade run user.qwen2.5coder-0.5B_commit_msg-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use seniruk/qwen2.5coder-0.5B_commit_msg with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf seniruk/qwen2.5coder-0.5B_commit_msg
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:9931/v1 hermes config set model.default seniruk/qwen2.5coder-0.5B_commit_msg
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use seniruk/qwen2.5coder-0.5B_commit_msg with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf seniruk/qwen2.5coder-0.5B_commit_msg
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:9931/v1 \ --custom-model-id "seniruk/qwen2.5coder-0.5B_commit_msg" \ --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"
Create Dcokerfile
Browse files- Dcokerfile +30 -0
Dcokerfile
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a lightweight Linux base
|
| 2 |
+
FROM ubuntu:22.04
|
| 3 |
+
|
| 4 |
+
# Install minimal dependencies
|
| 5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 6 |
+
python3 python3-pip unzip git \
|
| 7 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
+
|
| 9 |
+
# Create non-root user for HF Spaces
|
| 10 |
+
RUN useradd -m -u 1000 user
|
| 11 |
+
USER user
|
| 12 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
| 13 |
+
|
| 14 |
+
# Set working directory
|
| 15 |
+
WORKDIR /app
|
| 16 |
+
|
| 17 |
+
# Copy the app, model, and binaries
|
| 18 |
+
COPY --chown=user . /app
|
| 19 |
+
|
| 20 |
+
# Make the binary executable
|
| 21 |
+
RUN chmod +x ./bin/llama-cli
|
| 22 |
+
|
| 23 |
+
# Install only Gradio (no llama-cpp-python needed)
|
| 24 |
+
RUN pip install --no-cache-dir gradio
|
| 25 |
+
|
| 26 |
+
# Expose Gradio default port
|
| 27 |
+
EXPOSE 7860
|
| 28 |
+
|
| 29 |
+
# Run the app
|
| 30 |
+
CMD ["python3", "app.py"]
|