Gemma Model Plugin for DashAI
This plugin integrates Google's Gemma 3 language models into the DashAI framework using the llama.cpp backend. It enables efficient and flexible text generation with GGUF quantized models and supports private access using a Hugging Face API token.
Included Models
1. Gemma 3 1B It QAT
- Lightweight instruction-tuned model with 1.3B parameters
- Quantized and optimized for local inference (
q4_0format) - Based on
google/gemma-3-1b-it-qat-q4_0-gguf
2. Gemma 3 4B It QAT
- Instruction-tuned model with 4B parameters
- Balanced size and capability for local or cloud deployment
- Based on
google/gemma-3-4b-it-qat-q4_0-gguf
Both models are instruction-tuned, designed for high-quality generation and compatibility with CPU or GPU inference using llama.cpp.
About Gemma
Gemma is a family of lightweight, state-of-the-art open models from Google, developed with the same technology as the Gemini models.
Key features of Gemma 3 models:
- Multimodal: support text and image input (in general; this plugin currently handles text-only generation)
- Large context window: up to 128K tokens
- Instruction-tuned variants available
- Multilingual: over 140 languages supported
- Open weights with access control via Hugging Face
Gemma is designed for deployment on laptops, desktops, and cloud infrastructure, making advanced AI more accessible.
Features
- Text generation via chat-style prompt completion
- GGUF format for optimized performance and memory usage
- Configurable generation parameters:
max_tokens: Output lengthtemperature: Output randomnessfrequency_penalty: Controls repetitioncontext_window: Number of tokens per forward passdevice:"gpu"or"cpu"
- Automatic login to Hugging Face to access gated models
Model Parameters
| Parameter | Description | Default |
|---|---|---|
model_name |
Model ID from Hugging Face | "google/gemma-3-4b-it-qat-q4_0-gguf" |
huggingface_key |
Hugging Face API token to access restricted models | Required |
max_tokens |
Maximum number of tokens to generate | 100 |
temperature |
Sampling temperature (higher = more random) | 0.7 |
frequency_penalty |
Penalizes repeated tokens to encourage diversity | 0.1 |
context_window |
Maximum context window (tokens in prompt) | 512 |
device |
Inference device ("gpu" or "cpu") |
"gpu" if available |
Requirements
DashAIllama-cpp-python- Valid Hugging Face Access Token
- Model files from Hugging Face:
⚠️ Access Notice: You must accept the model terms on Hugging Face and use a valid Hugging Face token.
This repository is publicly accessible, but gated. You need to agree to share your contact information to access the model files.
Notes
This plugin uses the GGUF format, developed by the llama.cpp team for fast inference and low memory consumption.
The model is pretrained and instruction-tuned for inference and is not designed for fine-tuning.
Currently, this plugin supports only text generation (not image inputs).
Metadata
Release files for dashai-gemma-model-package 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dashai_gemma_model_package-0.0.1.tar.gz | 19.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dashai_gemma_model_package-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / dashai_gemma_model_package-0.0.1.tar.gz
| Download URL | dashai_gemma_model_package-0.0.1.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ebca2e11a8674704c2cb7baeed45abb54e9d8675f3261bd3d3b86f851003423
|
|
BLAKE2b-256 checksum How to use checksums |
9bae0750e2806a89f9ab22728ee1cf7bda67b5f64fc7cfe5e1efea09fe60da1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / dashai_gemma_model_package-0.0.1-py3-none-any.whl
| Download URL | dashai_gemma_model_package-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
953907b4a9664b7c0c4385d529fd124b23d83ce9dc31e903c1102bc73b6c7e5d
|
|
BLAKE2b-256 checksum How to use checksums |
78cb62b8be783cf740c999a2879b59a6ac9340077eb8596bd03199ac01aecba9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Security for dashai-gemma-model-package 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.