Spaces:
Build error
Build error
|
Download README.md from crazycog/nemotron-lora-training: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/spaces/crazycog/nemotron-lora-training/resolve/main/README.md
- Command line
-
hf download hf://spaces/crazycog/nemotron-lora-training/README.md
-
curl -L -o README.md https://huggingface.co/spaces/crazycog/nemotron-lora-training/resolve/main/README.md
1.44 kB
A newer version of the Gradio SDK is available: 6.29.1
metadata
title: Nemotron LoRA Fine-tuning
emoji: π
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.0.0
app_file: app.py
pinned: false
license: apache-2.0
π LoRA Fine-tuning for Nemotron-3-8B
Train Nvidia's Nemotron-3-8B model with LoRA on your custom datasets.
Features
- β 4-bit Quantization with QLoRA
- β PEFT Integration
- β Gradio UI
- β Auto Push to Hub
- β Progress Tracking
Quick Start
- Upgrade to GPU (Settings β Hardware)
- Configure training parameters
- Add HF token if needed
- Click "Start Training"
Configuration
Default settings are optimized for A10G (24GB VRAM). Adjust for your GPU:
- T4 (16GB): batch_size=2, gradient_accumulation=8
- A10G (24GB): batch_size=4, gradient_accumulation=4
- A100 (40GB): batch_size=8, gradient_accumulation=2
Dataset Format
Supports multiple formats (auto-detected):
- Q&A:
{"question": "...", "answer": "..."} - Instruction:
{"instruction": "...", "response": "..."} - Text:
{"text": "..."}
Using the Model
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained("nvidia/nemotron-3-8b-base-4k")
model = PeftModel.from_pretrained(base_model, "YOUR_USERNAME/nemotron-lora")
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/nemotron-lora")
Support
For issues: GitHub