Skip to the content.

LLMFlux Repository Structure

This document explains the organization of the LLMFlux codebase to help you understand and navigate the project.

Directory Structure

llmflux/
├── src/
│   └── llmflux/
│       ├── benchmark_utils.py      # Tools for benchmarking LLMFlux
│       ├── cli.py                  # main command line interface
│       ├── container/              # Definition file for container to run LLM
│       ├── converters/             # Format converters (utilities)
│       │   ├── csv.py              # CSV to JSONL converter
│       │   ├── directory.py        # Directory to JSONL converter
│       │   ├── json.py             # JSON to JSONL converter
│       │   ├── utils.py            # JSONL utilities
│       │   └── vision.py           # Vision to JSONL converter
│       ├── core/                    
│       │   ├── client.py           # LLM client interface
│       │   ├── config_manager.py   # Configuration priority system
│       │   ├── config.py           # Configuration management
│       │   └── processor.py        # Base processor interface
│       ├── io/                     # Input/Output handling
│       │   ├── base.py             # Base output classes
│       │   ├── input/              # Input handlers
│       │   └── output/             # Output handlers
│       │       └── json_output.py  # JSON output handler
│       ├── processors              # Built-in processors
│       │   └── batch.py            # JSONL batch processor
│       ├── slurm                   # SLURM integration
│       │   ├── engine              # Submission scripts for each engine option
│       │   │   ├── ollama.py       # OLLAMA engine submitter
│       │   │   └── vllm.py         # vLLM engine submitter
│       │   └── runner.py           # SLURM job management
│       └── templates               # Model templates
│           ├── gemma3/
│           ├── llama3.2/
│           ├── llama3.2-vision/
│           ├── llama3.3/
│           ├── mistral/
│           ├── mistral-large/
│           ├── mistral-lite/
│           ├── mistral-nemo/
│           ├── mistral-openorca/
│           ├── mistral-small/
│           ├── mixtral/
│           ├── models.yaml
│           ├── phi3/
│           └── qwen2.5/
├── docs/                           # LLMFlux documentation
├── examples/                       # LLMFlux examples
├── LICENSE
├── pyproject.toml
└── tests/

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:

Other Directories

Important Files

Back to LLMFlux home.