Spaces:
Sleeping
Sleeping
Download utils/__init__.py from UTKojima/1stPaper_v1: direct link, hf CLI and curl.
- Browser
- Download file 1.7 kB
-
https://huggingface.co/spaces/UTKojima/1stPaper_v1/resolve/main/utils/__init__.py
- Command line
-
hf download hf://spaces/UTKojima/1stPaper_v1/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/UTKojima/1stPaper_v1/resolve/main/utils/__init__.py
1.7 kB
| """ | |
| Utilities Module for Enhanced Symplectic LLM Experiment | |
| ユーティリティモジュール | |
| This module contains utility functions for visualization, checkpointing, | |
| progress monitoring, and API optimization. | |
| """ | |
| from .visualization import ( | |
| ResultsVisualizer, | |
| StatisticalPlotter, | |
| create_comparison_plots, | |
| create_distribution_plots | |
| ) | |
| from .checkpoint import ( | |
| CheckpointManager, | |
| AutoCheckpoint, | |
| load_checkpoint, | |
| save_checkpoint | |
| ) | |
| from .progress_monitor import ( | |
| ProgressMonitor, | |
| ExperimentTracker, | |
| SystemResourceMonitor | |
| ) | |
| from .api_optimizer import ( | |
| APIRateLimiter, | |
| BatchAPIProcessor, | |
| OpenAIOptimizer | |
| ) | |
| __version__ = "1.0.0" | |
| __author__ = "Kazuhiro Kojima" | |
| __all__ = [ | |
| # Visualization | |
| 'ResultsVisualizer', | |
| 'StatisticalPlotter', | |
| 'create_comparison_plots', | |
| 'create_distribution_plots', | |
| # Checkpoint | |
| 'CheckpointManager', | |
| 'AutoCheckpoint', | |
| 'load_checkpoint', | |
| 'save_checkpoint', | |
| # Progress monitoring | |
| 'ProgressMonitor', | |
| 'ExperimentTracker', | |
| 'SystemResourceMonitor', | |
| # API optimization | |
| 'APIRateLimiter', | |
| 'BatchAPIProcessor', | |
| 'OpenAIOptimizer' | |
| ] | |
| # モジュール情報 | |
| def get_utils_info(): | |
| """ユーティリティモジュール情報""" | |
| return { | |
| 'name': 'Enhanced Symplectic LLM Experiment Utils', | |
| 'version': __version__, | |
| 'author': __author__, | |
| 'components': len(__all__), | |
| 'description': 'Utility functions for experiment management and analysis' | |
| } | |
| # 初期化時の情報表示 | |
| import logging | |
| logger = logging.getLogger(__name__) | |
| logger.info(f"🛠️ Utils module loaded - Version {__version__}") | |