Mindket

ZeroGPU Fast Mini-Trainer

Newversion 1 · updated

Overview

Fine-tunes small SmolLM models with a LoRA adapter on a ZeroGPU Space, using your own dataset. Each person signs in and spends their own daily GPU quota. For developers new to fine-tuning.

ZeroGPU Fast Mini-Trainer is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • A Hugging Face account
  • A dataset with your examples, private or public
  • Optionally, an empty model repo for the result
  • Python packages from requirements.txt, for a local copy
Runs in
  • A web browser, on the Space's page on Hugging Face, signed in with your account
  • Your own Space created from these files, with ZeroGPU hardware
  • A local copy on Windows, macOS or Linux, though the source describes only the ZeroGPU setup
Start with
pip install -U huggingface_hub
hf download Alibrown/ZeroGPU-Mini-Trainer --repo-type space --local-dir ZeroGPU-Mini-Trainer
cd ZeroGPU-Mini-Trainer

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

This is a small Gradio web page that teaches a tiny SmolLM model something new in a few minutes. You pick a base model, name a dataset and a target repo, then press a button. The result is a LoRA adapter, a small add-on for the model, instead of a rebuilt model.

Each person signs in with Hugging Face and uses their own daily ZeroGPU quota. The quota belongs to the signed-in user and not to the Space.

Who it suits

It suits people who want a first hands-on run of fine-tuning on a tiny model, with the terms explained in plain words.

IndustryWho uses itHow they use itExample
Machine learningFine-tuning beginnersTrain a first adapter on a small SmolLM2 modelA learner trains on the small test dataset from the repository
SoftwareDevelopersTeach a small model an answer style from question and answer pairsA developer prepares a train.jsonl of examples and runs it
EducationTeachersShow what epochs, loss and LoRA rank doA teacher runs two settings and compares the loss values
ResearchHobbyistsTry quick LoRA experiments within a daily GPU limitA hobbyist tests a dataset before a longer run elsewhere

You can skip it if you need to train large models or you have no Hugging Face account.

Where to use it

You use it in these places.

  • A web browser, on the Space's page on Hugging Face, signed in with your account
  • Your own Space created from these files, with ZeroGPU hardware
  • A local copy on Windows, macOS or Linux, though the source describes only the ZeroGPU setup
Use caseWhoWhat they get back
Train a first adapterBeginnersA LoRA adapter for a SmolLM2 model, with a link at the end
Test a datasetDevelopersLoss values in the status box that show whether the model is learning
Teach the termsTeachers and studentsA hands-on run that shows base model, dataset, adapter and epoch

How to set it up

You need a Hugging Face account, since the page signs you in and uses your ZeroGPU time.

  • A Hugging Face account
  • A dataset with your examples, private or public
  • Optionally, an empty model repo for the result
  • Python packages from requirements.txt, for a local copy
  1. Create a new Space with the Gradio SDK and ZeroGPU hardware.
  2. Upload app.py, requirements.txt and README.md, and wait until the Space shows Running. Keep README.md, because it holds the Space's settings.
  3. Create a dataset, private is fine, and upload train.jsonl.
  4. Optionally create an empty private model repo to receive the result.
  5. For a local copy instead, run the commands below.
pip install -U huggingface_hub
hf download Alibrown/ZeroGPU-Mini-Trainer --repo-type space --local-dir ZeroGPU-Mini-Trainer
cd ZeroGPU-Mini-Trainer
pip install gradio==6.31.0
pip install -r requirements.txt
python app.py

How to use it

Open the Space and click Sign in with Hugging Face. Choose a base model, and start with the 135M one. Enter a dataset as a full URL or as name/dataset, then a target repo or leave it empty. Press the training button, labeled Training starten in the guide. The status box shows what happens, and at the end it shows the link to the finished adapter.

The dataset is a JSONL file with one example per line. The formats are detected automatically.

  • messages: the recommended format, a list of user and assistant turns
  • text: one whole example text per line
  • instruction and output: also prompt and response, or question and answer
{"messages": [{"role": "user", "content": "Hi"}, {"role": "assistant", "content": "Hallo!"}]}
SettingWhat it does
Max GPU secondsSets how long training may run. A free account has about 5 minutes a day, and 150 seconds leaves room for a second try.
Max examplesSets how many rows of the dataset are used
EpochsOne pass over all examples. The guide suggests 2 or 3 for small datasets and 1 for large ones.
LoRA rankSets the size of the add-on. The guide calls 16 a good start.
Learning rateThe guide says 2e-4 fits LoRA almost always

