Instructions to use loll070303/GEMMA3-micio-IT-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use loll070303/GEMMA3-micio-IT-gguf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="loll070303/GEMMA3-micio-IT-gguf") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("loll070303/GEMMA3-micio-IT-gguf") model = AutoModelForCausalLM.from_pretrained("loll070303/GEMMA3-micio-IT-gguf", device_map="auto") 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 Settings
- llama.cpp
How to use loll070303/GEMMA3-micio-IT-gguf 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 loll070303/GEMMA3-micio-IT-gguf # Run inference directly in the terminal: llama cli -hf loll070303/GEMMA3-micio-IT-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf loll070303/GEMMA3-micio-IT-gguf # Run inference directly in the terminal: llama cli -hf loll070303/GEMMA3-micio-IT-gguf
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 loll070303/GEMMA3-micio-IT-gguf # Run inference directly in the terminal: ./llama-cli -hf loll070303/GEMMA3-micio-IT-gguf
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 loll070303/GEMMA3-micio-IT-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf loll070303/GEMMA3-micio-IT-gguf
Use Docker
docker model run hf.co/loll070303/GEMMA3-micio-IT-gguf
- LM Studio
- Jan
- Ollama
How to use loll070303/GEMMA3-micio-IT-gguf with Ollama:
ollama run hf.co/loll070303/GEMMA3-micio-IT-gguf
- Unsloth Desktop
- Docker Model Runner
How to use loll070303/GEMMA3-micio-IT-gguf with Docker Model Runner:
docker model run hf.co/loll070303/GEMMA3-micio-IT-gguf
- Lemonade
How to use loll070303/GEMMA3-micio-IT-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull loll070303/GEMMA3-micio-IT-gguf
Run and chat with the model
lemonade run user.GEMMA3-micio-IT-gguf-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Gemma3-MICIO-IT (Intent Classification Engine)
๐ฌ Model Description
Gemma3-MICIO-IT is a specialized Large Language Model (LLM) fine-tuned for Intent Classification in Italian and English, specifically optimized for Smart Home and IoT ecosystems. Built upon the Gemma 3 270M architecture, the model is designed for high-efficiency deployment on local edge devices, ensuring data privacy and low-latency inference.
Technical Specifications
- Core Architecture: Gemma 3 (270M parameters)
- Training Methodology: Fine-tuned via LoRA (Low-Rank Adaptation)
- Optimization: Quantized in GGUF format for CPU/NPU-based local inference
- Primary Objective: Mapping natural language utterances to deterministic intent tokens
๐ Performance Metrics
The model was evaluated on a dedicated test set consisting of 1,083 unseen samples, demonstrating high reliability in home automation contexts.
| Metric | Value |
|---|---|
| Global Accuracy | 98.52% |
| Class Coverage | 43 Intent Classes |
| Inference Throughput | ~9,000 tokens/sec (Apple M-series/Metal) |
| Precision (Top 35 Classes) | 100% |
๐ Intent Taxonomy
The model classifies inputs into 43 discrete categories, structured into four main functional domains:
1. Internet of Things (IoT)
iot_light_on/off/getstate/changecolor: Lighting control systems.iot_plug_on/off/getstate: Smart plug and appliance management.iot_motor_on/off/getstate: Actuator control (blinds, gates, valves).iot_fan_on/off/getstate: HVAC and ventilation control.iot_sensor_presencestate/doorstate: Security and environmental sensor monitoring.
2. Multimedia & Entertainment
media_music_play/query: Audio streaming and playback.media_video_play/query: Smart TV and video content management.media_volume_up/down/mute: Audio level regulation.
3. Information Management (PIM)
alarm_set/remove/query: Time-based notification management.calendar_set/remove/query: Scheduling and appointment operations.list_createoradd/remove/query: Management of lists and reminders.
4. System Security & Utilities
malicious_prompt: Detection of adversarial inputs or prompt injection attempts.weather_query / datetime_query: Environmental and temporal data retrieval.general_greet / general_joke: Conversational fillers and basic interaction.
๐ Implementation Guide
Requirements
pip install llama-cpp-python huggingface-hub
Model Loading (GGUF)
Python
from huggingface_hub import hf_hub_download
from llama_cpp import Llama
# Download model weights
model_path = hf_hub_download(
repo_id="loll070303/GEMMA3-micio-IT-GGUF",
filename="GEMMA3-micio-IT.gguf"
)
# Initialize Inference Engine
llm = Llama(
model_path=model_path,
n_ctx=1024,
n_gpu_layers=-1, # Set to 0 for CPU-only
verbose=False
)
Inference Script
Python
SYSTEM_PROMPT = "You are an intent classifier. Reply with ONLY the intent token."
def get_intent(user_input):
response = llm.create_chat_completion(
messages=[
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": user_input}
],
max_tokens=12,
temperature=0.0
)
return response['choices'][0]['message']['content'].strip().lower()
# Usage
# Input: "Spegni tutte le luci in salotto" -> Output: "iot_light_off"
โ ๏ธ Security & Ethics
The inclusion of the malicious_prompt class provides a first-layer defense against prompt injection. However, for critical infrastructure, it is recommended to implement additional validation layers (e.g., PII masking or secondary logic checks).
๐ Citation
If this model contributes to your research or commercial project, please cite the repository to support the development of open-source NLU tools for the Italian language.
- Downloads last month
- 57
We're not able to determine the quantization variants.