atai-gemma3-tool
atai-gemma3-tool is a command-line interface (CLI) tool that uses Google's Gemma 3 model to generate descriptive text from local image files. It leverages the power of a state-of-the-art multimodal model to process images and stream textual outputs in real time.
Features
- Multimodal Processing: Accepts image input and produces text output.
- Real-Time Streaming: Generates and streams tokens as they are produced.
- Customizable Prompt: Allows users to define a custom prompt.
- Easy Installation: Installable via pip with all dependencies handled.
- Asynchronous Generation: Utilizes asynchronous token streaming for quick response times.
Installation
Clone the repository and install the package in editable mode:
pip install git+https://github.com/huggingface/transformers@v4.49.0-Gemma-3
pip install atai-gemma3-tool
Usage
Run the CLI tool from your terminal by specifying the path to your image file and an optional custom prompt:
atai-gemma3-tool "path/to/your/local_image.jpg" --prompt "Describe this image in detail."
atai-gemma3-tool https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG
Command Line Arguments
- image_path: The path to your local image file or a image url.
- --prompt: (Optional) Custom prompt for text generation.
Default:"Describe this image in detail."
The tool will load the image, process it using the Gemma 3 model, and output the generated text to your console in real time.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
- Google DeepMind: For the Gemma 3 model.
- Hugging Face: For the Transformers library and supporting tools.
Metadata
Release files for atai-gemma3-tool 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atai_gemma3_tool-0.0.3.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atai_gemma3_tool-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / atai_gemma3_tool-0.0.3.tar.gz
| Download URL | atai_gemma3_tool-0.0.3.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef8ede1c6ac3c669eef9c62cc448bb244197cb535479a14080d2eb13fa9ff4ed
|
|
BLAKE2b-256 checksum How to use checksums |
9ee80405da8d94ef9b93935259eed225bf662c0bf4ee071888236516c59655e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / atai_gemma3_tool-0.0.3-py3-none-any.whl
| Download URL | atai_gemma3_tool-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf3c63cfe2f5eddd40d31c6b9e6c94447e6e91801415702f00ab2a030dba85bb
|
|
BLAKE2b-256 checksum How to use checksums |
345162ec9602b435043ce19495bbc8c371920c8b4c268f79888f1f9a1b6a14c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|