Buckets:
| """Use the original task prompt verbatim; fail closed on source drift.""" | |
| import ast | |
| from functools import lru_cache | |
| from pathlib import Path | |
| import runpy | |
| from examples.gpu_mode.judge_worker import verify_official | |
| OFFICIAL = Path(__file__).resolve().parents[2] / "vendor/ttt_discover_gpu" | |
| def original_question(): | |
| verify_official(OFFICIAL) | |
| namespace = runpy.run_path(str(OFFICIAL / "examples/gpu_mode/prompt.py")) | |
| source = ast.parse((OFFICIAL / "examples/gpu_mode/env.py").read_text()) | |
| cls = next(node for node in source.body if isinstance(node, ast.ClassDef) and node.name == "GpuModeEnv") | |
| method = next(node for node in cls.body if isinstance(node, ast.FunctionDef) and node.name == "get_question") | |
| # The exact upstream function, compiled without importing Modal or its bot. | |
| module = ast.Module(body=[method], type_ignores=[]) | |
| exec(compile(ast.fix_missing_locations(module), "<official-GpuModeEnv.get_question>", "exec"), namespace) | |
| return namespace["get_question"] | |
Xet Storage Details
- Size:
- 1.03 kB
- Xet hash:
- af2511732c02005cdfaf47400d69018738bce789ba6860df371ecf6a33ab9d5d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.