初始化项目,由ModelHub XC社区提供模型
Model: ayh015/myLightningOPD Source: Original Platform
This commit is contained in:
15
slime/rollout/sleep_rollout.py
Normal file
15
slime/rollout/sleep_rollout.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import logging
|
||||
import time
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def sleep(args, rollout_id, data_source, evaluation=False):
|
||||
count = 0
|
||||
while True:
|
||||
time.sleep(3600)
|
||||
count += 1
|
||||
logger.info(f"rollout sleep for {count} hours")
|
||||
Reference in New Issue
Block a user