To use the trained adapter, load it on top of the base model.

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "HuggingFaceTB/SmolLM2-135M-Instruct"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base)
model = PeftModel.from_pretrained(model, "dein-name/dein-modell-repo")

Example

You choose SmolLM2-135M-Instruct, enter your dataset name, leave the target repo empty and press the training button with 150 GPU seconds. The status box reports progress and, at the end, a link to your finished adapter.

For newcomers and experts

Fine-tuning teaches a model that already works some new behavior from examples. A LoRA adapter does this by training only a small add-on instead of the whole model, which is quick and cheap. Try the small test dataset and the 135M model first, and watch the loss value fall in the status box.

Under the hood, the guide describes a Gradio app that runs LoRA training on SmolLM2 models, with ZeroGPU time billed to the signed-in user. The adapter can be merged into a normal model afterward with merge_and_unload. The guide suggests rank 16 and learning rate 2e-4 as defaults.

  1. Sign in with Hugging Face
  2. Pick a base model and a dataset
  3. LoRA training runs on ZeroGPU
  4. The adapter goes to your target repo
  5. You load it on top of the base model

Good to know

The daily GPU quota is the main limit, and a few usual errors have simple fixes.

  • Quota error: the day's time is used up, so wait a day or set fewer seconds.
  • Columns not recognized: change the dataset format or name the column in the text column field.
  • Access denied: allow read and write rights at sign-in.
  • Training changes little: use more and cleaner examples.
  • License: agpl-3.
  • Cost to run: none named beyond the ZeroGPU quota of the signed-in Hugging Face account.
  • Data it reaches: your Hugging Face account, your dataset and the target repo where the adapter is stored.
  • Not for: rebuilding a whole model, since it trains only a small LoRA add-on for small SmolLM models.

README and files

README

ZeroGPU Fast Mini-Trainer

Fine-tunes small SmolLM models with a LoRA adapter on a ZeroGPU Space, using your own dataset. Each person signs in and spends their own daily GPU quota. For developers new to fine-tuning.

Made by Alibrown on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: This is a small Gradio web page that teaches a tiny SmolLM model something new in a few minutes. You pick a base model, name a dataset and a target repo, then press a button. The result is a LoRA adapter, a small add-on for the model, instead of a rebuilt model.

Each person signs in with Hugging Face and uses their own daily ZeroGPU quota. The quota belongs to the signed-in user and not to the Space.

Who it suits: It suits people who want a first hands-on run of fine-tuning on a tiny model, with the terms explained in plain words.

Industry | Who uses it | How they use it | Example
Machine learning | Fine-tuning beginners | Train a first adapter on a small SmolLM2 model | A learner trains on the small test dataset from the repository
Software | Developers | Teach a small model an answer style from question and answer pairs | A developer prepares a train.jsonl of examples and runs it
Education | Teachers | Show what epochs, loss and LoRA rank do | A teacher runs two settings and compares the loss values
Research | Hobbyists | Try quick LoRA experiments within a daily GPU limit | A hobbyist tests a dataset before a longer run elsewhere

You can skip it if you need to train large models or you have no Hugging Face account.

Where to use it: You use it in these places.

  • A web browser, on the Space's page on Hugging Face, signed in with your account
  • Your own Space created from these files, with ZeroGPU hardware
  • A local copy on Windows, macOS or Linux, though the source describes only the ZeroGPU setup
Use case | Who | What they get back
Train a first adapter | Beginners | A LoRA adapter for a SmolLM2 model, with a link at the end
Test a dataset | Developers | Loss values in the status box that show whether the model is learning
Teach the terms | Teachers and students | A hands-on run that shows base model, dataset, adapter and epoch

How to set it up: You need a Hugging Face account, since the page signs you in and uses your ZeroGPU time.

  • A Hugging Face account
  • A dataset with your examples, private or public
  • Optionally, an empty model repo for the result
  • Python packages from requirements.txt, for a local copy
  1. Create a new Space with the Gradio SDK and ZeroGPU hardware.
  2. Upload app.py, requirements.txt and README.md, and wait until the Space shows Running. Keep README.md, because it holds the Space's settings.
  3. Create a dataset, private is fine, and upload train.jsonl.
  4. Optionally create an empty private model repo to receive the result.
  5. For a local copy instead, run the commands below.
