Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
88aca83
clean up repeated .md files
shivangi221b Feb 11, 2026
6dac922
delete unused files
shivangi221b Feb 13, 2026
0efa213
Restore eval scripts and submission dir
shivangi221b Feb 17, 2026
70d39d2
Recover eval results
shivangi221b Feb 17, 2026
02e869f
fix fix fix
shivangi221b Feb 17, 2026
407730c
Merge main into shivangi_cleanup_2: keep branch deletions (no QUICK_R…
shivangi221b Feb 17, 2026
a07bdb0
Add project deliverables
GAInTheHouse Dec 17, 2025
0ce5097
Week 1: Complete Dockerized Training Environment
kavyavenk Feb 11, 2026
2f2e838
week 1 - completed dockerized training env
kavyavenk Feb 11, 2026
02b9dc0
Merge remote-tracking branch 'origin/main' into kavya
kavyavenk Feb 21, 2026
10936ed
Reorganize files per PR review: move evaluation scripts, consolidate …
kavyavenk Feb 23, 2026
b7c6d9f
Data creation scripts
GAInTheHouse Feb 24, 2026
b6d6701
Merge remote-tracking branch 'origin/main' into gxa/create-data
GAInTheHouse Feb 25, 2026
44d43a2
Update scripts/bootstrap_data.py
GAInTheHouse Feb 25, 2026
14fae3b
Merge remote-tracking branch 'origin/main' into gxa/create-data
GAInTheHouse Feb 25, 2026
0509724
Scrappy prototyping of new datasets
GAInTheHouse Feb 27, 2026
6486cac
Some prototyping
GAInTheHouse Feb 28, 2026
e8cd817
Copilot tried to create a robust data gathering engine while also eva…
GAInTheHouse Feb 28, 2026
511d9ff
Minor fixes
GAInTheHouse Mar 1, 2026
4fea057
Trying to debug datasets that don't work.
GAInTheHouse Mar 1, 2026
057b189
Fix core dataset issues
GAInTheHouse Mar 1, 2026
c8fb049
Create manifests for ST_AEDS & fix VOXPOPULI
GAInTheHouse Mar 1, 2026
a2a017f
Consolidate all changes in this branch
GAInTheHouse Mar 1, 2026
743fb12
Exclude voxpopuli when trying to download all data.
GAInTheHouse Mar 2, 2026
82de86c
Switc from hard-coded logs to fluid logs
GAInTheHouse Mar 2, 2026
e327279
Fix issues outlined by GitHub copilot
GAInTheHouse Mar 2, 2026
4405a19
Fix Copilot comments
GAInTheHouse Mar 2, 2026
8fd07dd
Minor changes
GAInTheHouse Mar 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,17 @@ data/raw/*
data/processed/*
data/augmented/*
data/evaluation/*
data/huggingface/
data/openslr/
data/git/
data/manifests/*.csv
data/.hf_cache/
*.mp3
*.flac
*.wav
*.tar.gz
*.tgz
*.zip
!data/*/.gitkeep

# Model files
Expand Down Expand Up @@ -49,6 +58,7 @@ credentials/
# Logs
logs/
*.log
.cursor/debug-*.log

# OS
.DS_Store
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
make \
libsndfile1 \
ffmpeg \
git-lfs \
&& git lfs install \
&& rm -rf /var/lib/apt/lists/*

# Copy requirements
Expand All @@ -33,6 +35,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libsndfile1 \
ffmpeg \
curl \
git \
git-lfs \
&& git lfs install \
&& rm -rf /var/lib/apt/lists/*

# Copy Python dependencies from builder
Expand Down
42 changes: 35 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ Adaptive-Self-Learning-Agentic-AI-System/
│ └── example_usage.py # Usage examples
├── scripts/ # Setup and deployment
│ ├── gather_data.py # Unified data gathering
│ ├── augment_audio.py # Audio augmentation
│ ├── data_gatherer/ # Data gathering system
│ ├── setup_environment.py # Environment setup
│ ├── verify_setup.py # Verify installation
│ ├── quick_setup.sh # Quick setup script
│ ├── setup_gcp_gpu.sh # GCP GPU VM creation
│ ├── deploy_to_gcp.py # Deploy to GCP
│ ├── monitor_gcp_costs.py # Cost monitoring
│ ├── preprocess_data.py # Data preprocessing
│ └── download_datasets.py # Dataset downloads
│ └── monitor_gcp_costs.py # Cost monitoring
├── data/ # Data storage (created at runtime)
│ ├── raw/ # Raw audio files
Expand All @@ -111,27 +112,54 @@ Adaptive-Self-Learning-Agentic-AI-System/
│ ├── QUICK_REFERENCE.md # Command reference
│ └── LLM_INTEGRATION.md # Gemma LLM integration
└── requirements.txt # Python dependencies
├── environment.yml # Conda environment specification
├── requirements.txt # Python dependencies
├── Dockerfile # Docker image configuration
└── SETUP.md # Environment setup guide
```

## 🚀 Quick Start

### Prerequisites
- Python 3.8+
- Python 3.9+
- CUDA-capable GPU (optional, for faster inference)
- Google Cloud account (optional, for cloud integration)
- Git LFS (for downloading large datasets)

### Installation

**For detailed setup instructions, see [SETUP.md](SETUP.md)** which covers:
- Conda environment setup (recommended)
- Docker setup (for production)
- Manual installation (advanced)

**Quick start with Conda:**

```bash
# 1. Clone the repository
git clone <repository-url>
cd Adaptive-Self-Learning-Agentic-AI-System

# 2. Create virtual environment
python -m venv venv
# 2. Create conda environment (includes git-lfs, ffmpeg, and all dependencies)
conda env create -f environment.yml
conda activate stt-genai

# 3. Verify installation
python -c "import torch; print(torch.__version__)"
git lfs version
```

**Alternative: Manual installation:**

```bash
# 1. Create virtual environment
python3.9 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

# 2. Install git-lfs (if not already installed)
# macOS: brew install git-lfs && git lfs install
# Ubuntu: sudo apt install git-lfs && git lfs install

# 3. Install dependencies
pip install -r requirements.txt

Expand Down
219 changes: 219 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
# Environment Setup

This document describes how to set up the development environment for the STT Autonomous Fine-Tuning Pipeline.

## Option 1: Conda Environment (Recommended for Development)

### Prerequisites

- [Anaconda](https://www.anaconda.com/download) or [Miniconda](https://docs.conda.io/en/latest/miniconda.html) installed
- Sufficient disk space (~10GB for environment + datasets)

### Quick Setup

```bash
# Create the environment from environment.yml
conda env create -f environment.yml

# Activate the environment
conda activate stt-genai

# Verify installation
python -c "import torch; print(f'PyTorch: {torch.__version__}')"
git lfs version
```

### What's Included

The `stt-genai` conda environment includes:

- **Python 3.9**
- **PyTorch 2.0+** with GPU support (if available)
- **Hugging Face libraries**: transformers, datasets, accelerate, peft
- **Audio processing**: librosa, soundfile, pydub, ffmpeg
- **Git LFS**: For downloading large file repositories (e.g., PriMock57)
- **Data science**: numpy, pandas, scipy, scikit-learn
- **Visualization**: matplotlib, seaborn
- **Experiment tracking**: wandb
- **Development tools**: pytest, black, flake8

### Updating the Environment

If dependencies change:

```bash
# Update existing environment
conda env update -f environment.yml --prune

# Or recreate from scratch
conda env remove -n stt-genai
conda env create -f environment.yml
```

### Running Data Gathering Scripts

```bash
# Activate environment
conda activate stt-genai

# Download all datasets
python scripts/gather_data.py --sources all

# Download specific datasets
python scripts/gather_data.py --datasets common_voice_17_0 tedlium3
```

## Option 2: Docker (Recommended for Production)

### Prerequisites

- [Docker](https://docs.docker.com/get-docker/) installed
- Docker daemon running

### Build and Run

```bash
# Build the Docker image
docker build -t stt-api:latest .

# Run the container
docker run -p 8080:8080 \
-e USE_GCS=false \
-v $(pwd)/data:/app/data \
stt-api:latest

# Or use docker-compose (if available)
docker-compose up
```

### What's Included

The Docker image includes:

- **Python 3.9** runtime
- **Git LFS** pre-installed and configured
- **FFmpeg** for audio processing
- **All Python dependencies** from requirements.txt
- **Production-ready** API server with health checks

### Data Gathering in Docker

To download datasets using Docker:

```bash
# Run data gathering inside container
docker run --rm \
-v $(pwd)/data:/app/data \
stt-api:latest \
python scripts/gather_data.py --sources all
```

## Option 3: Manual Setup (Advanced)

If you prefer manual installation without conda or Docker:

### System Requirements

1. **Python 3.9+**
2. **Git LFS**:
- macOS: `brew install git-lfs && git lfs install`
- Ubuntu/Debian: `sudo apt install git-lfs && git lfs install`
- Windows: Download from [git-lfs.github.com](https://git-lfs.github.com/)

3. **FFmpeg**:
- macOS: `brew install ffmpeg`
- Ubuntu/Debian: `sudo apt install ffmpeg`
- Windows: Download from [ffmpeg.org](https://ffmpeg.org/download.html)

### Installation Steps

```bash
# Create virtual environment
python3.9 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

# Upgrade pip
pip install --upgrade pip

# Install dependencies
pip install -r requirements.txt

# Verify installation
python -c "import torch; print(torch.__version__)"
git lfs version
```

## Verification

After setup, verify everything works:

```bash
# Test import of key modules
python -c "
from scripts.data_gatherer.dataset_utils import configure_logging
from scripts.data_gatherer.source_plugins.huggingface_plugin import HuggingFacePlugin
from scripts.data_gatherer.source_plugins.openslr_plugin import OpenSLRPlugin
from scripts.data_gatherer.source_plugins.git_plugin import GitPlugin
print('✓ All modules imported successfully')
"

# Test data gathering with small dataset
python scripts/gather_data.py --datasets afrimedqa --force

# Check output
ls -lh data/manifests/afrimedqa*.csv
```

## Troubleshooting

### Issue: "Git LFS not found"

**Solution**:
- Conda: `conda install -c conda-forge git-lfs && git lfs install`
- Manual: See system requirements above

### Issue: VoxPopuli "Could not load libtorchcodec"

**Solution**:
- VoxPopuli requires torchcodec with FFmpeg shared libraries
- See detailed setup guide in `scripts/data_gather.md` (VoxPopuli Special Setup section)
- Quick fix (conda): `conda install -c conda-forge ffmpeg`

### Issue: "Failed to load dataset X"

**Common causes**:
1. Dataset removed from Hugging Face Hub → Check `scripts/data_gatherer/dataset_registry.yaml` for updated mirrors
2. Network connectivity issues → Check internet connection
3. Hugging Face authentication required → Run `huggingface-cli login`

### Issue: "ModuleNotFoundError"

**Solution**:
```bash
# Conda
conda env update -f environment.yml --prune

# Manual/Docker
pip install -r requirements.txt --upgrade
```

### Issue: Docker build fails

**Solution**:
- Ensure you have sufficient disk space (~5GB for image)
- Check Docker daemon is running: `docker info`
- Try clearing Docker cache: `docker system prune -a`

## Next Steps

After environment setup:

1. **Download datasets**: See `scripts/data_gather.md`
2. **Train models**: See main `README.md`
3. **Run API**: See `src/README.md` (if available)

## Support

For issues or questions:
- Check documentation in `scripts/data_gatherer/README.md`
- Review `scripts/data_gather.md` for common workflows
Loading