AI-Flux Documentation

Documentation for AI-Flux - LLM Batch Processing Pipeline for HPC Systems

View the Project on GitHub Center-for-AI-Innovation/ai-flux

AI-Flux Repository Structure

This document explains the organization of the AI-Flux codebase to help you understand and navigate the project.

Directory Structure

aiflux/
├── src/
│   └── aiflux/                 
│       ├── core/              
│       │   ├── processor.py   # Base processor interface
│       │   ├── config.py      # Configuration management
│       │   ├── config_manager.py # Configuration priority system
│       │   └── client.py      # LLM client interface
│       ├── processors/        # Built-in processors
│       │   └── batch.py       # JSONL batch processor
│       ├── slurm/             # SLURM integration
│       │   ├── runner.py      # SLURM job management
│       │   └── scripts/       # SLURM scripts
│       ├── converters/        # Format converters (utilities)
│       │   ├── csv.py         # CSV to JSONL converter
│       │   ├── json.py        # JSON to JSONL converter
│       │   ├── directory.py   # Directory to JSONL converter
│       │   ├── vision.py      # Vision to JSONL converter
│       │   └── utils.py       # JSONL utilities
│       ├── io/                # Input/Output handling
│       │   ├── base.py        # Base output classes
│       │   └── output/        # Output handlers
│       │       └── json_output.py # JSON output handler
│       ├── templates/         # Model templates
│       │   ├── llama3.2/
│       │   ├── llama3.3/
│       │   └── qwen2.5/
│       └── utils/            
│           └── env.py         # Environment utilities
├── examples/                  # Example implementations
├── tests/                    
└── pyproject.toml

Key Components

Core Module

The core module contains the foundational components of the system:

Processors Module

The processors module contains implementations of batch processors:

SLURM Module

The slurm module handles integration with SLURM for HPC systems:

Converters Module

The converters module contains utilities for converting data to JSONL format:

IO Module

The io module handles input and output operations:

Templates Module

The templates module contains YAML configuration files for supported models:

Utils Module

The utils module contains utility functions used throughout the codebase:

Other Directories

Important Files