Text Generation
Transformers
Safetensors
English
gemma3_text
function-calling
tool-use
mobile
gemma
unsloth
fine-tuned
conversational
text-generation-inference
Instructions to use essobi/functiongemma-mobile-actions-v6-16bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use essobi/functiongemma-mobile-actions-v6-16bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="essobi/functiongemma-mobile-actions-v6-16bit") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("essobi/functiongemma-mobile-actions-v6-16bit") model = AutoModelForCausalLM.from_pretrained("essobi/functiongemma-mobile-actions-v6-16bit") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use essobi/functiongemma-mobile-actions-v6-16bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "essobi/functiongemma-mobile-actions-v6-16bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "essobi/functiongemma-mobile-actions-v6-16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/essobi/functiongemma-mobile-actions-v6-16bit
- SGLang
How to use essobi/functiongemma-mobile-actions-v6-16bit with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "essobi/functiongemma-mobile-actions-v6-16bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "essobi/functiongemma-mobile-actions-v6-16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "essobi/functiongemma-mobile-actions-v6-16bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "essobi/functiongemma-mobile-actions-v6-16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use essobi/functiongemma-mobile-actions-v6-16bit 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 essobi/functiongemma-mobile-actions-v6-16bit 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 essobi/functiongemma-mobile-actions-v6-16bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for essobi/functiongemma-mobile-actions-v6-16bit to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="essobi/functiongemma-mobile-actions-v6-16bit", max_seq_length=2048, ) - Docker Model Runner
How to use essobi/functiongemma-mobile-actions-v6-16bit with Docker Model Runner:
docker model run hf.co/essobi/functiongemma-mobile-actions-v6-16bit
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,21 +1,65 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
tags:
|
| 4 |
-
-
|
| 5 |
-
-
|
| 6 |
-
-
|
| 7 |
-
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
language:
|
| 10 |
-
- en
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
| 14 |
|
| 15 |
-
-
|
| 16 |
-
- **License:** apache-2.0
|
| 17 |
-
- **Finetuned from model :** unsloth/functiongemma-270m-it
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: gemma
|
| 3 |
+
library_name: transformers
|
| 4 |
tags:
|
| 5 |
+
- function-calling
|
| 6 |
+
- tool-use
|
| 7 |
+
- mobile
|
| 8 |
+
- gemma
|
| 9 |
+
- unsloth
|
| 10 |
+
- fine-tuned
|
| 11 |
+
base_model: google/gemma-3-1b-it
|
| 12 |
+
datasets:
|
| 13 |
+
- google/mobile-actions
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
language:
|
| 16 |
+
- en
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# FunctionGemma Mobile Actions v6
|
| 20 |
|
| 21 |
+
A fine-tuned version of [FunctionGemma 270M](https://huggingface.co/google/gemma-3-1b-it) optimized for mobile device function calling. This model excels at understanding natural language commands and mapping them to structured function calls for common mobile actions.
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
## Model Description
|
| 24 |
|
| 25 |
+
- **Base Model:** google/gemma-3-1b-it (270M parameters)
|
| 26 |
+
- **Fine-tuning Method:** LoRA (r=128, alpha=128)
|
| 27 |
+
- **Training Data:** [google/mobile-actions](https://huggingface.co/datasets/google/mobile-actions) + synthetic augmentation
|
| 28 |
+
- **Optimized For:** Mobile assistant function calling
|
| 29 |
+
|
| 30 |
+
## Supported Functions
|
| 31 |
+
|
| 32 |
+
| Function | Description | Example Input |
|
| 33 |
+
|----------|-------------|---------------|
|
| 34 |
+
| `set_alarm` | Set alarms | "Wake me up at 7am" |
|
| 35 |
+
| `create_reminder` | Create reminders | "Remind me to buy milk" |
|
| 36 |
+
| `set_timer` | Set countdown timers | "Timer for 10 minutes" |
|
| 37 |
+
| `make_call` | Make phone calls | "Call Mom" |
|
| 38 |
+
| `send_message` | Send text messages | "Text John I'm running late" |
|
| 39 |
+
| `create_calendar_event` | Schedule events | "Schedule meeting at 3pm" |
|
| 40 |
+
| `play_music` | Play music | "Play some jazz" |
|
| 41 |
+
| `get_weather` | Get weather info | "What's the weather like?" |
|
| 42 |
+
| `open_app` | Open applications | "Open the camera" |
|
| 43 |
+
| `navigate` | Get directions | "Navigate to the airport" |
|
| 44 |
+
| `set_volume` | Adjust volume | "Turn the volume up" |
|
| 45 |
+
| `calculator` | Math calculations | "What's 15 times 23?" |
|
| 46 |
+
|
| 47 |
+
## Usage
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
from vllm import LLM, SamplingParams
|
| 51 |
+
|
| 52 |
+
llm = LLM(model="essobi/functiongemma-mobile-actions-v6-16bit", trust_remote_code=True)
|
| 53 |
+
|
| 54 |
+
# See full documentation for prompt format and tool definitions
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Output Format
|
| 58 |
+
|
| 59 |
+
```
|
| 60 |
+
<start_function_call>call:function_name{param1:<escape>value1<escape>,param2:<escape>value2<escape>}<end_function_call>
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
## License
|
| 64 |
+
|
| 65 |
+
This model is released under the [Gemma License](https://ai.google.dev/gemma/terms).
|