pip install -U huggingface_hub
hf download Alibrown/ZeroGPU-Mini-Trainer --repo-type space --local-dir ZeroGPU-Mini-Trainer
cd ZeroGPU-Mini-Trainer
pip install gradio==6.31.0
pip install -r requirements.txt
python app.py

How to use it: Open the Space and click Sign in with Hugging Face. Choose a base model, and start with the 135M one. Enter a dataset as a full URL or as name/dataset, then a target repo or leave it empty. Press the training button, labeled Training starten in the guide. The status box shows what happens, and at the end it shows the link to the finished adapter.

The dataset is a JSONL file with one example per line. The formats are detected automatically.

  • messages: the recommended format, a list of user and assistant turns
  • text: one whole example text per line
  • instruction and output: also prompt and response, or question and answer
{"messages": [{"role": "user", "content": "Hi"}, {"role": "assistant", "content": "Hallo!"}]}
Setting | What it does
Max GPU seconds | Sets how long training may run. A free account has about 5 minutes a day, and 150 seconds leaves room for a second try.
Max examples | Sets how many rows of the dataset are used
Epochs | One pass over all examples. The guide suggests 2 or 3 for small datasets and 1 for large ones.
LoRA rank | Sets the size of the add-on. The guide calls 16 a good start.
Learning rate | The guide says 2e-4 fits LoRA almost always

To use the trained adapter, load it on top of the base model.

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base = "HuggingFaceTB/SmolLM2-135M-Instruct"
tok = AutoTokenizer.from_pretrained(base)
model = AutoModelForCausalLM.from_pretrained(base)
model = PeftModel.from_pretrained(model, "dein-name/dein-modell-repo")

Example: You choose SmolLM2-135M-Instruct, enter your dataset name, leave the target repo empty and press the training button with 150 GPU seconds. The status box reports progress and, at the end, a link to your finished adapter.

For newcomers and experts: Fine-tuning teaches a model that already works some new behavior from examples. A LoRA adapter does this by training only a small add-on instead of the whole model, which is quick and cheap. Try the small test dataset and the 135M model first, and watch the loss value fall in the status box.

Under the hood, the guide describes a Gradio app that runs LoRA training on SmolLM2 models, with ZeroGPU time billed to the signed-in user. The adapter can be merged into a normal model afterward with merge_and_unload. The guide suggests rank 16 and learning rate 2e-4 as defaults.

Sign in with Hugging Face
Pick a base model and a dataset
LoRA training runs on ZeroGPU
The adapter goes to your target repo
You load it on top of the base model

Good to know: The daily GPU quota is the main limit, and a few usual errors have simple fixes.

  • Quota error: the day's time is used up, so wait a day or set fewer seconds.
  • Columns not recognized: change the dataset format or name the column in the text column field.
  • Access denied: allow read and write rights at sign-in.
  • Training changes little: use more and cleaner examples.
  • License: agpl-3.
  • Cost to run: none named beyond the ZeroGPU quota of the signed-in Hugging Face account.
  • Data it reaches: your Hugging Face account, your dataset and the target repo where the adapter is stored.
  • Not for: rebuilding a whole model, since it trains only a small LoRA add-on for small SmolLM models.

On Hugging Face, 13 November 2026

  • Likes: 1
  • Built with: gradio
  • License: agpl-3.0

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  7 KB

1 file, 7 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
ZeroGPU Fast Mini-Trainer This page1gradioagpl-3.0
FLUX.1 [dev]Shares gradio9,583gradiomit
InstantIDShares gradio3,659gradioapache-2.0
Chat With Janus-Pro-7BShares gradio2,036gradiomit
PhotoMakerShares gradio1,960gradioapache-2.0
Z Image TurboShares gradio1,940gradioapache-2.0
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Nanosaur2-670M

well9472 · Kit

Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…

New

Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.

New

Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.

New

Similar in Developer

See all in Developer

Wan2.2-S2V-14B

Wan-AI · Kit

Generates cinematic video of a character driven by an audio track, and can also lip-sync existing video. For video creators, animators and researchers with a l…

New

Wan2.2-Animate-14B

Wan-AI · Kit

Animates a character or swaps one into a video by copying a performer's movement and expressions, as one model from the Wan2.2 video family. Use only faces and…

New

d3-turbo

vllm-sr · Kit

Answers choice, yes-or-no, score, box and tracking questions about text, images or video in one call, with a probability for each answer. For people building r…

New