How chaithanyasai18/llms-finetuning works
This repository supports a domain-specific LLM fine-tuning workflow: prepare or generate cybersecurity and IT-support training data, then adapt models using cloud LoRA or local QLoRA; it also includes an SFT configuration. The graph preserves the generator’s topic-tree and sample-generation stages, and QLoRA’s CLI, model selection, training, and utility layers. Some branches are documented rather than fully sampled, so their links are cited to the README; unsampled implementation details are not inferred.
Main entry points: trainer.py QLoRA trainer · data_engine.py Sample generation · topic_tree.py Topic tree · train.py Training CLI
Components 24
Data generation
- Generator interface
Synthetic-Data-Generator/app.py - Topic tree
Synthetic-Data-Generator/pluto/topic_tree.py - Prompt templates
Synthetic-Data-Generator/pluto/prompts.py - Sample generation
Synthetic-Data-Generator/pluto/data_engine.py - Dataset handling
Synthetic-Data-Generator/pluto/dataset.py - Generated JSONL
Synthetic-Data-Generator/data
LoRA training
- Model data preparation
Finetuning/lora-finetuning/Dataprep_scripts - LoRA pipeline
Finetuning/lora-finetuning/src/lora_finetuning_pipeline.py - SFT configuration
Finetuning/sft-finetuning/SFT_config.yaml
QLoRA training
- Training CLI
Finetuning/qlora-finetuning/src/qlora_finetuning/train.py - Training configuration
Finetuning/qlora-finetuning/src/qlora_finetuning/core/config.py - Model registry
Finetuning/qlora-finetuning/src/qlora_finetuning/models/registry.py - QLoRA trainer
Finetuning/qlora-finetuning/src/qlora_finetuning/core/trainer.py - Service authentication
Finetuning/qlora-finetuning/src/qlora_finetuning/utils/auth.py - System checks
Finetuning/qlora-finetuning/src/qlora_finetuning/utils/system.py - Training logging
Finetuning/qlora-finetuning/src/qlora_finetuning/utils/logging.py - Trained model output
Finetuning/qlora-finetuning
Training data
- Prepared datasets
Dataset/dataset.xlsx
Other components
- Researcher
- LLM provider
- PostHog telemetry
- Predibase platform
- Hugging Face Hub
- Weights & Biases
Connections 30
- Researcher → Generator interface: uses
README.md - Generator interface → Topic tree: builds topics
README.md - Generator interface → Sample generation: generates samples
README.md - Topic tree → Prompt templates: formats requests
Synthetic-Data-Generator/pluto/topic_tree.py - Topic tree → LLM provider: requests subtopics
Synthetic-Data-Generator/pluto/topic_tree.py - Topic tree → PostHog telemetry: records events
Synthetic-Data-Generator/pluto/topic_tree.py - Sample generation → Topic tree: uses paths
Synthetic-Data-Generator/pluto/data_engine.py - Sample generation → Prompt templates: uses template
Synthetic-Data-Generator/pluto/data_engine.py - Sample generation → LLM provider: requests samples
Synthetic-Data-Generator/pluto/data_engine.py - Sample generation → Dataset handling: adds samples
Synthetic-Data-Generator/pluto/data_engine.py - Sample generation → PostHog telemetry: records events
Synthetic-Data-Generator/pluto/data_engine.py - Dataset handling → Generated JSONL: saves JSONL
Synthetic-Data-Generator/pluto/dataset.py - Researcher → Model data preparation: prepares data
README.md - Model data preparation → LoRA pipeline: supplies data
README.md - Researcher → LoRA pipeline: runs training
README.md - LoRA pipeline → Predibase platform: trains on
README.md - Researcher → SFT configuration: configures SFT
README.md - Researcher → Training CLI: starts training
Finetuning/qlora-finetuning/src/qlora_finetuning/train.py - Training CLI → Training configuration: loads config
Finetuning/qlora-finetuning/src/qlora_finetuning/train.py - Training CLI → Model registry: selects model
Finetuning/qlora-finetuning/src/qlora_finetuning/train.py - Training CLI → QLoRA trainer: orchestrates training
Finetuning/qlora-finetuning/src/qlora_finetuning/train.py - QLoRA trainer → Model registry: gets model config
Finetuning/qlora-finetuning/src/qlora_finetuning/core/trainer.py - QLoRA trainer → Training configuration: uses settings
Finetuning/qlora-finetuning/src/qlora_finetuning/core/trainer.py - QLoRA trainer → System checks: checks hardware
Finetuning/qlora-finetuning/src/qlora_finetuning/core/trainer.py - QLoRA trainer → Service authentication: sets up access
- QLoRA trainer → Training logging: logs progress
- QLoRA trainer → Prepared datasets: loads training data
- QLoRA trainer → Hugging Face Hub: loads model
- QLoRA trainer → Weights & Biases: tracks experiment
- QLoRA trainer → Trained model output: saves model
Finetuning/qlora-finetuning/src/qlora_finetuning/core/trainer.py