router
zeus.optimizer.pipeline_frequency.server.router
Pipeline frequency optimizer server FastAPI router.
LoggingRoute
Bases: APIRoute
Route handler that logs out all requests and responses in DEBUG level.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
get_route_handler
get_route_handler()
Wrap the original handler with debug messages.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
startup_hook
async
startup_hook()
Startup hook.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
60 61 62 63 64 |
|
register_job
async
register_job(
job_info, job_manager=Depends(get_global_job_manager)
)
Register the training job's information in the server.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
67 68 69 70 71 72 73 74 |
|
register_rank
async
register_rank(
job_id,
rank_info,
job_manager=Depends(get_global_job_manager),
)
Register each rank's information in the server.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
77 78 79 80 81 82 83 84 |
|
get_frequency_schedule
async
get_frequency_schedule(
job_id,
rank,
job_manager=Depends(get_global_job_manager),
)
Return the next frequency schedule for the rank.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
87 88 89 90 91 92 93 94 |
|
report_profiling_result
async
report_profiling_result(
job_id,
profiling_result,
job_manager=Depends(get_global_job_manager),
)
Report the profiling result for the most recent frequency schedule.
Source code in zeus/optimizer/pipeline_frequency/server/router.py
97 98 99 100 101 102 103 104 |
|