Major Features: • Advanced topological sorting algorithm with cycle detection and resolution • Intelligent pipeline optimization with parallelization analysis • Critical path analysis and performance metrics calculation • Comprehensive .mflow file converter for seamless UI-to-API integration • Complete modular UI framework with node-based pipeline editor • Enhanced model node properties (scpu_fw_path, ncpu_fw_path) • Professional output formatting without emoji decorations Technical Improvements: • Graph theory algorithms (DFS, BFS, topological sort) • Automatic dependency resolution and conflict prevention • Multi-criteria pipeline optimization • Real-time stage count calculation and validation • Comprehensive configuration validation and error handling • Modular architecture with clean separation of concerns New Components: • MFlow converter with topology analysis (core/functions/mflow_converter.py) • Complete node system with exact property matching • Pipeline editor with visual node connections • Performance estimation and dongle management panels • Comprehensive test suite and demonstration scripts 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
744 B
Python
28 lines
744 B
Python
"""
|
|
Core business logic for the Cluster4NPU pipeline system.
|
|
|
|
This module contains the fundamental business logic, node implementations,
|
|
and pipeline management functionality that drives the application.
|
|
|
|
Available Components:
|
|
- nodes: All node implementations for pipeline design
|
|
- pipeline: Pipeline management and orchestration (future)
|
|
|
|
Usage:
|
|
from cluster4npu_ui.core.nodes import ModelNode, InputNode, OutputNode
|
|
from cluster4npu_ui.core.nodes import NODE_TYPES, NODE_CATEGORIES
|
|
|
|
# Create nodes
|
|
input_node = InputNode()
|
|
model_node = ModelNode()
|
|
output_node = OutputNode()
|
|
|
|
# Access available node types
|
|
available_nodes = NODE_TYPES.keys()
|
|
"""
|
|
|
|
from . import nodes
|
|
|
|
__all__ = [
|
|
"nodes"
|
|
] |