Instructions to use UGREENDEV/RK182X-LLM-functiongemma-270m-it 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 UGREENDEV/RK182X-LLM-functiongemma-270m-it 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 UGREENDEV/RK182X-LLM-functiongemma-270m-it # Run inference directly in the terminal: llama cli -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it # Run inference directly in the terminal: llama cli -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it
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 UGREENDEV/RK182X-LLM-functiongemma-270m-it # Run inference directly in the terminal: ./build/bin/llama cli -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it
Use Docker
docker model run hf.co/UGREENDEV/RK182X-LLM-functiongemma-270m-it
- Llama new
- LM Studio
- Jan
- vLLM
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UGREENDEV/RK182X-LLM-functiongemma-270m-it" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UGREENDEV/RK182X-LLM-functiongemma-270m-it", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/UGREENDEV/RK182X-LLM-functiongemma-270m-it
- Ollama
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with Ollama:
ollama run hf.co/UGREENDEV/RK182X-LLM-functiongemma-270m-it
- Unsloth Desktop
- Pi
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it
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": "UGREENDEV/RK182X-LLM-functiongemma-270m-it" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with Docker Model Runner:
docker model run hf.co/UGREENDEV/RK182X-LLM-functiongemma-270m-it
- Lemonade
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull UGREENDEV/RK182X-LLM-functiongemma-270m-it
Run and chat with the model
lemonade run user.RK182X-LLM-functiongemma-270m-it-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it
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 UGREENDEV/RK182X-LLM-functiongemma-270m-it
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use UGREENDEV/RK182X-LLM-functiongemma-270m-it with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf UGREENDEV/RK182X-LLM-functiongemma-270m-it
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 "UGREENDEV/RK182X-LLM-functiongemma-270m-it" \ --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"
|
Download README.md from UGREENDEV/RK182X-LLM-functiongemma-270m-it: direct link, hf CLI and curl.
- Browser
- Download file 3.78 kB
-
https://huggingface.co/UGREENDEV/RK182X-LLM-functiongemma-270m-it/resolve/main/README.md
- Command line
-
hf download hf://UGREENDEV/RK182X-LLM-functiongemma-270m-it/README.md
-
curl -L -o README.md https://huggingface.co/UGREENDEV/RK182X-LLM-functiongemma-270m-it/resolve/main/README.md
3.78 kB
| license: other | |
| license_name: gemma | |
| license_link: LICENSE | |
| tags: | |
| - rknn | |
| - llm | |
| - rk1820 | |
| - rk1828 | |
| pipeline_tag: text-generation | |
| base_model: google/functiongemma-270m-it | |
| base_model_relation: quantized | |
| # RK182X-LLM-functiongemma-270m-it | |
| [English](README.md) | [简体中文](README_CN.md) | |
| ## 1. Model Overview | |
| This repository provides an RKNN LLM model converted from [google/functiongemma-270m-it](https://huggingface.co/google/functiongemma-270m-it). | |
| - Model ID: `UGREENDEV/RK182X-LLM-functiongemma-270m-it` | |
| - Model Display Name: `RK182X-LLM-functiongemma-270m-it` | |
| - RKNN Runtime Version: `v1.1.0` | |
| - Source Model: `google/functiongemma-270m-it` | |
| - Model Type: LLM | |
| - Chip Label: RK182X | |
| - Supported Chips: RK1820, RK1828 | |
| ### Available Models | |
| | RKNN Runtime Version | Configuration Directory | Supported Chips | Quantization | NPU Cores | Context Length (tokens) | KVCache | | |
| | --- | --- | --- | --- | --- | --- | --- | | |
| | `v1.1.0` | [functiongemma-270m-it-w4a16-8-8192](functiongemma-270m-it-w4a16-8-8192/README.md) | RK1820, RK1828 | w4a16 | 8 | 8192 (8k) | fp16 | | |
| ## 2. Files | |
| | File or Directory | Description | | |
| | --- | --- | | |
| | `LICENSE` | Source model license | | |
| | `Notice` | License, usage requirements, and attribution | | |
| | `USE_RESTRICTIONS.txt` | License, usage requirements, and attribution | | |
| | `<configuration-directory>/` | Matching model files | | |
| | Subdirectory `README.md` | Configuration documentation (English) | | |
| | Subdirectory `README_CN.md` | Configuration documentation (Chinese) | | |
| | Subdirectory `config.json` | Model configuration and file manifest | | |
| | Subdirectory `SHA256SUMS` | SHA-256 checksums of the files in this directory (excluding this file) | | |
| ## 3. Download | |
| Download the full repository from ModelScope: | |
| ```bash | |
| modelscope download --model UGREENDEV/RK182X-LLM-functiongemma-270m-it --revision master --local_dir ./RK182X-LLM-functiongemma-270m-it | |
| ``` | |
| Download the full repository from Hugging Face: | |
| ```bash | |
| hf download UGREENDEV/RK182X-LLM-functiongemma-270m-it --revision v1.1.0 --local-dir ./RK182X-LLM-functiongemma-270m-it | |
| ``` | |
| Download a specific configuration from ModelScope: | |
| ```python | |
| from modelscope import snapshot_download | |
| snapshot_download( | |
| "UGREENDEV/RK182X-LLM-functiongemma-270m-it", | |
| revision="master", | |
| allow_patterns=["README.md", "README_CN.md", "LICENSE", "Notice", "USE_RESTRICTIONS.txt", "functiongemma-270m-it-w4a16-8-8192/**"], | |
| local_dir="./RK182X-LLM-functiongemma-270m-it", | |
| ) | |
| ``` | |
| Download a specific configuration from Hugging Face: | |
| ```bash | |
| hf download UGREENDEV/RK182X-LLM-functiongemma-270m-it --revision v1.1.0 --include "README.md" "README_CN.md" "LICENSE" "Notice" "USE_RESTRICTIONS.txt" "functiongemma-270m-it-w4a16-8-8192/**" --local-dir ./RK182X-LLM-functiongemma-270m-it | |
| ``` | |
| ## 4. SHA-256 Verification | |
| Run in the configuration directory: | |
| ```bash | |
| cd ./RK182X-LLM-functiongemma-270m-it/functiongemma-270m-it-w4a16-8-8192 | |
| sha256sum -c SHA256SUMS | |
| ``` | |
| Deploy only after all entries show `OK`. | |
| ## 5. Compatibility and Limitations | |
| - Supported Chips: RK1820, RK1828. | |
| - Use the matching RKNN Runtime and driver. Check the device-side version with `rknn-smi -v` before running. | |
| - Use the files from the selected configuration directory together. | |
| - Designed for tool calling; use the matching tool prompt template. | |
| ## 6. Copyright and License | |
| See [LICENSE](LICENSE) in the repository root for the source model license; The RKNN Toolkit and RKNN Runtime license terms also apply. | |
| This release is an RKNN-converted/quantized derivative of the source model. The original license and attribution notices are retained; see [Notice](Notice). | |
| The source model uses Gemma Terms of Use, not Apache 2.0. Use and redistribution are also subject to the [usage restrictions](USE_RESTRICTIONS.txt). | |