How salvacarrion/autonmt works
Main Components Identification
The system should be divided into these major components:
a) Core Framework Components:
• Preprocessing Pipeline
• Model Management
• Training/Evaluation System
• Toolkit Abstraction Layer
• Reporting & Visualization
b) Supporting Components:
• Dataset Management
• Vocabulary Management
• Search Algorithms
• Metrics Collection
Component Relationships
[Input Data] → [Preprocessing Pipeline] → [Dataset Management]
• ↓
[Toolkit Abstraction Layer] ←→ [Model Management] → [Training System]
• ↓
[Search Algorithms] ←→ [Inference Pipeline] → [Evaluation System]
• ↓
[Metrics Collection] → [Reporting & Visualization]
Detailed Component Breakdown
a) Preprocessing Pipeline (autonmt/preprocessing/):
• Raw Data → Builder → Processors → Tokenizers → Encoded Data
• Bidirectional connection to Dataset Management
b) Model Management (autonmt/modules/):
• Custom Models (RNN, Transformer, Conv)
• External Toolkits (Fairseq)
• Layer Components
• Dataset Handlers
c) Training/Evaluation System:
• Parallel paths for:
• AutoNMT native pipeline
• Fairseq pipeline
• Connections to search algorithms (beam/greedy)
d) Toolkit Abstraction (autonmt/toolkits/):
• Compatibility with different backends
Technical Details
• PyTorch Lightning integration points
• Vocabulary management system
• Dataset builder workflow
• Metrics collection pipeline
• Report generation system
Implementation Notes
• Clear separation between custom and third-party components
• Component interfaces and API boundaries
• Configuration entry points
• File storage organization
Additional Elements
• Dataset Builder workflow
• Training pipeline
• Evaluation pipeline
• Reporting system
Remember to:
• Version information and compatibility notes
This system design should capture both the high-level architecture and the detailed workflows while maintaining clarity and usefulness for development and documentation purposes.