|
|
|
""" |
|
TTRLVR + AZR ์์คํ
๋น ๋ฅธ ํ
์คํธ |
|
|
|
timeout ๋ฌธ์ ๋ฅผ ํผํ๊ธฐ ์ํ ์ต์ํ์ ํ
์คํธ |
|
""" |
|
|
|
import os |
|
import sys |
|
|
|
|
|
os.environ['CUDA_VISIBLE_DEVICES'] = '4' |
|
sys.path.append('/home/ubuntu/RLVR/TestTime-RLVR-v2') |
|
|
|
def main(): |
|
print("๐ TTRLVR + AZR Quick Test") |
|
print("=" * 50) |
|
|
|
try: |
|
|
|
print("1๏ธโฃ Testing imports...") |
|
from absolute_zero_reasoner.testtime.config import TestTimeConfig, BenchmarkConfig |
|
from absolute_zero_reasoner.testtime.logger import TestTimeLogger |
|
from utils.iterative_trainer import IterativeTrainer |
|
print("โ
All imports successful") |
|
|
|
|
|
print("\n2๏ธโฃ Creating basic objects...") |
|
config = TestTimeConfig() |
|
config.model_name = "Qwen/Qwen2.5-7B" |
|
config.debug = True |
|
|
|
benchmark_config = BenchmarkConfig( |
|
name='mbpp', |
|
data_path='/test/path', |
|
problem_prefix='Mbpp_', |
|
start_index=1, |
|
max_problems=1 |
|
) |
|
|
|
logger = TestTimeLogger() |
|
print("โ
Basic objects created") |
|
|
|
|
|
print("\n3๏ธโฃ Creating IterativeTrainer...") |
|
trainer = IterativeTrainer(config, logger) |
|
print("โ
IterativeTrainer created successfully") |
|
|
|
|
|
print(f"\n4๏ธโฃ Configuration check:") |
|
print(f" - Model: {trainer.current_model_path}") |
|
print(f" - Checkpoint dir: {trainer.checkpoint_dir}") |
|
print(f" - Config debug: {config.debug}") |
|
|
|
|
|
print(f"\n5๏ธโฃ File existence check:") |
|
required_files = [ |
|
'/home/ubuntu/RLVR/TestTime-RLVR-v2/test/configs/ttrlvr_azr_7b_single_gpu.sh', |
|
'/data/RLVR/checkpoints' |
|
] |
|
|
|
for file_path in required_files: |
|
exists = os.path.exists(file_path) |
|
status = "โ
" if exists else "โ" |
|
print(f" {status} {file_path}") |
|
|
|
print(f"\n๐ Quick test completed successfully!") |
|
print(f"System appears ready for full integration test.") |
|
|
|
return 0 |
|
|
|
except Exception as e: |
|
print(f"\nโ Quick test failed: {e}") |
|
import traceback |
|
traceback.print_exc() |
|
return 1 |
|
|
|
if __name__ == '__main__': |
|
exit_code = main() |
|
sys.exit(exit_code) |