feat(desktop): v0.5.0 - Training & RuVector Integration (ADR-057)#225
Open
feat(desktop): v0.5.0 - Training & RuVector Integration (ADR-057)#225
Conversation
Proposes a new Training page in the desktop app with tabs: - Datasets: Download/manage training datasets (MM-Fi, Wi-Pose) - Models: Browse architectures, load checkpoints, export ONNX - Training: Configure and run training jobs with GPU support - RuVector: Configure signal processing modules, live testing - Metrics: View loss curves, evaluation results Integrates wifi-densepose-train crate and 5 RuVector crates into the Tauri desktop application. Co-Authored-By: claude-flow <ruv@ruv.net>
Implements the Training & Models page with tabbed navigation: - Datasets tab: Download/import datasets, preview samples - Models tab: Browse architectures, manage checkpoints, export ONNX - Training tab: Configure training, GPU detection, live progress - RuVector tab: Module config (MinCut, Attention, Temporal, Solver) - Metrics tab: Loss curves, evaluation metrics, per-joint accuracy Features: - GPU detection status display (CUDA/Metal) - Live training progress with Tauri events - RuVector module enable/disable and parameter tuning - Training presets (Low Latency, High Accuracy, Balanced) - Export metrics to CSV/JSON/TensorBoard - Mock data for demonstration when backend not implemented Ref: ADR-057 Co-Authored-By: claude-flow <ruv@ruv.net>
Implements full Rust backend for Training page (ADR-057): Training Domain Types (domain/training.rs): - GpuInfo, GpuBackend (Cpu, Cuda, Metal) - DatasetInfo, DatasetFormat (MmFi, WiPose, Wiar, Custom) - ModelInfo, ModelType (Encoder, Decoder, Embedding, Adaptor) - CheckpointInfo, TrainingJob, TrainingConfig, TrainingProgress - RuVectorConfig with MinCut, Attention, Temporal, Solver params - EvaluationMetrics, JointAccuracy, EpochMetrics Training Commands (commands/training.rs): - detect_gpu - Auto-detect CUDA/Metal/CPU with caching - list_datasets, get_datasets, download_dataset - list_models, list_checkpoints, export_model (ONNX/TorchScript) - start_training, stop_training, training_progress - get_ruvector_config, set_ruvector_config, test_ruvector_live - get_training_history, get_evaluation_metrics, get_joint_accuracies State Management (state.rs): - Added TrainingState to AppState - GPU info caching, datasets, checkpoints, current job - RuVector config persistence Tests: 48 passed (27 unit + 21 integration) Ref: ADR-057 Co-Authored-By: claude-flow <ruv@ruv.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Training & Models page for RuView Desktop with full Rust backend integration:
Changes
Frontend (React/TypeScript)
Training/index.tsx- Main page with 5-tab navigation + GPU statusTraining/DatasetsTab.tsx- Dataset download/import/previewTraining/ModelsTab.tsx- Model browser, checkpoint management, ONNX exportTraining/TrainingTab.tsx- Training config form, live progress trackingTraining/RuVectorTab.tsx- 5 RuVector module configs with presetsTraining/MetricsTab.tsx- Loss curves, evaluation metrics, per-joint accuracyBackend (Rust)
domain/training.rs- 15 domain types (GpuInfo, DatasetInfo, TrainingJob, etc.)commands/training.rs- 16 Tauri commands with testsstate.rs- TrainingState added to AppStateTauri Commands
detect_gpulist_datasetsget_datasetsdownload_datasetlist_modelslist_checkpointsexport_modelstart_trainingstop_trainingtraining_progressget_ruvector_configset_ruvector_configtest_ruvector_liveget_training_historyget_evaluation_metricsget_joint_accuraciesTest plan
Architecture Decision
Ref: ADR-057
🤖 Generated with claude-flow