Instructions to use KillerBoss/functiongemma-plantgame-de with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use KillerBoss/functiongemma-plantgame-de with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use KillerBoss/functiongemma-plantgame-de 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 KillerBoss/functiongemma-plantgame-de:F16 # Run inference directly in the terminal: llama cli -hf KillerBoss/functiongemma-plantgame-de:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KillerBoss/functiongemma-plantgame-de:F16 # Run inference directly in the terminal: llama cli -hf KillerBoss/functiongemma-plantgame-de: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 KillerBoss/functiongemma-plantgame-de:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf KillerBoss/functiongemma-plantgame-de:F16
Use Docker
docker model run hf.co/KillerBoss/functiongemma-plantgame-de:F16
- Llama new
- LM Studio
- Jan
- Ollama
How to use KillerBoss/functiongemma-plantgame-de with Ollama:
ollama run hf.co/KillerBoss/functiongemma-plantgame-de:F16
- Unsloth Desktop
- Docker Model Runner
How to use KillerBoss/functiongemma-plantgame-de with Docker Model Runner:
docker model run hf.co/KillerBoss/functiongemma-plantgame-de:F16
- Lemonade
How to use KillerBoss/functiongemma-plantgame-de with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KillerBoss/functiongemma-plantgame-de:F16
Run and chat with the model
lemonade run user.functiongemma-plantgame-de-F16
List all available models
lemonade list
- Atomic Chat
Docs: On-Device-Artefakte (LiteRT/TFLite/NPU) beschrieben
Browse files
README.md
CHANGED
|
@@ -1,38 +1,47 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: gemma
|
| 3 |
-
base_model: google/functiongemma-270m-it
|
| 4 |
-
language:
|
| 5 |
-
- de
|
| 6 |
-
library_name: transformers
|
| 7 |
-
pipeline_tag: text-generation
|
| 8 |
tags:
|
| 9 |
- function-calling
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
-
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
-
# FunctionGemma
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
-
##
|
| 22 |
-
- 4500 Beispiele (3825 train / 675 eval), 8 Funktionen (plantSeed, waterPlots, harvestPlots,
|
| 23 |
-
fertilizePlot, plantAll, harvestAll, getStatus, help)
|
| 24 |
-
- Einfache Aufgaben, Multi-Tool-Calls (bis 3), bedingte Parameter (Duengerdosis nach
|
| 25 |
-
Pflanzenzustand, Giessintervall nach Saison), Out-of-Scope-Ablehnung
|
| 26 |
-
- Format: FunctionGemma-Chat-Template mit tools-Argument, 3x3-Grid (1-basiert)
|
| 27 |
|
| 28 |
-
|
| 29 |
-
-
|
| 30 |
-
-
|
|
|
|
|
|
|
| 31 |
|
| 32 |
-
##
|
| 33 |
-
- Exact-Match (Name + Argumente) auf 150 Eval-Beispielen: **98.7%**
|
| 34 |
-
- Details siehe eval_result.json, Loss-Kurve siehe loss_curve.png
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language: de
|
| 3 |
license: gemma
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- function-calling
|
| 6 |
+
- gemma3
|
| 7 |
+
- litert
|
| 8 |
+
- tflite
|
| 9 |
+
- on-device
|
| 10 |
+
- qualcomm
|
| 11 |
+
- npu
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# FunctionGemma PlantGame DE — On-Device-Artefakte (LiteRT / TFLite / NPU)
|
| 15 |
|
| 16 |
+
Dieses Repo enthält das für **Google AI Edge Gallery** aufbereitete Fine-Tune
|
| 17 |
+
`functiongemma-plantgame-de` (Basis: `google/functiongemma-270m-it`, Architektur: Gemma 3 270M)
|
| 18 |
+
für die lokale Ausführung auf Android (z. B. Samsung Galaxy S26 Ultra, Snapdragon 8 Elite Gen 5 / SM8850).
|
| 19 |
|
| 20 |
+
## Artefakte (Ordner `litertlm/`)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
| Datei | Format | Ziel-Hardware | Quantisierung | Kontext |
|
| 23 |
+
|---|---|---|---|---|
|
| 24 |
+
| `functiongemma-plantgame-de-wi8emb4-ekv1280.litertlm` | LiteRT-LM (`.litertlm`) | **CPU + GPU** | 8-bit Gewichte, 4-bit Embeddings (per-channel) | Prefill-Chunks 128, KV-Cache 1280 |
|
| 25 |
+
| `functiongemma-plantgame-de-int8-ekv1280.task` | MediaPipe Task (`.task`) | **CPU + GPU** | 8-bit dynamisch + 4-bit Embeddings | Prefill-Chunks 128, KV-Cache 1280 |
|
| 26 |
+
| `functiongemma-plantgame-de-qnn-sm8850.litertlm` | LiteRT-LM, QNN-AOT-kompiliert | **NPU (Hexagon)** — nur Snapdragon SM8850 | w8a16 (a16w8) via LiteRT NPU-Compiler | Prefill-Chunks 128, KV-Cache 1280 |
|
| 27 |
|
| 28 |
+
## Verwendung in Google AI Edge Gallery
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
1. AI Edge Gallery installieren (Standard-APK für CPU/GPU; **NPU-Preview-APK** für Snapdragon-NPU).
|
| 31 |
+
2. In der App: **Add model** → URL auf die `.litertlm`- bzw. `.task`-Datei in diesem Repo eingeben
|
| 32 |
+
(oder Datei über den Dateimanager importieren).
|
| 33 |
+
3. CPU/GPU-Artefakt: normal starten; in den Einstellungen lässt sich **GPU-Beschleunigung** aktivieren.
|
| 34 |
+
4. NPU-Artefakt: nur in der NPU-fähigen Gallery-Build auf einem Gerät mit Snapdragon **SM8850**
|
| 35 |
+
(Galaxy S26 Ultra) starten — die QNN-Kompilierung ist SoC-spezifisch und läuft auf anderen Chips nicht.
|
| 36 |
+
|
| 37 |
+
## Technik
|
| 38 |
+
|
| 39 |
+
- Konvertierung: `litert-torch export_hf` (LiteRT-Torch Generative Pipeline)
|
| 40 |
+
- NPU: `compile_litertlm` mit Backend `qualcomm`, SoC `SM8850`, O3-Optimierung
|
| 41 |
+
- Signatur-Konventionen: `prefill_128`, Decode mit transponiertem KV-Cache
|
| 42 |
+
- Tokenizer: SentencePiece (`tokenizer.model`), Start-Token `<bos>`, Stop-Token `<eos>` / `<end_of_turn>`
|
| 43 |
+
|
| 44 |
+
## Trainingsquelle
|
| 45 |
+
|
| 46 |
+
Fein-Tuning auf Kaggle (LoRA-frei, Full-FT, 2 Epochen, 3825 Trainings-/675 Eval-Samples):
|
| 47 |
+
Exact-Match **148/150 = 98,7 %** auf dem deutschen PlantGame-Function-Calling-Eval.
|