How qihoo360/360-llama-factory works
Main Components
a. Core Components:
• Training Pipeline
• Model Management
• Data Processing
• Sequence Parallelism Engine
• Evaluation System
• API/WebUI Interface
b. Key Integrations:
• DeepSpeed Integration
• Ring Flash Attention
• External Model Support (LLaMA, Qwen, etc.)
User Interface Layer
• CLI Interface
• Web UI
• API Endpoints
Training & Inference Layer
• Training Workflows (SFT, DPO, PPO, KTO)
• Sequence Parallelism Controller
• Model Management System
Core Infrastructure Layer
• Data Processing Pipeline
• Model Architecture
• Distributed Computing Framework
Key Relationships to Highlight
a. Sequence Parallelism Flow:
• How data is split across GPUs
• Zigzag-ring attention pattern
• Demonstrate the communication pattern between GPU nodes
b. Training Pipeline:
• Data preprocessing flow
• Model training flow
• Evaluation feedback loop
Specific Implementation Details
a. Sequence Parallelism Implementation:
SP Controller
• Data Splitting
• Ring Flash Attention
• Loss Computation
b. Training Modes:
Training Methods
• Full Parameter Training
• LoRA Training
• QLoRA Training
Technical Specifications
A technical specifications panel showing:
• Supported sequence lengths
• GPU configurations
• Memory requirements
• Supported model sizes
Integration Points
Clear integration points with:
• DeepSpeed
• Hugging Face Transformers
• Ring Flash Attention
• External model repositories