Loading repository data…
Loading repository data…
kossisoroyce / repository
A lightweight, GPU-focused framework to run inference and LoRA fine-tuning on Google’s Gemma 3n family (`1.1B`, `2B`). Designed for small-scale deployments such as chatbots, assistants, or domain-specific Q&A systems.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A lightweight, GPU-focused framework to run inference and LoRA fine-tuning on Google’s Gemma 3n family (1.1B, 2B). Designed for small-scale deployments such as chatbots, assistants, or domain-specific Q&A systems.
Before you begin, you must have a Hugging Face account and accept the license terms for the Gemma model you intend to use. You will not be able to download the model weights otherwise.
This application requires a local GPU to run. The setup process differs based on your hardware:
requirements.txt bundles many necessary CUDA libraries, a full installation of the CUDA Toolkit (version 11.8 or 12.1 is recommended) is best for compatibility.Fine-tuning requires a signi ficant amount of GPU memory (VRAM). Here are some estimates:
Using 4-bit quantization (an option in the app) can lower these requirements, but performance may vary.
This project uses a Gradio web interface to simplify the fine-tuning process.
First, install the required dependencies:
pip install -r requirements.txt
Run the app.py script to start the Gradio server:
python3 app.py
This will launch a web server and provide a local URL (usually http://127.0.0.1:7860). Open this URL in your browser.
The app is organized into three tabs:
Setup & Data Processing:
Training:
Inference & Export:
your-username/my-gemma-finetune) and click Push to Hub.├── configs/ # YAML configuration files
├── core/ # Framework source code
│ ├── data.py # Dataset loading helpers
│ ├── train.py # LoRA fine-tuning entry point
│ ├── infer.py # Inference entry point
│ └── utils.py # Shared utilities
├── cli.py # Typer-based CLI wrapper
├── requirements.txt # Python dependencies
└── setup.py # Installable package definition
This project is released under the Apache 2.0 license.