Python 原生异步语法;async def 与异步生成器定义分开计数。

固定源码版本:2f2318653f6f794dddd321eff7c9d4b7b174643f。本表共 747 条静态出现记录;不是运行次数。

同一个直接 API 表达式只记为 api_call 或 api_reference 中的一类。实例候选不计入直接原生 API 总数。

总览 · 完整文件索引 · JSON · TSV

ID位置 / 快照所属符号种类API / 语法来源判定源码行
occ-000006examples/coding_agent_rl/generate.py:96 · 快照<module>async_generator_defboot_agent_sandboxpython_astasync def boot_agent_sandbox(image: str, instance_id: str) -> AsyncIterator[E2BSandbox]:
occ-000008examples/coding_agent_rl/generate.py:108 · 快照boot_agent_sandboxasync_withasync withpython_astasync with _BOOT_SEM:
occ-000009examples/coding_agent_rl/generate.py:109 · 快照boot_agent_sandboxawaitawaitpython_astawait cand.aenter()
occ-000011examples/coding_agent_rl/generate.py:111 · 快照boot_agent_sandboxawaitawaitpython_astawait HARNESS_CLS().install_cli(cand)
occ-000012examples/coding_agent_rl/generate.py:113 · 快照boot_agent_sandboxawaitawaitpython_astawait cand.aexit(None, None, None)
occ-000014examples/coding_agent_rl/generate.py:127 · 快照boot_agent_sandboxawaitawaitpython_astawait asyncio.sleep(1 + attempt + random.random())
occ-000016examples/coding_agent_rl/generate.py:132 · 快照boot_agent_sandboxasync_yieldyield in async generatorpython_astyield sb
occ-000017examples/coding_agent_rl/generate.py:134 · 快照boot_agent_sandboxawaitawaitpython_astawait sb.aexit(None, None, None)
occ-000019examples/coding_agent_rl/generate.py:182 · 快照<module>async_defgeneratepython_astasync def generate(args, base_sample: Sample, sampling_params: dict[str, Any], evaluation: bool = False):
occ-000020examples/coding_agent_rl/generate.py:202 · 快照generateasync_withasync withpython_astasync with asyncio.timeout(CONFIG.rollout_guard_sec):
occ-000022examples/coding_agent_rl/generate.py:203 · 快照generateasync_withasync withpython_astasync with boot_agent_sandbox(md[“image”], instance_id) as sb:
occ-000023examples/coding_agent_rl/generate.py:204 · 快照generateawaitawaitpython_astawait swe.prepare_workspace(sb, md[“workdir”], md)
occ-000024examples/coding_agent_rl/generate.py:205 · 快照generateawaitawaitpython_astagent_exit_code = await HARNESS_CLS().run(
occ-000025examples/coding_agent_rl/generate.py:213 · 快照generateawaitawaitpython_astdiff_text = await swe.git_diff(sb, md[“workdir”])
occ-000026examples/coding_agent_rl/generate.py:215 · 快照generateawaitawaitpython_astreward, applied_cleanly = await swe.run_evaluation(
occ-000027examples/coding_agent_rl/generate.py:237 · 快照generateawaitawaitpython_astsamples = await state.adapter.finish_session(
occ-000029examples/coding_agent_rl/generate.py:282 · 快照generateawaitawaitpython_astawait state.adapter.drop_session(session_id, wait_timeout=30) # cleanup only, idempotent
occ-000030examples/coding_agent_rl/generate.py:283 · 快照generateawaitawaitpython_astawait asyncio.sleep(10)
occ-000071examples/coding_agent_rl/swe.py:177 · 快照<module>async_defprepare_workspacepython_astasync def prepare_workspace(sb: Sandbox, workdir: str, md: dict) -> None:
occ-000072examples/coding_agent_rl/swe.py:185 · 快照prepare_workspaceawaitawaitpython_astawait agent_sandbox.ensure_agent_user(sb, workdir)
occ-000076examples/coding_agent_rl/swe.py:190 · 快照prepare_workspaceawaitawaitpython_astawait apply_before_repo_set_cmd(sb, workdir, swepro)
occ-000078examples/coding_agent_rl/swe.py:193 · 快照prepare_workspaceawaitawaitpython_astawait apply_pre_commands(sb, workdir, pre_commands)
occ-000079examples/coding_agent_rl/swe.py:194 · 快照prepare_workspaceawaitawaitpython_astawait sb.write_file(
occ-000081examples/coding_agent_rl/swe.py:201 · 快照<module>async_defapply_before_repo_set_cmdpython_astasync def apply_before_repo_set_cmd(sb: Sandbox, workdir: str, swepro: dict) -> None:
occ-000083examples/coding_agent_rl/swe.py:207 · 快照apply_before_repo_set_cmdawaitawaitpython_astawait sb.exec(
occ-000084examples/coding_agent_rl/swe.py:210 · 快照apply_before_repo_set_cmdawaitawaitpython_astawait sb.write_file("/workspace/swepro_setup/before.sh", payload, user=“agent”)
occ-000085examples/coding_agent_rl/swe.py:211 · 快照apply_before_repo_set_cmdawaitawaitpython_astawait sb.exec(“bash /workspace/swepro_setup/before.sh”, user=“agent”, check=False, timeout=600)
occ-000086examples/coding_agent_rl/swe.py:214 · 快照<module>async_defapply_pre_commandspython_astasync def apply_pre_commands(sb: Sandbox, workdir: str, pre: list[str] | str) -> None:
occ-000088examples/coding_agent_rl/swe.py:223 · 快照apply_pre_commandsawaitawaitpython_astawait sb.write_file(_PRE, “set -e\n” + body, user=“agent”)
occ-000089examples/coding_agent_rl/swe.py:224 · 快照apply_pre_commandsawaitawaitpython_astawait sb.exec(f"chmod 755 {_PRE} && cd {workdir} && bash {_PRE}", user=“agent”, check=False, timeout=600)
occ-000090examples/coding_agent_rl/swe.py:230 · 快照<module>async_defgit_diffpython_astasync def git_diff(sb: Sandbox, workdir: str) -> str:
occ-000091examples/coding_agent_rl/swe.py:232 · 快照git_diffawaitawaitpython_ast_, out, _ = await sb.exec(cmd, user=“agent”, timeout=120)
occ-000092examples/coding_agent_rl/swe.py:239 · 快照<module>async_defrun_evaluationpython_astasync def run_evaluation(md: dict, *, diff_text: str, timeout_sec: int) -> EvalResult:
occ-000094examples/coding_agent_rl/swe.py:246 · 快照run_evaluationawaitawaitpython_astreturn await _grade_swebench(md, diff_text, timeout_sec)
occ-000095examples/coding_agent_rl/swe.py:247 · 快照run_evaluationawaitawaitpython_astreturn await _grade_scaleswe(md, diff_text, timeout_sec)
occ-000096examples/coding_agent_rl/swe.py:253 · 快照<module>async_def_grade_scaleswepython_astasync def _grade_scaleswe(md: dict, diff_text: str, timeout_sec: int) -> EvalResult:
occ-000102examples/coding_agent_rl/swe.py:269 · 快照_grade_scalesweasync_withasync withpython_astasync with E2BSandbox(image) as ev:
occ-000103examples/coding_agent_rl/swe.py:270 · 快照_grade_scalesweawaitawaitpython_astawait agent_sandbox.ensure_agent_user(ev, workdir)
occ-000104examples/coding_agent_rl/swe.py:272 · 快照_grade_scalesweawaitawaitpython_astawait _setup_swepro_assets(ev, swepro)
occ-000105examples/coding_agent_rl/swe.py:273 · 快照_grade_scalesweawaitawaitpython_astawait apply_before_repo_set_cmd(ev, workdir, swepro)
occ-000106examples/coding_agent_rl/swe.py:275 · 快照_grade_scalesweawaitawaitpython_astawait apply_pre_commands(ev, workdir, pre_commands)
occ-000107examples/coding_agent_rl/swe.py:277 · 快照_grade_scalesweawaitawaitpython_astapplied = await _apply_diff(ev, workdir, diff_text)
occ-000108examples/coding_agent_rl/swe.py:282 · 快照_grade_scalesweawaitawaitpython_astr = await _run_swepro(ev, workdir, swepro, timeout_sec)
occ-000109examples/coding_agent_rl/swe.py:284 · 快照_grade_scalesweawaitawaitpython_astr = await _run_eval_cmd(ev, workdir, eval_cmd, timeout_sec)
occ-000110examples/coding_agent_rl/swe.py:286 · 快照_grade_scalesweawaitawaitpython_astr = await _run_f2p_script(ev, workdir, f2p_script, timeout_sec)
occ-000111examples/coding_agent_rl/swe.py:290 · 快照<module>async_def_setup_swepro_assetspython_astasync def _setup_swepro_assets(ev: Sandbox, swepro: dict) -> None:
occ-000112examples/coding_agent_rl/swe.py:291 · 快照_setup_swepro_assetsawaitawaitpython_astawait ev.exec(f"mkdir -p {_SWEPRO_DIR} && chmod 777 {_SWEPRO_DIR}", user=“root”, check=True)
occ-000114examples/coding_agent_rl/swe.py:295 · 快照_setup_swepro_assetsawaitawaitpython_astawait ev.write_file(f"{_SWEPRO_DIR}/{dst}", Path(host_p), user=“root”)
occ-000115examples/coding_agent_rl/swe.py:296 · 快照_setup_swepro_assetsawaitawaitpython_astawait ev.exec(f"chmod 755 {_SWEPRO_DIR}/* && chown -R agent:agent {_SWEPRO_DIR}", user=“root”, check=True)
occ-000116examples/coding_agent_rl/swe.py:299 · 快照<module>async_def_apply_diffpython_astasync def _apply_diff(ev: Sandbox, workdir: str, diff_text: str) -> bool:
occ-000117examples/coding_agent_rl/swe.py:302 · 快照_apply_diffawaitawaitpython_astawait ev.write_file(_PATCH, diff_text, user=“agent”)
occ-000119examples/coding_agent_rl/swe.py:312 · 快照_apply_diffawaitawaitpython_astec, _, _ = await ev.exec(f"cd {workdir} && ({ladder})", user=“agent”, check=False, timeout=120)
occ-000120examples/coding_agent_rl/swe.py:316 · 快照<module>async_def_run_swepropython_astasync def _run_swepro(ev: Sandbox, workdir: str, swepro: dict, timeout: int) -> float:
occ-000123examples/coding_agent_rl/swe.py:321 · 快照_run_sweproawaitawaitpython_astawait ev.exec(
occ-000124examples/coding_agent_rl/swe.py:327 · 快照_run_sweproawaitawaitpython_astawait ev.exec(
occ-000125examples/coding_agent_rl/swe.py:333 · 快照_run_sweproawaitawaitpython_astraw = await ev.read_file(result_f, user=“agent”)
occ-000130examples/coding_agent_rl/swe.py:341 · 快照<module>async_def_run_eval_cmdpython_astasync def _run_eval_cmd(ev: Sandbox, workdir: str, cmd: str, timeout: int) -> float:
occ-000131examples/coding_agent_rl/swe.py:342 · 快照_run_eval_cmdawaitawaitpython_astec, _, _ = await ev.exec(f"cd {workdir} && {cmd}", user=“agent”, check=False, timeout=timeout)
occ-000132examples/coding_agent_rl/swe.py:346 · 快照<module>async_def_run_f2p_scriptpython_astasync def _run_f2p_script(ev: Sandbox, workdir: str, script: str, timeout: int) -> float:
occ-000133examples/coding_agent_rl/swe.py:350 · 快照_run_f2p_scriptawaitawaitpython_astawait ev.write_file(_F2P, script, user=“agent”)
occ-000134examples/coding_agent_rl/swe.py:351 · 快照_run_f2p_scriptawaitawaitpython_astec, _, _ = await ev.exec(f"cd {workdir} && python {_F2P}", user=“agent”, check=False, timeout=timeout)
occ-000135examples/coding_agent_rl/swe.py:364 · 快照<module>async_def_apply_model_patchpython_astasync def _apply_model_patch(ev: Sandbox, workdir: str) -> bool:
occ-000137examples/coding_agent_rl/swe.py:373 · 快照_apply_model_patchawaitawaitpython_astec, _, _ = await ev.exec(cmd, user=“root”, check=False, timeout=120)
occ-000147examples/coding_agent_rl/swe.py:440 · 快照<module>async_def_grade_swebenchpython_astasync def _grade_swebench(md: dict, diff_text: str, timeout_sec: int) -> EvalResult:
occ-000148examples/coding_agent_rl/swe.py:465 · 快照_grade_swebenchasync_withasync withpython_astasync with E2BSandbox(image) as ev:
occ-000149examples/coding_agent_rl/swe.py:466 · 快照_grade_swebenchawaitawaitpython_astawait asyncio.gather(
occ-000151examples/coding_agent_rl/swe.py:472 · 快照_grade_swebenchawaitawaitpython_astif not await _apply_model_patch(ev, md[“workdir”]):
occ-000152examples/coding_agent_rl/swe.py:475 · 快照_grade_swebenchawaitawaitpython_astexit_code, log = await exec_and_wait(
occ-000160examples/geo3k_vlm_multi_turn/rollout.py:192 · 快照<module>async_def_run_inference_steppython_astasync def _run_inference_step(url: str, tokens: list[int], sampling_params: dict, image_data, tokenizer):
occ-000161examples/geo3k_vlm_multi_turn/rollout.py:201 · 快照_run_inference_stepawaitawaitpython_astoutput = await post(url, payload)
occ-000162examples/geo3k_vlm_multi_turn/rollout.py:315 · 快照<module>async_defgeneratepython_astasync def generate(args: Any, sample: Sample, sampling_params) -> Sample:
occ-000164examples/geo3k_vlm_multi_turn/rollout.py:336 · 快照generateawaitawaitpython_astawait _run_inference_step(url, sample.tokens, cur_sampling_params, current_image_data, state.tokenizer)
occ-000168examples/multi_agent/agent_system.py:14 · 快照<module>async_defgenerate_responsepython_astasync def generate_response(args, prompt, key):
occ-000169examples/multi_agent/agent_system.py:37 · 快照generate_responseawaitawaitpython_astoutput = await post(url, payload)
occ-000170examples/multi_agent/agent_system.py:95 · 快照Agentasync_defrunpython_astasync def run(self, args, prompt, max_retries: int = 1, key: str = None) -> str:
occ-000171examples/multi_agent/agent_system.py:99 · 快照Agent.runawaitawaitpython_astresponse = await generate_response(args, prompt, key=key)
occ-000173examples/multi_agent/agent_system.py:114 · 快照SolverAgentasync_defgenerate_initial_solutionpython_astasync def generate_initial_solution(self, args, problem_statement) -> str:
occ-000174examples/multi_agent/agent_system.py:117 · 快照SolverAgent.generate_initial_solutionawaitawaitpython_astreturn await self.run(args, prompt, max_retries=3, key=“solver”)
occ-000175examples/multi_agent/agent_system.py:126 · 快照RewriterAgentasync_defrewritepython_astasync def rewrite(self, args, problem_statement, previous_solutions: list[str]) -> str:
occ-000176examples/multi_agent/agent_system.py:138 · 快照RewriterAgent.rewriteawaitawaitpython_astreturn await self.run(args, prompt, max_retries=1, key=“rewriter”)
occ-000177examples/multi_agent/agent_system.py:147 · 快照SelectorAgentasync_defselectpython_astasync def select(self, args, problem_statement, candidate_solutions: list[str]) -> str:
occ-000178examples/multi_agent/agent_system.py:159 · 快照SelectorAgent.selectawaitawaitpython_astreturn await self.run(args, prompt, max_retries=10, key=“selector”)
occ-000179examples/multi_agent/agent_system.py:176 · 快照<module>async_defrewrite_workerpython_astasync def rewrite_worker(args, previous_solutions, problem_statement, worker_id):
occ-000180examples/multi_agent/agent_system.py:178 · 快照rewrite_workerawaitawaitpython_astnew_solution = await rewriter.rewrite(args, problem_statement, previous_solutions)
occ-000181examples/multi_agent/agent_system.py:182 · 快照<module>async_defsolver_workerpython_astasync def solver_worker(args, problem_statement, worker_id):
occ-000182examples/multi_agent/agent_system.py:189 · 快照solver_workerawaitawaitpython_astcurrent_solution = await solver.generate_initial_solution(args, problem_statement)
occ-000183examples/multi_agent/agent_system.py:198 · 快照<module>async_defrun_agent_systempython_astasync def run_agent_system(args, sample):
occ-000184examples/multi_agent/agent_system.py:222 · 快照run_agent_systemawaitawaitpython_astresults = await asyncio.gather(*tasks, return_exceptions=True)
occ-000186examples/multi_agent/agent_system.py:224 · 快照run_agent_systemawaitawaitpython_astrewards = await batched_async_rm(args, args.results_dict[“solver”])
occ-000187examples/multi_agent/agent_system.py:244 · 快照run_agent_systemawaitawaitpython_astrewrited_solutions_raw = await asyncio.gather(*tasks, return_exceptions=True)
occ-000189examples/multi_agent/agent_system.py:252 · 快照run_agent_systemawaitawaitpython_astrewards = await batched_async_rm(args, args.results_dict[“rewriter”])
occ-000190examples/multi_agent/agent_system.py:263 · 快照run_agent_systemawaitawaitpython_astresponse = await selector.select(args, problem_statement, rewrited_solutions)
occ-000191examples/multi_agent/rollout_with_multi_agents.py:16 · 快照<module>async_defgenerate_with_multi_agentspython_astasync def generate_with_multi_agents(args, sample: Sample, sampling_params, evaluation=False) -> list[Sample]:
occ-000192examples/multi_agent/rollout_with_multi_agents.py:29 · 快照generate_with_multi_agentsawaitawaitpython_astsamples = await custom_multi_agent_func(args, sample)
occ-000196examples/retool/generate_with_retool.py:183 · 快照<module>async_defexecute_predictionspython_astasync def execute_predictions(prediction: str) -> str:
occ-000197examples/retool/generate_with_retool.py:192 · 快照execute_predictionsasync_withasync withpython_astasync with SEMAPHORE:
occ-000198examples/retool/generate_with_retool.py:193 · 快照execute_predictionsawaitawaitpython_astresult = await tool_registry.execute_tool(“code_interpreter”, {“code”: code})
occ-000199examples/retool/generate_with_retool.py:215 · 快照<module>async_defgeneratepython_astasync def generate(args, sample: Sample, sampling_params) -> Sample:
occ-000201examples/retool/generate_with_retool.py:299 · 快照generateawaitawaitpython_astoutput = await post(url, payload)
occ-000202examples/retool/generate_with_retool.py:335 · 快照generateawaitawaitpython_astnext_obs, done = await execute_predictions(cur_response)
occ-000203examples/retool/generate_with_retool.py:407 · 快照<module>async_defreward_funcpython_astasync def reward_func(args, sample, **kwargs):
occ-000207examples/retool/tool_sandbox.py:193 · 快照PythonSandboxasync_defexecute_codepython_astasync def execute_code(self, code: str) -> str:
occ-000216examples/retool/tool_sandbox.py:337 · 快照ToolRegistryasync_defexecute_toolpython_astasync def execute_tool(self, tool_name: str, arguments: dict[str, Any]) -> str:
occ-000217examples/retool/tool_sandbox.py:342 · 快照ToolRegistry.execute_toolasync_withasync withpython_astasync with SEMAPHORE:
occ-000218examples/retool/tool_sandbox.py:344 · 快照ToolRegistry.execute_toolawaitawaitpython_astreturn await self._execute_python(arguments)
occ-000219examples/retool/tool_sandbox.py:348 · 快照ToolRegistryasync_def_execute_pythonpython_astasync def _execute_python(self, arguments: dict[str, Any]) -> str:
occ-000221examples/retool/tool_sandbox.py:355 · 快照ToolRegistry._execute_pythonawaitawaitpython_astresult = await self.python_sandbox.execute_code(code)
occ-000225examples/search-r1/generate_with_search.py:59 · 快照<module>async_defsearchpython_astasync def search(query: str) -> str:
occ-000226examples/search-r1/generate_with_search.py:70 · 快照searchawaitawaitpython_astresult = await local_search(
occ-000227examples/search-r1/generate_with_search.py:80 · 快照searchawaitawaitpython_astresult = await google_search(
occ-000228examples/search-r1/generate_with_search.py:124 · 快照<module>async_defexecute_predictionspython_astasync def execute_predictions(prediction: str) -> str:
occ-000229examples/search-r1/generate_with_search.py:129 · 快照execute_predictionsasync_withasync withpython_astasync with SEMAPHORE:
occ-000230examples/search-r1/generate_with_search.py:130 · 快照execute_predictionsawaitawaitpython_astsearch_results = await search(search_query)
occ-000231examples/search-r1/generate_with_search.py:145 · 快照<module>async_defgeneratepython_astasync def generate(args, sample: Sample, sampling_params) -> Sample:
occ-000233examples/search-r1/generate_with_search.py:188 · 快照generateawaitawaitpython_astoutput = await post(url, payload)
occ-000234examples/search-r1/generate_with_search.py:235 · 快照generateawaitawaitpython_astnext_obs, done = await execute_predictions(cur_response)
occ-000235examples/search-r1/generate_with_search.py:277 · 快照<module>async_defreward_funcpython_astasync def reward_func(args, sample, **kwargs):
occ-000238examples/search-r1/google_search_server.py:42 · 快照<module>async_deffetchpython_astasync def fetch(session: aiohttp.ClientSession, url: str, semaphore: asyncio.Semaphore) -> str:
occ-000240examples/search-r1/google_search_server.py:52 · 快照fetchasync_withasync withpython_astasync with semaphore:
occ-000241examples/search-r1/google_search_server.py:54 · 快照fetchasync_withasync withpython_astasync with session.get(url, headers=headers) as response:
occ-000243examples/search-r1/google_search_server.py:55 · 快照fetchawaitawaitpython_astraw = await response.read()
occ-000246examples/search-r1/google_search_server.py:63 · 快照<module>async_deffetch_allpython_astasync def fetch_all(urls: list[str], limit: int = 8) -> list[str]:
occ-000248examples/search-r1/google_search_server.py:68 · 快照fetch_allasync_withasync withpython_astasync with aiohttp.ClientSession(timeout=timeout, connector=connector) as session:
occ-000249examples/search-r1/google_search_server.py:70 · 快照fetch_allawaitawaitpython_astreturn await asyncio.gather(*tasks)
occ-000252examples/search-r1/google_search_server.py:94 · 快照<module>async_defgoogle_searchpython_astasync def google_search(api_key, query, top_k=5, timeout: int = 60, proxy=None, snippet_only=False) -> list[dict]:
occ-000253examples/search-r1/google_search_server.py:99 · 快照google_searchasync_withasync withpython_astasync with aiohttp.ClientSession(**session_kwargs) as session:
occ-000254examples/search-r1/google_search_server.py:100 · 快照google_searchasync_withasync withpython_astasync with session.post(
occ-000255examples/search-r1/google_search_server.py:115 · 快照google_searchawaitawaitpython_astresponse = await resp.json()
occ-000261examples/search-r1/google_search_server.py:133 · 快照google_searchawaitawaitpython_astweb_contents = await fetch_all(links)
occ-000264examples/search-r1/local_search_server.py:25 · 快照<module>async_deflocal_searchpython_astasync def local_search(
occ-000265examples/search-r1/local_search_server.py:66 · 快照local_searchasync_withasync withpython_astasync with aiohttp.ClientSession(**session_kwargs) as session:
occ-000266examples/search-r1/local_search_server.py:67 · 快照local_searchasync_withasync withpython_astasync with session.post(search_url, json=payload, timeout=timeout_obj) as resp:
occ-000267examples/search-r1/local_search_server.py:69 · 快照local_searchawaitawaitpython_astresult = await resp.json()
occ-000270examples/strands_sglang/generate_with_strands.py:41 · 快照<module>async_defgeneratepython_astasync def generate(args, sample: Sample, sampling_params) -> Sample:
occ-000271examples/strands_sglang/generate_with_strands.py:66 · 快照generateawaitawaitpython_astawait agent.invoke_async(prompt)
occ-000273examples/strands_sglang/generate_with_strands.py:90 · 快照<module>async_defreward_funcpython_astasync def reward_func(args, sample: Sample, **kwargs):
occ-000294examples/tau-bench/generate_with_tau.py:100 · 快照<module>async_defgeneratepython_astasync def generate(args: dict[str, Any], sample: Sample, sampling_params: dict) -> Sample:
occ-000295examples/tau-bench/generate_with_tau.py:147 · 快照generateawaitawaitpython_astinteraction_result = await agent.asolve(env, agent.rollout_args, agent.sampling_params, task_index)
occ-000296examples/tau-bench/trainable_agents.py:91 · 快照TrainableAgentMixinasync_def_call_llmpython_astasync def _call_llm(self, url: str, payload: dict[str, Any]) -> dict[str, Any]:
occ-000297examples/tau-bench/trainable_agents.py:102 · 快照TrainableAgentMixin._call_llmawaitawaitpython_astreturn await post(url, payload)
occ-000298examples/tau-bench/trainable_agents.py:116 · 快照TrainableAgentMixinasync_def_execute_toolpython_astasync def _execute_tool(self, env, action: Action):
occ-000301examples/tau-bench/trainable_agents.py:177 · 快照TrainableAgentMixinasync_defasolvepython_astasync def asolve(
occ-000302examples/tau-bench/trainable_agents.py:232 · 快照TrainableAgentMixin.asolveawaitawaitpython_astoutput = await self._call_llm(url, payload)
occ-000303examples/tau-bench/trainable_agents.py:293 · 快照TrainableAgentMixin.asolveawaitawaitpython_astenv_response = await self._execute_tool(env, action)
occ-000309slime/agent/adapters/anthropic.py:71 · 快照AnthropicAdapterasync_def_respondpython_astasync def _respond(self, request, body, reply, in_tok, out_tok, stream) -> web.StreamResponse:
occ-000310slime/agent/adapters/anthropic.py:74 · 快照AnthropicAdapter._respondawaitawaitpython_astreturn await _render_stream(request, blocks, stop_reason, in_tok, out_tok)
occ-000332slime/agent/adapters/anthropic.py:211 · 快照<module>async_def_render_streampython_astasync def _render_stream(request, blocks, stop_reason, in_tok, out_tok) -> web.StreamResponse:
occ-000333slime/agent/adapters/anthropic.py:223 · 快照_render_streamawaitawaitpython_astawait out.prepare(request)
occ-000334slime/agent/adapters/anthropic.py:238 · 快照_render_streamawaitawaitpython_astawait out.write(f"event: message_start\ndata: {json.dumps(ms_data, ensure_ascii=False)}\n\n".encode())
occ-000336slime/agent/adapters/anthropic.py:256 · 快照_render_streamawaitawaitpython_astawait out.write(f"event: content_block_start\ndata: {json.dumps(cbs_data, ensure_ascii=False)}\n\n".encode())
occ-000338slime/agent/adapters/anthropic.py:259 · 快照_render_streamawaitawaitpython_astawait out.write(f"event: content_block_delta\ndata: {json.dumps(cbd_data, ensure_ascii=False)}\n\n".encode())
occ-000340slime/agent/adapters/anthropic.py:262 · 快照_render_streamawaitawaitpython_astawait out.write(f"event: content_block_stop\ndata: {json.dumps(cbe_data, ensure_ascii=False)}\n\n".encode())
occ-000342slime/agent/adapters/anthropic.py:269 · 快照_render_streamawaitawaitpython_astawait out.write(f"event: message_delta\ndata: {json.dumps(md_data, ensure_ascii=False)}\n\n".encode())
occ-000344slime/agent/adapters/anthropic.py:272 · 快照_render_streamawaitawaitpython_astawait out.write(f"event: message_stop\ndata: {json.dumps(mst_data, ensure_ascii=False)}\n\n".encode())
occ-000346slime/agent/adapters/anthropic.py:279 · 快照<module>async_def_count_tokenspython_astasync def _count_tokens(request: web.Request) -> web.Response:
occ-000347slime/agent/adapters/anthropic.py:280 · 快照_count_tokensawaitawaitpython_astawait request.read()
occ-000363slime/agent/adapters/common.py:197 · 快照BaseAdapterasync_def_respondpython_astasync def _respond(
occ-000364slime/agent/adapters/common.py:225 · 快照BaseAdapterasync_defshutdown_sessionpython_astasync def shutdown_session(self, sid: str, *, wait_timeout: float = 5.0) -> None:
occ-000366slime/agent/adapters/common.py:232 · 快照BaseAdapter.shutdown_sessionasync_def_drainpython_astasync def _drain() -> None:
occ-000367slime/agent/adapters/common.py:233 · 快照BaseAdapter.shutdown_session._drainawaitawaitpython_ast_, pending = await asyncio.wait(tasks, timeout=wait_timeout)
occ-000370slime/agent/adapters/common.py:237 · 快照BaseAdapter.shutdown_session._drainawaitawaitpython_astawait asyncio.gather(*pending, return_exceptions=True)
occ-000373slime/agent/adapters/common.py:241 · 快照BaseAdapter.shutdown_sessionawaitawaitpython_astawait asyncio.wrap_future(asyncio.run_coroutine_threadsafe(_drain(), loop))
occ-000377slime/agent/adapters/common.py:245 · 快照BaseAdapterasync_deffinish_sessionpython_astasync def finish_session(
occ-000378slime/agent/adapters/common.py:261 · 快照BaseAdapter.finish_sessionawaitawaitpython_astawait self.shutdown_session(sid, wait_timeout=wait_timeout)
occ-000379slime/agent/adapters/common.py:278 · 快照BaseAdapterasync_defdrop_sessionpython_astasync def drop_session(self, sid: str, *, wait_timeout: float = 5.0) -> None:
occ-000380slime/agent/adapters/common.py:279 · 快照BaseAdapter.drop_sessionawaitawaitpython_astawait self.shutdown_session(sid, wait_timeout=wait_timeout)
occ-000383slime/agent/adapters/common.py:318 · 快照BaseAdapterasync_def_run_turnpython_astasync def _run_turn(self, request: web.Request) -> web.StreamResponse:
occ-000384slime/agent/adapters/common.py:325 · 快照BaseAdapter._run_turnawaitawaitpython_astbody = await request.json()
occ-000386slime/agent/adapters/common.py:344 · 快照BaseAdapter._run_turnawaitawaitpython_astturn = await call_sglang_generate(prompt_ids, s, body, adapter=self, session_id=sid)
occ-000389slime/agent/adapters/common.py:363 · 快照BaseAdapter._run_turnawaitawaitpython_astresponse = await self._respond(request, body, reply, in_tok, out_tok, stream)
occ-000400slime/agent/adapters/common.py:442 · 快照<module>async_defcall_sglang_generatepython_astasync def call_sglang_generate(
occ-000402slime/agent/adapters/common.py:475 · 快照call_sglang_generateasync_withasync withpython_astasync with aiohttp.ClientSession(timeout=timeout) as sess, sess.post(
occ-000403slime/agent/adapters/common.py:486 · 快照call_sglang_generateawaitawaitpython_asttext = await r.text()
occ-000404slime/agent/adapters/common.py:496 · 快照call_sglang_generateawaitawaitpython_astdata = await r.json(content_type=None)
occ-000411slime/agent/adapters/common.py:506 · 快照call_sglang_generateawaitawaitpython_astawait _abort_sglang_request(sglang_url, rid, logger)
occ-000412slime/agent/adapters/common.py:517 · 快照<module>async_def_abort_sglang_requestpython_astasync def _abort_sglang_request(sglang_url: str, rid: str, logger: logging.Logger) -> None:
occ-000413slime/agent/adapters/common.py:521 · 快照_abort_sglang_requestasync_withasync withpython_astasync with aiohttp.ClientSession(timeout=timeout) as session:
occ-000414slime/agent/adapters/common.py:523 · 快照_abort_sglang_requestasync_defabort_workerpython_astasync def abort_worker(url: str) -> None:
occ-000415slime/agent/adapters/common.py:525 · 快照_abort_sglang_request.abort_workerasync_withasync withpython_astasync with session.post(f"{url}/abort_request", json={“rid”: rid}):
occ-000416slime/agent/adapters/common.py:530 · 快照_abort_sglang_requestasync_withasync withpython_astasync with session.get(f"{sglang_url}/workers") as response:
occ-000418slime/agent/adapters/common.py:532 · 快照_abort_sglang_requestawaitawaitpython_astawait abort_worker(sglang_url)
occ-000419slime/agent/adapters/common.py:535 · 快照_abort_sglang_requestawaitawaitpython_astpayload = await response.json()
occ-000422slime/agent/adapters/common.py:547 · 快照_abort_sglang_requestawaitawaitpython_astawait asyncio.gather(*(abort_worker(url) for url in worker_urls))
occ-000424slime/agent/adapters/common.py:557 · 快照<module>async_def_healthpython_astasync def _health(request: web.Request) -> web.Response:
occ-000427slime/agent/adapters/openai.py:69 · 快照OpenAIAdapterasync_def_respondpython_astasync def _respond(self, request, body, reply, in_tok, out_tok, stream) -> web.StreamResponse:
occ-000428slime/agent/adapters/openai.py:72 · 快照OpenAIAdapter._respondawaitawaitpython_astreturn await _render_stream(request, body, wire_message, wire_finish, in_tok, out_tok)
occ-000451slime/agent/adapters/openai.py:324 · 快照<module>async_def_render_streampython_astasync def _render_stream(
occ-000452slime/agent/adapters/openai.py:347 · 快照_render_streamawaitawaitpython_astawait out.prepare(request)
occ-000453slime/agent/adapters/openai.py:351 · 快照_render_streamasync_defemitpython_astasync def emit(delta: dict[str, Any], finish_reason: str | None = None, usage: dict | None = None) -> None:
occ-000455slime/agent/adapters/openai.py:361 · 快照_render_stream.emitawaitawaitpython_astawait out.write(f"data: {json.dumps(chunk, ensure_ascii=False)}\n\n".encode())
occ-000457slime/agent/adapters/openai.py:363 · 快照_render_streamawaitawaitpython_astawait emit({“role”: “assistant”})
occ-000459slime/agent/adapters/openai.py:366 · 快照_render_streamawaitawaitpython_astawait emit({“reasoning_content”: reasoning})
occ-000461slime/agent/adapters/openai.py:369 · 快照_render_streamawaitawaitpython_astawait emit({“content”: content})
occ-000463slime/agent/adapters/openai.py:375 · 快照_render_streamawaitawaitpython_astawait emit({“tool_calls”: [{**call, “index”: idx} for idx, call in enumerate(tool_calls)]})
occ-000464slime/agent/adapters/openai.py:376 · 快照_render_streamawaitawaitpython_astawait emit({}, finish_reason=wire_finish, usage=_usage(in_tok, out_tok))
occ-000465slime/agent/adapters/openai.py:377 · 快照_render_streamawaitawaitpython_astawait out.write(b"data: [DONE]\n\n")
occ-000471slime/agent/aiohttp_threaded.py:34 · 快照AppHandle.stopasync_def_shutdownpython_astasync def _shutdown() -> None:
occ-000472slime/agent/aiohttp_threaded.py:35 · 快照AppHandle.stop._shutdownawaitawaitpython_astawait self.runner.cleanup()
occ-000489slime/agent/harness/claude_code.py:36 · 快照ClaudeCodeHarnessasync_definstall_clipython_astasync def install_cli(self, sb: Sandbox) -> None:
occ-000490slime/agent/harness/claude_code.py:37 · 快照ClaudeCodeHarness.install_cliawaitawaitpython_astawait install_npm_cli(
occ-000491slime/agent/harness/claude_code.py:44 · 快照ClaudeCodeHarnessasync_defwrite_configpython_astasync def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:
occ-000492slime/agent/harness/claude_code.py:47 · 快照ClaudeCodeHarness.write_configawaitawaitpython_astawait sb.exec(
occ-000493slime/agent/harness/claude_code.py:57 · 快照ClaudeCodeHarnessasync_deflaunch_and_waitpython_astasync def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:
occ-000494slime/agent/harness/claude_code.py:71 · 快照ClaudeCodeHarness.launch_and_waitawaitawaitpython_astreturn await run_agent(sb, workdir=ctx.workdir, start_cmd=cmd, env=env, time_budget_sec=time_budget_sec)
occ-000495slime/agent/harness/codex.py:48 · 快照CodexHarnessasync_definstall_clipython_astasync def install_cli(self, sb: Sandbox) -> None:
occ-000496slime/agent/harness/codex.py:49 · 快照CodexHarness.install_cliawaitawaitpython_astawait install_npm_cli(
occ-000497slime/agent/harness/codex.py:56 · 快照CodexHarnessasync_defwrite_configpython_astasync def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:
occ-000498slime/agent/harness/codex.py:59 · 快照CodexHarness.write_configawaitawaitpython_astawait sb.exec(
occ-000499slime/agent/harness/codex.py:69 · 快照CodexHarnessasync_deflaunch_and_waitpython_astasync def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:
occ-000500slime/agent/harness/codex.py:86 · 快照CodexHarness.launch_and_waitawaitawaitpython_astreturn await run_agent(sb, workdir=ctx.workdir, start_cmd=cmd, env=env, time_budget_sec=time_budget_sec)
occ-000502slime/agent/harness/common.py:64 · 快照BaseHarnessasync_definstall_clipython_astasync def install_cli(self, sb: Sandbox) -> None:
occ-000503slime/agent/harness/common.py:69 · 快照BaseHarnessasync_defwrite_configpython_astasync def write_config(self, sb: Sandbox, ctx: HarnessContext) -> None:
occ-000504slime/agent/harness/common.py:73 · 快照BaseHarnessasync_deflaunch_and_waitpython_astasync def launch_and_wait(self, sb: Sandbox, ctx: HarnessContext, prompt: str, time_budget_sec: int) -> int:
occ-000505slime/agent/harness/common.py:81 · 快照BaseHarnessasync_defrunpython_astasync def run(
occ-000506slime/agent/harness/common.py:97 · 快照BaseHarness.runawaitawaitpython_astawait _sandbox.ensure_agent_user(sb, workdir)
occ-000507slime/agent/harness/common.py:103 · 快照BaseHarness.runawaitawaitpython_astawait self.write_config(sb, ctx)
occ-000508slime/agent/harness/common.py:104 · 快照BaseHarness.runawaitawaitpython_astreturn await self.launch_and_wait(sb, ctx, prompt, time_budget_sec)
occ-000509slime/agent/harness/common.py:107 · 快照<module>async_defrun_agentpython_astasync def run_agent(sb: Sandbox, *, workdir: str, start_cmd: str, env: dict[str, str], time_budget_sec: int) -> int:
occ-000510slime/agent/harness/common.py:110 · 快照run_agentawaitawaitpython_astawait sb.exec(f"mkdir -p {meta_dir} && chown agent:agent {meta_dir}", user=“root”, check=True, timeout=30)
occ-000511slime/agent/harness/common.py:111 · 快照run_agentawaitawaitpython_astexit_code, _ = await exec_and_wait(
occ-000512slime/agent/harness/common.py:125 · 快照<module>async_definstall_npm_clipython_astasync def install_npm_cli(
occ-000513slime/agent/harness/common.py:135 · 快照install_npm_cliawaitawaitpython_astawait install_node22(sb, node_runtime)
occ-000514slime/agent/harness/common.py:137 · 快照install_npm_cliawaitawaitpython_astawait sb.write_file("/tmp/harness-cli.tgz", npm_package)
occ-000515slime/agent/harness/common.py:142 · 快照install_npm_cliawaitawaitpython_astexit_code, last_log = await exec_and_wait(
occ-000516slime/agent/harness/common.py:148 · 快照install_npm_cliawaitawaitpython_astawait asyncio.sleep(NPM_INSTALL_BACKOFF_SEC * (attempt + 1))
occ-000518slime/agent/harness/common.py:154 · 快照<module>async_definstall_node22python_astasync def install_node22(sb: Sandbox, host_tarball: Path) -> None:
occ-000519slime/agent/harness/common.py:167 · 快照install_node22awaitawaitpython_astawait sb.write_file("/tmp/node22.tar", host_tarball)
occ-000520slime/agent/harness/common.py:168 · 快照install_node22awaitawaitpython_astawait sb.exec(
occ-000522slime/agent/sandbox.py:42 · 快照Sandboxasync_defaenterpython_astasync def aenter(self) -> Sandbox: …
occ-000523slime/agent/sandbox.py:44 · 快照Sandboxasync_defaexitpython_astasync def aexit(self, exc_type, exc, tb) -> None: …
occ-000524slime/agent/sandbox.py:46 · 快照Sandboxasync_defexecpython_astasync def exec(
occ-000525slime/agent/sandbox.py:57 · 快照Sandboxasync_defwrite_filepython_astasync def write_file(self, sandbox_path: str, content: FileContent, *, user: str = “root”) -> None: …
occ-000526slime/agent/sandbox.py:59 · 快照Sandboxasync_defread_filepython_astasync def read_file(self, sandbox_path: str, *, user: str = “root”) -> str: …
occ-000527slime/agent/sandbox.py:65 · 快照<module>async_def_await_done_markerpython_astasync def _await_done_marker(sb: Sandbox, done_file: str, *, user: str, time_budget_sec: int) -> int:
occ-000528slime/agent/sandbox.py:75 · 快照_await_done_markerawaitawaitpython_astawait asyncio.sleep(5)
occ-000530slime/agent/sandbox.py:76 · 快照_await_done_markerawaitawaitpython_astec, out, _ = await sb.exec(f"test -f {done_file} && cat {done_file}", user=user, timeout=15, check=False)
occ-000531slime/agent/sandbox.py:82 · 快照<module>async_defexec_and_waitpython_astasync def exec_and_wait(
occ-000532slime/agent/sandbox.py:113 · 快照exec_and_waitawaitawaitpython_astawait sb.write_file(launcher, launcher_body, user=user)
occ-000533slime/agent/sandbox.py:122 · 快照exec_and_waitawaitawaitpython_astawait sb.exec(
occ-000534slime/agent/sandbox.py:129 · 快照exec_and_waitawaitawaitpython_astawait sb.exec(
occ-000535slime/agent/sandbox.py:139 · 快照exec_and_waitawaitawaitpython_astexit_code = await _await_done_marker(sb, done_file, user=user, time_budget_sec=time_budget_sec)
occ-000536slime/agent/sandbox.py:143 · 快照exec_and_waitawaitawaitpython_astreturn exit_code, await sb.read_file(out_file, user=user)
occ-000537slime/agent/sandbox.py:144 · 快照exec_and_waitawaitawaitpython_ast_, tail, _ = await sb.exec(f"tail -c 512 {out_file} 2>/dev/null", user=user, timeout=15, check=False)
occ-000538slime/agent/sandbox.py:237 · 快照E2BSandboxasync_def_rpc_retrypython_astasync def _rpc_retry(self, op_name: str, coro_factory, *, idempotent: bool = True):
occ-000539slime/agent/sandbox.py:249 · 快照E2BSandbox._rpc_retryawaitawaitpython_astreturn await coro_factory()
occ-000540slime/agent/sandbox.py:257 · 快照E2BSandbox._rpc_retryawaitawaitpython_astawait self._reset_conn_pool()
occ-000541slime/agent/sandbox.py:269 · 快照E2BSandbox._rpc_retryawaitawaitpython_astawait asyncio.sleep(backoff)
occ-000543slime/agent/sandbox.py:273 · 快照E2BSandboxasync_def_reset_conn_poolpython_astasync def _reset_conn_pool(self) -> None:
occ-000544slime/agent/sandbox.py:277 · 快照E2BSandbox._reset_conn_poolawaitawaitpython_astawait pool.aclose()
occ-000545slime/agent/sandbox.py:281 · 快照E2BSandboxasync_defaenterpython_astasync def aenter(self) -> E2BSandbox:
occ-000546slime/agent/sandbox.py:298 · 快照E2BSandbox.aenterawaitawaitpython_astself._sb = await self._rpc_retry(“create”, lambda: AsyncSandbox.create(timeout=self.timeout, metadata=md))
occ-000547slime/agent/sandbox.py:302 · 快照E2BSandboxasync_defaexitpython_astasync def aexit(self, exc_type, exc, tb) -> None:
occ-000548slime/agent/sandbox.py:305 · 快照E2BSandbox.aexitawaitawaitpython_astawait self._sb.kill()
occ-000550slime/agent/sandbox.py:309 · 快照E2BSandboxasync_defexecpython_astasync def exec(
occ-000551slime/agent/sandbox.py:322 · 快照E2BSandbox.execawaitawaitpython_astres = await self._rpc_retry(
occ-000552slime/agent/sandbox.py:342 · 快照E2BSandboxasync_defwrite_filepython_astasync def write_file(self, sandbox_path: str, content: FileContent, *, user: str = “root”) -> None:
occ-000553slime/agent/sandbox.py:346 · 快照E2BSandbox.write_fileasync_def_do_pathpython_astasync def _do_path():
occ-000554slime/agent/sandbox.py:348 · 快照E2BSandbox.write_file._do_pathawaitawaitpython_astawait self._sb.files.write(
occ-000556slime/agent/sandbox.py:357 · 快照E2BSandbox.write_fileawaitawaitpython_astawait self._rpc_retry(f"write_file({sandbox_path} <- {host_path.name})", _do_path)
occ-000557slime/agent/sandbox.py:362 · 快照E2BSandbox.write_fileasync_def_do_bytespython_astasync def _do_bytes():
occ-000558slime/agent/sandbox.py:363 · 快照E2BSandbox.write_file._do_bytesawaitawaitpython_astawait self._sb.files.write(
occ-000560slime/agent/sandbox.py:372 · 快照E2BSandbox.write_fileawaitawaitpython_astawait self._rpc_retry(f"write_file({sandbox_path}, bytes={len(content)})", _do_bytes)
occ-000561slime/agent/sandbox.py:375 · 快照E2BSandbox.write_fileawaitawaitpython_astawait self._rpc_retry(
occ-000563slime/agent/sandbox.py:380 · 快照E2BSandboxasync_defread_filepython_astasync def read_file(self, sandbox_path: str, *, user: str = “root”) -> str:
occ-000564slime/agent/sandbox.py:382 · 快照E2BSandbox.read_fileawaitawaitpython_astreturn await self._rpc_retry(
occ-000566slime/agent/sandbox.py:390 · 快照<module>async_defensure_agent_userpython_astasync def ensure_agent_user(sb: Sandbox, workdir: str) -> None:
occ-000567slime/agent/sandbox.py:392 · 快照ensure_agent_userawaitawaitpython_astawait sb.exec(
occ-000590slime/backends/megatron_utils/server/megatron_server.py:355 · 快照<module>async_def_ray_getpython_astasync def _ray_get(ref):
occ-000591slime/backends/megatron_utils/server/megatron_server.py:356 · 快照_ray_getawaitawaitpython_astreturn await asyncio.to_thread(ray.get, ref)
occ-000593slime/backends/megatron_utils/server/megatron_server.py:359 · 快照<module>async_def_read_json_payloadpython_astasync def _read_json_payload(request: web.Request) -> dict[str, Any]:
occ-000594slime/backends/megatron_utils/server/megatron_server.py:363 · 快照_read_json_payloadawaitawaitpython_astpayload = await request.json()
occ-000597slime/backends/megatron_utils/server/megatron_server.py:391 · 快照<module>async_def_wait_until_idlepython_astasync def _wait_until_idle(sample_manager, timeout_s: float) -> dict[str, Any]:
occ-000598slime/backends/megatron_utils/server/megatron_server.py:394 · 快照_wait_until_idleawaitawaitpython_astloads = await _ray_get(sample_manager.get_loads.remote())
occ-000599slime/backends/megatron_utils/server/megatron_server.py:399 · 快照_wait_until_idleawaitawaitpython_astawait asyncio.sleep(0.1)
occ-000605slime/backends/megatron_utils/server/megatron_server.py:431 · 快照_build_http_appasync_defdetectpython_astasync def detect(_request: web.Request) -> web.Response:
occ-000606slime/backends/megatron_utils/server/megatron_server.py:434 · 快照_build_http_appasync_defhealthzpython_astasync def healthz(_request: web.Request) -> web.Response:
occ-000607slime/backends/megatron_utils/server/megatron_server.py:437 · 快照_build_http_appasync_definfopython_astasync def info(_request: web.Request) -> web.Response:
occ-000608slime/backends/megatron_utils/server/megatron_server.py:440 · 快照_build_http_appasync_defget_loadspython_astasync def get_loads(_request: web.Request) -> web.Response:
occ-000609slime/backends/megatron_utils/server/megatron_server.py:441 · 快照_build_http_app.get_loadsawaitawaitpython_astreturn web.json_response(await _ray_get(sample_manager.get_loads.remote()))
occ-000610slime/backends/megatron_utils/server/megatron_server.py:443 · 快照_build_http_appasync_defupdate_from_diskpython_astasync def update_from_disk(request: web.Request) -> web.Response:
occ-000611slime/backends/megatron_utils/server/megatron_server.py:447 · 快照_build_http_app.update_from_diskawaitawaitpython_astpayload = await _read_json_payload(request)
occ-000612slime/backends/megatron_utils/server/megatron_server.py:452 · 快照_build_http_app.update_from_diskasync_withasync withpython_astasync with update_lock:
occ-000615slime/backends/megatron_utils/server/megatron_server.py:471 · 快照_build_http_app.update_from_diskawaitawaitpython_astresult = await asyncio.shield(update_future)
occ-000620slime/backends/megatron_utils/server/megatron_server.py:482 · 快照_build_http_app.update_from_diskawaitawaitpython_astbefore_loads = await _wait_until_idle(sample_manager, timeout_s)
occ-000621slime/backends/megatron_utils/server/megatron_server.py:483 · 快照_build_http_app.update_from_diskawaitawaitpython_astupdate_result = await asyncio.to_thread(update_from_disk_fn, model_path)
occ-000623slime/backends/megatron_utils/server/megatron_server.py:484 · 快照_build_http_app.update_from_diskawaitawaitpython_astafter_loads = await _ray_get(sample_manager.get_loads.remote())
occ-000624slime/backends/megatron_utils/server/megatron_server.py:504 · 快照_build_http_app.update_from_diskasync_withasync withpython_astasync with update_lock:
occ-000627slime/backends/megatron_utils/server/megatron_server.py:517 · 快照_build_http_appasync_defgeneratepython_astasync def generate(request: web.Request) -> web.Response:
occ-000628slime/backends/megatron_utils/server/megatron_server.py:521 · 快照_build_http_app.generateawaitawaitpython_astpayload = await _read_json_payload(request)
occ-000631slime/backends/megatron_utils/server/megatron_server.py:548 · 快照_build_http_app.generateawaitawaitpython_aststats = await _ray_get(sample_manager.get_stats.remote())
occ-000632slime/backends/megatron_utils/server/megatron_server.py:570 · 快照_build_http_app.generateawaitawaitpython_astrequest_id = await _ray_get(
occ-000633slime/backends/megatron_utils/server/megatron_server.py:581 · 快照_build_http_app.generateawaitawaitpython_astresult = await _ray_get(sample_manager.get_result.remote(request_id))
occ-000634slime/backends/megatron_utils/server/megatron_server.py:584 · 快照_build_http_app.generateawaitawaitpython_astawait asyncio.sleep(0.05)
occ-000637slime/backends/megatron_utils/server/megatron_server.py:588 · 快照_build_http_app.generateawaitawaitpython_astawait _ray_get(sample_manager.cancel_request.remote(request_id))
occ-000670slime/backends/sglang_utils/server_control.py:31 · 快照<module>async_defget_live_router_workerspython_astasync def get_live_router_workers(router_url: str, *, timeout: float) -> list[dict]:
occ-000671slime/backends/sglang_utils/server_control.py:38 · 快照get_live_router_workersasync_withasync withpython_astasync with httpx.AsyncClient(timeout=timeout, trust_env=False) as client:
occ-000672slime/backends/sglang_utils/server_control.py:39 · 快照get_live_router_workersawaitawaitpython_astresponse = await client.get(f"{router_url}/workers")
occ-000674slime/backends/sglang_utils/server_control.py:42 · 快照get_live_router_workersasync_defcheckpython_astasync def check(worker):
occ-000675slime/backends/sglang_utils/server_control.py:44 · 快照get_live_router_workers.checkawaitawaitpython_astresponse = await client.get(f"{worker[‘url’]}/health_generate")
occ-000677slime/backends/sglang_utils/server_control.py:50 · 快照get_live_router_workers.checkawaitawaitpython_astresponse = await client.delete(f"{router_url}/workers/{worker[‘id’]}")
occ-000678slime/backends/sglang_utils/server_control.py:57 · 快照get_live_router_workersawaitawaitpython_astworkers = await asyncio.gather(*(check(worker) for worker in response.json()[“workers”]))
occ-000694slime/backends/sglang_utils/server_control.py:152 · 快照<module>async_def_abort_server_oncepython_astasync def _abort_server_once(url: str, request_timeout: float) -> None:
occ-000695slime/backends/sglang_utils/server_control.py:153 · 快照_abort_server_onceawaitawaitpython_astawait asyncio.wait_for(
occ-000697slime/backends/sglang_utils/server_control.py:159 · 快照<module>async_def_get_server_loadpython_astasync def _get_server_load(url: str, request_timeout: float) -> Any:
occ-000698slime/backends/sglang_utils/server_control.py:160 · 快照_get_server_loadawaitawaitpython_astreturn await asyncio.wait_for(
occ-000700slime/backends/sglang_utils/server_control.py:166 · 快照<module>async_defabort_server_until_idlepython_astasync def abort_server_until_idle(
occ-000702slime/backends/sglang_utils/server_control.py:199 · 快照abort_server_until_idleawaitawaitpython_astawait _abort_server_once(url, per_request_timeout)
occ-000703slime/backends/sglang_utils/server_control.py:210 · 快照abort_server_until_idleawaitawaitpython_astload = await _get_server_load(url, min(request_timeout, remaining))
occ-000704slime/backends/sglang_utils/server_control.py:233 · 快照abort_server_until_idleawaitawaitpython_astawait asyncio.sleep(min(retry_interval, remaining))
occ-000706slime/backends/sglang_utils/server_control.py:237 · 快照<module>async_defabort_servers_until_idlepython_astasync def abort_servers_until_idle(
occ-000707slime/backends/sglang_utils/server_control.py:245 · 快照abort_servers_until_idleawaitawaitpython_astresults = await asyncio.gather(
occ-000808slime/data/queue_data_source.py:1113 · 快照QueueReaderasync_defget_samples_asyncpython_astasync def get_samples_async(self, num_samples):
occ-000809slime/data/queue_data_source.py:1115 · 快照QueueReader.get_samples_asyncawaitawaitpython_astreturn await asyncio.get_running_loop().run_in_executor(self._reader, self.get_samples, num_samples)
occ-000831slime/data/transport.py:364 · 快照<module>async_defpublish_rollout_asyncpython_astasync def publish_rollout_async(value, args, rollout_id, *, group=False, controller=None):
occ-000832slime/data/transport.py:366 · 快照publish_rollout_asyncawaitawaitpython_astreturn await run_rollout_io(args, pack_rollout_group, value, args, rollout_id, controller=controller)
occ-000833slime/data/transport.py:367 · 快照publish_rollout_asyncawaitawaitpython_astreturn await run_rollout_io(args, pack_rollout_payload, value, args, rollout_id)
occ-000834slime/data/transport.py:370 · 快照<module>async_defrun_rollout_iopython_astasync def run_rollout_io(args, function, *values, **kwargs):
occ-000838slime/data/transport.py:376 · 快照run_rollout_ioasync_withasync withpython_astasync with _async_limits[key]:
occ-000841slime/data/transport.py:379 · 快照run_rollout_ioawaitawaitpython_astreturn await asyncio.shield(pending)
occ-000845slime/data/transport.py:385 · 快照run_rollout_ioawaitawaitpython_astawait asyncio.shield(pending)
occ-000849slime/data/transport.py:410 · 快照<module>async_defunpack_published_payloadpython_astasync def unpack_published_payload(value):
occ-000850slime/data/transport.py:413 · 快照unpack_published_payloadawaitawaitpython_astreturn await asyncio.to_thread(unpack_rollout_payload, value)
occ-000852slime/data/transport.py:419 · 快照unpack_published_payloadawaitawaitpython_astreturn await asyncio.to_thread(unpack_rollout_payload, value)
occ-000885slime/observability/trace_utils.py:463 · 快照trace_function.decoratorasync_defasync_wrapperpython_astasync def async_wrapper(*args, **kwargs):
occ-000886slime/observability/trace_utils.py:472 · 快照trace_function.decorator.async_wrapperawaitawaitpython_astreturn await fn(*args, **kwargs)
occ-000887slime/observability/trace_utils.py:475 · 快照trace_function.decorator.async_wrapperawaitawaitpython_astreturn await fn(*args, **kwargs)
occ-000935slime/rollout/fully_async_distributed.py:279 · 快照_GenerationActorasync_defstartpython_astasync def start(self, rollout_id):
occ-000937slime/rollout/fully_async_distributed.py:281 · 快照_GenerationActor.startawaitawaitpython_astawait asyncio.wrap_future(future)
occ-000939slime/rollout/fully_async_distributed.py:283 · 快照_GenerationActorasync_def_startpython_astasync def _start(self, rollout_id):
occ-000944slime/rollout/fully_async_distributed.py:294 · 快照_GenerationActorasync_defpausepython_astasync def pause(self):
occ-000946slime/rollout/fully_async_distributed.py:296 · 快照_GenerationActor.pauseawaitawaitpython_astawait asyncio.wrap_future(future)
occ-000948slime/rollout/fully_async_distributed.py:298 · 快照_GenerationActorasync_def_pausepython_astasync def _pause(self):
occ-000949slime/rollout/fully_async_distributed.py:301 · 快照_GenerationActorasync_defnextpython_astasync def next(self):
occ-000951slime/rollout/fully_async_distributed.py:303 · 快照_GenerationActor.nextawaitawaitpython_astreturn await asyncio.wrap_future(future)
occ-000953slime/rollout/fully_async_distributed.py:305 · 快照_GenerationActorasync_def_nextpython_astasync def _next(self):
occ-000956slime/rollout/fully_async_distributed.py:308 · 快照_GenerationActor._nextawaitawaitpython_astawait asyncio.wait((take, self.producer), return_when=asyncio.FIRST_COMPLETED)
occ-000963slime/rollout/fully_async_distributed.py:313 · 快照_GenerationActor._nextawaitawaitpython_astreturn await take
occ-000965slime/rollout/fully_async_distributed.py:317 · 快照_GenerationActor._nextawaitawaitpython_astawait asyncio.gather(take, return_exceptions=True)
occ-000967slime/rollout/fully_async_distributed.py:319 · 快照_GenerationActorasync_def_producepython_astasync def _produce(self):
occ-000968slime/rollout/fully_async_distributed.py:320 · 快照_GenerationActor._produceasync_defgenerate_slotpython_astasync def generate_slot(group):
occ-000969slime/rollout/fully_async_distributed.py:322 · 快照_GenerationActor._produce.generate_slotawaitawaitpython_astoutput = await self._generate_group(self.rollout_id, group)
occ-000970slime/rollout/fully_async_distributed.py:325 · 快照_GenerationActor._produce.generate_slotawaitawaitpython_astawait self.outputs.put(output)
occ-000972slime/rollout/fully_async_distributed.py:333 · 快照_GenerationActor._produceawaitawaitpython_astgroups = await self.data_source.get_samples_async(min(64, self.capacity - offset))
occ-000974slime/rollout/fully_async_distributed.py:337 · 快照_GenerationActor._produceawaitawaitpython_astawait asyncio.sleep(0.001)
occ-000976slime/rollout/fully_async_distributed.py:338 · 快照_GenerationActor._produceawaitawaitpython_astawait asyncio.gather(*tasks)
occ-000979slime/rollout/fully_async_distributed.py:342 · 快照_GenerationActor._produceawaitawaitpython_astawait asyncio.gather(*tasks, return_exceptions=True)
occ-000981slime/rollout/fully_async_distributed.py:344 · 快照_GenerationActorasync_def_generate_grouppython_astasync def _generate_group(self, rollout_id, group=None):
occ-000982slime/rollout/fully_async_distributed.py:348 · 快照_GenerationActor._generate_groupawaitawaitpython_astgroup = (await self.data_source.get_samples_async(1))[0]
occ-000983slime/rollout/fully_async_distributed.py:352 · 快照_GenerationActor._generate_groupawaitawaitpython_astawait self._rebuffer(group)
occ-000984slime/rollout/fully_async_distributed.py:360 · 快照_GenerationActor._generate_groupawaitawaitpython_astgroup = await generate_and_rm_group(self.args, group, self.state.sampling_params.copy())
occ-000985slime/rollout/fully_async_distributed.py:364 · 快照_GenerationActor._generate_groupawaitawaitpython_astawait self._rebuffer(group)
occ-000986slime/rollout/fully_async_distributed.py:373 · 快照_GenerationActor._generate_groupawaitawaitpython_astawait asyncio.to_thread(
occ-000988slime/rollout/fully_async_distributed.py:382 · 快照_GenerationActor._generate_groupawaitawaitpython_astgroup = await publish_rollout_async(
occ-000989slime/rollout/fully_async_distributed.py:387 · 快照_GenerationActor._generate_groupawaitawaitpython_astaccepted = await publish_rollout_async(
occ-000990slime/rollout/fully_async_distributed.py:394 · 快照_GenerationActor._generate_groupawaitawaitpython_astgroup = await asyncio.to_thread(self.data_source.materialize_samples, group)
occ-000992slime/rollout/fully_async_distributed.py:397 · 快照_GenerationActorasync_def_rebufferpython_astasync def _rebuffer(self, group):
occ-000996slime/rollout/fully_async_distributed.py:405 · 快照_GenerationActor._rebufferawaitawaitpython_astawait asyncio.shield(future)
occ-000998slime/rollout/fully_async_distributed.py:407 · 快照_GenerationActorasync_def_flush_rebufferspython_astasync def _flush_rebuffers(self):
occ-000999slime/rollout/fully_async_distributed.py:409 · 快照_GenerationActor._flush_rebuffersawaitawaitpython_astawait asyncio.sleep(0.01)
occ-001001slime/rollout/fully_async_distributed.py:413 · 快照_GenerationActor._flush_rebuffersawaitawaitpython_astawait asyncio.to_thread(self.data_source.add_samples, [group for group, _ in batch])
occ-001007slime/rollout/fully_async_distributed.py:434 · 快照_GenerationActorasync_defclosepython_astasync def close(self):
occ-001009slime/rollout/fully_async_distributed.py:436 · 快照_GenerationActor.closeawaitawaitpython_astawait asyncio.wrap_future(future)
occ-001011slime/rollout/fully_async_distributed.py:438 · 快照_GenerationActorasync_def_closepython_astasync def _close(self):
occ-001013slime/rollout/fully_async_distributed.py:442 · 快照_GenerationActor._closeawaitawaitpython_astawait asyncio.gather(self.producer, return_exceptions=True)
occ-001015slime/rollout/fully_async_distributed.py:444 · 快照_GenerationActor._closeawaitawaitpython_astawait self._rebuffer_task
occ-001016slime/rollout/fully_async_distributed.py:447 · 快照_GenerationActor._closeawaitawaitpython_astawait asyncio.get_running_loop().shutdown_default_executor()
occ-001043slime/rollout/fully_async_rollout.py:173 · 快照AsyncRolloutWorkerasync_def_looppython_astasync def _loop(self) -> None:
occ-001047slime/rollout/fully_async_rollout.py:192 · 快照AsyncRolloutWorker._loopawaitawaitpython_astawait asyncio.sleep(0)
occ-001053slime/rollout/fully_async_rollout.py:226 · 快照AsyncRolloutWorker._loopawaitawaitpython_astawait asyncio.sleep(self.poll_interval)
occ-001055slime/rollout/fully_async_rollout.py:237 · 快照AsyncRolloutWorker._loopawaitawaitpython_astawait asyncio.wait(active_tasks, timeout=30)
occ-001062slime/rollout/fully_async_rollout.py:268 · 快照<module>async_def_generate_rollout_asyncpython_astasync def _generate_rollout_async(args, rollout_id: int, data_buffer) -> RolloutFnTrainOutput | list[list[Sample]]:
occ-001063slime/rollout/fully_async_rollout.py:306 · 快照_generate_rollout_asyncawaitawaitpython_astgroup = await publish_rollout_async(
occ-001064slime/rollout/fully_async_rollout.py:312 · 快照_generate_rollout_asyncawaitawaitpython_astawait asyncio.to_thread(
occ-001067slime/rollout/fully_async_rollout.py:324 · 快照_generate_rollout_asyncawaitawaitpython_astawait asyncio.sleep(0.05)
occ-001069slime/rollout/fully_async_rollout.py:357 · 快照_generate_rollout_asyncawaitawaitpython_astoutput = await asyncio.to_thread(
occ-001071slime/rollout/on_policy_distillation.py:8 · 快照<module>async_defreward_funcpython_astasync def reward_func(args, sample, **kwargs):
occ-001073slime/rollout/on_policy_distillation.py:26 · 快照reward_funcasync_withasync withpython_astasync with aiohttp.ClientSession(**session_kwargs) as session:
occ-001074slime/rollout/on_policy_distillation.py:27 · 快照reward_funcasync_withasync withpython_astasync with session.post(args.rm_url, json=payload) as resp:
occ-001075slime/rollout/on_policy_distillation.py:29 · 快照reward_funcawaitawaitpython_astreturn await resp.json()
occ-001077slime/rollout/rm_hub/init.py:34 · 快照<module>async_defremote_rmpython_astasync def remote_rm(args, sample: Sample, max_retries: int = 10):
occ-001078slime/rollout/rm_hub/init.py:43 · 快照remote_rmasync_withasync withpython_astasync with session.post(args.rm_url, json=payload) as resp:
occ-001079slime/rollout/rm_hub/init.py:45 · 快照remote_rmawaitawaitpython_astreturn await resp.json()
occ-001080slime/rollout/rm_hub/init.py:52 · 快照remote_rmawaitawaitpython_astawait asyncio.sleep(backoff)
occ-001082slime/rollout/rm_hub/init.py:55 · 快照<module>async_defasync_rmpython_astasync def async_rm(args, sample: Sample, **kwargs):
occ-001083slime/rollout/rm_hub/init.py:59 · 快照async_rmawaitawaitpython_astreturn await rm_function(args, sample, **kwargs)
occ-001084slime/rollout/rm_hub/init.py:63 · 快照async_rmawaitawaitpython_astreturn await rm_function(args, sample, **kwargs)
occ-001086slime/rollout/rm_hub/init.py:76 · 快照async_rmawaitawaitpython_astreturn await remote_rm(args, sample)
occ-001087slime/rollout/rm_hub/init.py:99 · 快照<module>async_defbatched_async_rmpython_astasync def batched_async_rm(
occ-001088slime/rollout/rm_hub/init.py:107 · 快照batched_async_rmawaitawaitpython_astreturn await rm_function(args, samples, **kwargs)
occ-001089slime/rollout/rm_hub/init.py:109 · 快照batched_async_rmawaitawaitpython_astrewards = await asyncio.gather(*tasks)
occ-001108slime/rollout/sample_hooks.py:37 · 快照<module>async_def_apply_to_samplepython_astasync def _apply_to_sample(args, sample: Sample, paths: list[str], **kwargs) -> Sample:
occ-001110slime/rollout/sample_hooks.py:42 · 快照_apply_to_sampleawaitawaitpython_astresult = await result
occ-001111slime/rollout/sample_hooks.py:52 · 快照<module>async_defapply_rollout_sample_hookspython_astasync def apply_rollout_sample_hooks(args, value, **kwargs):
occ-001113slime/rollout/sample_hooks.py:61 · 快照apply_rollout_sample_hooksawaitawaitpython_astreturn await _apply_to_sample(args, value, paths, **kwargs)
occ-001114slime/rollout/sample_hooks.py:63 · 快照apply_rollout_sample_hooks.<comprehension>awaitawaitpython_astreturn [await apply_rollout_sample_hooks(args, item, **kwargs) for item in value]
occ-001120slime/rollout/sglang_rollout.py:158 · 快照<module>async_defgeneratepython_astasync def generate(args: Namespace, sample: Sample, sampling_params: dict[str, Any]) -> Sample:
occ-001122slime/rollout/sglang_rollout.py:220 · 快照generateawaitawaitpython_astoutput = await post(
occ-001123slime/rollout/sglang_rollout.py:258 · 快照<module>async_def_run_request_abortable_generatepython_astasync def _run_request_abortable_generate(
occ-001126slime/rollout/sglang_rollout.py:267 · 快照_run_request_abortable_generateawaitawaitpython_astreturn await generate_call
occ-001128slime/rollout/sglang_rollout.py:277 · 快照<module>async_def_run_server_abort_generatepython_astasync def _run_server_abort_generate(
occ-001130slime/rollout/sglang_rollout.py:283 · 快照_run_server_abort_generateawaitawaitpython_astreturn await generate_call
occ-001131slime/rollout/sglang_rollout.py:289 · 快照<module>async_defgenerate_and_rmpython_astasync def generate_and_rm(
occ-001132slime/rollout/sglang_rollout.py:329 · 快照generate_and_rmasync_withasync withpython_astasync with state.semaphore:
occ-001133slime/rollout/sglang_rollout.py:330 · 快照generate_and_rmawaitawaitpython_astawait state.generation_pacer.wait()
occ-001135slime/rollout/sglang_rollout.py:345 · 快照generate_and_rmawaitawaitpython_astsample = await _run_request_abortable_generate(state, sample, generate_call)
occ-001136slime/rollout/sglang_rollout.py:347 · 快照generate_and_rmawaitawaitpython_astsample = await _run_server_abort_generate(state, generate_call)
occ-001137slime/rollout/sglang_rollout.py:350 · 快照generate_and_rmawaitawaitpython_astsample = await apply_rollout_sample_hooks(args, sample, evaluation=evaluation)
occ-001138slime/rollout/sglang_rollout.py:364 · 快照generate_and_rmawaitawaitpython_astrewards = await batched_async_rm(args, samples_need_reward)
occ-001139slime/rollout/sglang_rollout.py:374 · 快照generate_and_rmawaitawaitpython_astsample.reward = await async_rm(args, sample)
occ-001140slime/rollout/sglang_rollout.py:384 · 快照<module>async_defgenerate_and_rm_grouppython_astasync def generate_and_rm_group(
occ-001142slime/rollout/sglang_rollout.py:414 · 快照generate_and_rm_groupawaitawaitpython_astgroup = await asyncio.gather(*tasks)
occ-001144slime/rollout/sglang_rollout.py:419 · 快照generate_and_rm_groupawaitawaitpython_astrewards = await batched_async_rm(args, group)
occ-001145slime/rollout/sglang_rollout.py:426 · 快照<module>async_defabortpython_astasync def abort(args: Namespace, rollout_id: int) -> list[list[Sample]]:
occ-001147slime/rollout/sglang_rollout.py:441 · 快照abortawaitawaitpython_astworkers = (await get(f"{router_url}/workers"))[“workers”]
occ-001148slime/rollout/sglang_rollout.py:445 · 快照abortawaitawaitpython_astworkers = await get_live_router_workers(router_url, timeout=args.rollout_health_check_timeout)
occ-001149slime/rollout/sglang_rollout.py:447 · 快照abortawaitawaitpython_astawait abort_servers_until_idle(urls)
occ-001150slime/rollout/sglang_rollout.py:449 · 快照abortawaitawaitpython_astawait asyncio.gather(*cancellable_tasks, return_exceptions=True)
occ-001152slime/rollout/sglang_rollout.py:454 · 快照abortawaitawaitpython_astdone, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)
occ-001156slime/rollout/sglang_rollout.py:476 · 快照<module>async_defgenerate_rollout_asyncpython_astasync def generate_rollout_async(
occ-001157slime/rollout/sglang_rollout.py:517 · 快照generate_rollout_asyncawaitawaitpython_astsamples = await reader.get_samples_async(args.over_sampling_batch_size)
occ-001158slime/rollout/sglang_rollout.py:523 · 快照generate_rollout_asyncawaitawaitpython_astdone, state.pendings = await asyncio.wait(state.pendings, return_when=asyncio.FIRST_COMPLETED)
occ-001162slime/rollout/sglang_rollout.py:545 · 快照generate_rollout_asyncawaitawaitpython_astawait asyncio.to_thread(
occ-001164slime/rollout/sglang_rollout.py:561 · 快照generate_rollout_asyncawaitawaitpython_astgroup = await publish_rollout_async(group, args, rollout_id, group=True, controller=controller)
occ-001166slime/rollout/sglang_rollout.py:571 · 快照generate_rollout_asyncawaitawaitpython_astaborted_samples = await abort(args, rollout_id)
occ-001168slime/rollout/sglang_rollout.py:585 · 快照generate_rollout_async.<comprehension>awaitawaitpython_astawait publish_rollout_async(group, args, rollout_id, group=True, controller=controller)
occ-001169slime/rollout/sglang_rollout.py:588 · 快照generate_rollout_asyncawaitawaitpython_astdata = await publish_rollout_async(data, args, rollout_id)
occ-001170slime/rollout/sglang_rollout.py:594 · 快照generate_rollout_asyncawaitawaitpython_astoutput = await asyncio.to_thread(
occ-001172slime/rollout/sglang_rollout.py:603 · 快照<module>async_defeval_rolloutpython_astasync def eval_rollout(args: Namespace, rollout_id: int) -> tuple[dict[str, dict[str, list[Any]]], list[list[Sample]]]:
occ-001173slime/rollout/sglang_rollout.py:609 · 快照eval_rolloutawaitawaitpython_astresults_list = await asyncio.gather(*coros)
occ-001175slime/rollout/sglang_rollout.py:616 · 快照<module>async_defeval_rollout_single_datasetpython_astasync def eval_rollout_single_dataset(
occ-001178slime/rollout/sglang_rollout.py:726 · 快照eval_rollout_single_datasetawaitawaitpython_astsample = await coro
occ-001180slime/rollout/sglang_streaming_rollout.py:48 · 快照<module>async_defgenerate_streamingpython_astasync def generate_streaming(args: Namespace, sample: Sample, sampling_params: dict[str, Any]) -> Sample:
occ-001182slime/rollout/sglang_streaming_rollout.py:125 · 快照generate_streamingasync_withasync withpython_astasync with client.stream(“POST”, url, json=payload, headers=headers) as response:
occ-001183slime/rollout/sglang_streaming_rollout.py:127 · 快照generate_streamingasync_forasync forpython_astasync for raw_line in response.aiter_lines():
occ-001198slime/utils/async_utils.py:24 · 快照AsyncPacerasync_defwaitpython_astasync def wait(self):
occ-001202slime/utils/async_utils.py:31 · 快照AsyncPacer.waitawaitawaitpython_astawait future
occ-001248slime/utils/http_utils.py:180 · 快照_ShardedHTTPTransportasync_defhandle_async_requestpython_astasync def handle_async_request(self, request):
occ-001249slime/utils/http_utils.py:183 · 快照_ShardedHTTPTransport.handle_async_requestawaitawaitpython_astreturn await transport.handle_async_request(request)
occ-001250slime/utils/http_utils.py:185 · 快照_ShardedHTTPTransportasync_defaclosepython_astasync def aclose(self):
occ-001251slime/utils/http_utils.py:186 · 快照_ShardedHTTPTransport.acloseawaitawaitpython_astawait asyncio.gather(*(transport.aclose() for transport in self._transports))
occ-001253slime/utils/http_utils.py:189 · 快照<module>async_def_postpython_astasync def _post(client, url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):
occ-001254slime/utils/http_utils.py:197 · 快照_postawaitawaitpython_astresponse = await client.post(url, **request_kwargs)
occ-001255slime/utils/http_utils.py:199 · 快照_postawaitawaitpython_astcontent = await response.aread()
occ-001256slime/utils/http_utils.py:204 · 快照_postawaitawaitpython_astoutput = await asyncio.to_thread(decode_score_centering_response, content, score_centering_top_k)
occ-001258slime/utils/http_utils.py:223 · 快照_postawaitawaitpython_astawait asyncio.sleep(1)
occ-001260slime/utils/http_utils.py:227 · 快照_postawaitawaitpython_astawait response.aclose()
occ-001262slime/utils/http_utils.py:297 · 快照_init_ray_distributed_post._HttpPosterActorasync_defdo_postpython_astasync def do_post(self, url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):
occ-001263slime/utils/http_utils.py:298 · 快照_init_ray_distributed_post._HttpPosterActor.do_postawaitawaitpython_astreturn await _post(
occ-001264slime/utils/http_utils.py:331 · 快照<module>async_defpostpython_astasync def post(url, payload, max_retries=60, headers=None, timeout=None, score_centering_top_k=None):
occ-001265slime/utils/http_utils.py:351 · 快照postawaitawaitpython_astreturn await obj_ref
occ-001266slime/utils/http_utils.py:356 · 快照postawaitawaitpython_astreturn await _post(
occ-001267slime/utils/http_utils.py:367 · 快照<module>async_defgetpython_astasync def get(url, *, timeout=None):
occ-001268slime/utils/http_utils.py:368 · 快照getawaitawaitpython_astresponse = await _http_client.get(url, timeout=timeout)
occ-001270slime/utils/http_utils.py:371 · 快照getawaitawaitpython_astcontent = await response.aread()
occ-001271slime/utils/http_utils.py:374 · 快照getawaitawaitpython_astawait response.aclose()
occ-001312slime_plugins/rollout_buffer/buffer.py:113 · 快照<module>async_defset_body_sizepython_astasync def set_body_size(request: Request, call_next):
occ-001313slime_plugins/rollout_buffer/buffer.py:115 · 快照set_body_sizeawaitawaitpython_astresponse = await call_next(request)
occ-001318slime_plugins/rollout_buffer/buffer.py:260 · 快照<module>async_defwrite_to_bufferpython_astasync def write_to_buffer(request: Request):
occ-001319slime_plugins/rollout_buffer/buffer.py:262 · 快照write_to_bufferawaitawaitpython_astdata = await request.json()
occ-001321slime_plugins/rollout_buffer/buffer.py:278 · 快照<module>async_defget_rollout_datapython_astasync def get_rollout_data(request: Request):
occ-001326slime_plugins/rollout_buffer/buffer.py:326 · 快照<module>async_defstart_rolloutpython_astasync def start_rollout(request: Request, background: BackgroundTasks):
occ-001327slime_plugins/rollout_buffer/buffer.py:327 · 快照start_rolloutawaitawaitpython_astpayload = await request.json()
occ-001352slime_plugins/rollout_buffer/rollout_buffer_example.py:138 · 快照<module>async_defget_rollout_datapython_astasync def get_rollout_data(api_base_url: str) -> tuple[list[dict[str, Any]], dict[str, Any]]:
occ-001353slime_plugins/rollout_buffer/rollout_buffer_example.py:140 · 快照get_rollout_dataasync_withasync withpython_astasync with aiohttp.ClientSession() as session:
occ-001354slime_plugins/rollout_buffer/rollout_buffer_example.py:142 · 快照get_rollout_dataasync_withasync withpython_astasync with session.post(
occ-001355slime_plugins/rollout_buffer/rollout_buffer_example.py:146 · 快照get_rollout_dataawaitawaitpython_astresp_json = await response.json()
occ-001356slime_plugins/rollout_buffer/rollout_buffer_example.py:149 · 快照get_rollout_dataawaitawaitpython_astawait asyncio.sleep(3)
occ-001358slime_plugins/rollout_buffer/rollout_buffer_example.py:207 · 快照<module>async_defgenerate_rollout_asyncpython_astasync def generate_rollout_async(args, rollout_id: int, data_buffer, evaluation: bool = False) -> dict[str, Any]:
occ-001360slime_plugins/rollout_buffer/rollout_buffer_example.py:244 · 快照generate_rollout_asyncawaitawaitpython_astdata, meta_info = await get_rollout_data(api_base_url=base_url)
occ-001401tests/fanout_test_helpers.py:39 · 快照<module>async_defcompact_generatepython_astasync def compact_generate(args, sample, sampling_params):
occ-001403tests/fanout_test_helpers.py:57 · 快照compact_generateawaitawaitpython_astbase_sample = await generate(args, sample, sampling_params)
occ-001406tests/pipeline_rl_test_helpers.py:21 · 快照<module>async_defrewardpython_astasync def reward(args, sample, **kwargs):
occ-001427tests/plugin_contracts/test_plugin_generate_contracts.py:75 · 快照<module>async_defcustom_generatepython_astasync def custom_generate(args, sample: Sample, sampling_params: dict):
occ-001428tests/plugin_contracts/test_plugin_generate_contracts.py:84 · 快照<module>async_defcustom_generate_with_evaluationpython_astasync def custom_generate_with_evaluation(args, sample: Sample, sampling_params: dict, evaluation: bool = False):
occ-001429tests/plugin_contracts/test_plugin_generate_contracts.py:108 · 快照_DummySemaphoreasync_defaenterpython_astasync def aenter(self):
occ-001430tests/plugin_contracts/test_plugin_generate_contracts.py:111 · 快照_DummySemaphoreasync_defaexitpython_astasync def aexit(self, exc_type, exc, tb):
occ-001431tests/plugin_contracts/test_plugin_generate_contracts.py:133 · 快照test_generate_and_rm_default_generate_branch_is_stableasync_defofficial_default_generatepython_astasync def official_default_generate(args, sample: Sample, sampling_params: dict):
occ-001435tests/plugin_contracts/test_plugin_generate_contracts.py:183 · 快照test_generate_and_rm_group_rm_accepts_list_result_from_custom_generateasync_defcustom_generate_listpython_astasync def custom_generate_list(args, sample: Sample, sampling_params: dict):
occ-001439tests/plugin_contracts/test_plugin_path_loading_contracts.py:143 · 快照<module>async_defreference_single_rmpython_astasync def reference_single_rm(args, sample: Sample, **kwargs):
occ-001440tests/plugin_contracts/test_plugin_path_loading_contracts.py:147 · 快照<module>async_defreference_batched_rmpython_astasync def reference_batched_rm(args, samples: list[Sample], **kwargs):
occ-001445tests/rollout_health_test_helpers.py:15 · 快照<module>async_defrewardpython_astasync def reward(args, sample, **kwargs):
occ-001446tests/rollout_health_test_helpers.py:36 · 快照generate_rolloutasync_defcrash_then_abortpython_astasync def crash_then_abort(config, current_rollout):
occ-001447tests/rollout_health_test_helpers.py:48 · 快照generate_rollout.crash_then_abortawaitawaitpython_astresult = await original_abort(config, current_rollout)
occ-001461tests/test_agent/_fakes.py:157 · 快照FakeSGLangServerasync_def_handlepython_astasync def _handle(self, request: web.Request) -> web.Response:
occ-001463tests/test_agent/_fakes.py:159 · 快照FakeSGLangServer._handleawaitawaitpython_astself.requests.append(await request.json())
occ-001464tests/test_agent/_fakes.py:171 · 快照FakeSGLangServerasync_defaenterpython_astasync def aenter(self) -> FakeSGLangServer:
occ-001465tests/test_agent/_fakes.py:177 · 快照FakeSGLangServer.aenterawaitawaitpython_astawait self._server.start_server()
occ-001466tests/test_agent/_fakes.py:181 · 快照FakeSGLangServerasync_defaexitpython_astasync def aexit(self, *exc) -> None:
occ-001467tests/test_agent/_fakes.py:183 · 快照FakeSGLangServer.aexitawaitawaitpython_astawait self._server.close()
occ-001469tests/test_agent/_fakes.py:197 · 快照fake_call_sglang_generateasync_def_fakepython_astasync def _fake(prompt_ids, session, body, *, adapter, session_id=None) -> TurnRecord:
occ-001471tests/test_agent/_fakes.py:260 · 快照FakeSandboxasync_defaenterpython_astasync def aenter(self) -> FakeSandbox:
occ-001472tests/test_agent/_fakes.py:263 · 快照FakeSandboxasync_defaexitpython_astasync def aexit(self, *exc) -> None:
occ-001473tests/test_agent/_fakes.py:266 · 快照FakeSandboxasync_defexecpython_astasync def exec(self, cmd, *, user=“root”, env=None, timeout=120, check=False, idempotent=True):
occ-001474tests/test_agent/_fakes.py:271 · 快照FakeSandbox.execawaitawaitpython_astcode = await self.on_launch(env or {})
occ-001475tests/test_agent/_fakes.py:290 · 快照FakeSandboxasync_defwrite_filepython_astasync def write_file(self, sandbox_path, content, *, user=“root”) -> None:
occ-001476tests/test_agent/_fakes.py:293 · 快照FakeSandboxasync_defread_filepython_astasync def read_file(self, sandbox_path, *, user=“root”) -> str:
occ-001480tests/test_agent/test_adapters.py:73 · 快照<module>async_def_drainpython_astasync def _drain(adapter, sid) -> list[Sample]:
occ-001481tests/test_agent/test_adapters.py:74 · 快照_drainawaitawaitpython_astreturn await adapter.finish_session(sid, base_sample=Sample(index=0, prompt=""), reward=1.0)
occ-001482tests/test_agent/test_adapters.py:169 · 快照test_anthropic_messages_nonstream_records_token_segmentsasync_defrun_casepython_astasync def run_case():
occ-001483tests/test_agent/test_adapters.py:170 · 快照test_anthropic_messages_nonstream_records_token_segments.run_caseasync_withasync withpython_astasync with FakeSGLangServer([[(-0.1, 101), (-0.2, 102)]]) as sglang:
occ-001484tests/test_agent/test_adapters.py:175 · 快照test_anthropic_messages_nonstream_records_token_segments.run_caseawaitawaitpython_astawait client.start_server()
occ-001485tests/test_agent/test_adapters.py:177 · 快照test_anthropic_messages_nonstream_records_token_segments.run_caseawaitawaitpython_astresp = await client.post(
occ-001486tests/test_agent/test_adapters.py:182 · 快照test_anthropic_messages_nonstream_records_token_segments.run_caseawaitawaitpython_astdata = await resp.json()
occ-001487tests/test_agent/test_adapters.py:184 · 快照test_anthropic_messages_nonstream_records_token_segments.run_caseawaitawaitpython_astawait client.close()
occ-001489tests/test_agent/test_adapters.py:185 · 快照test_anthropic_messages_nonstream_records_token_segments.run_caseawaitawaitpython_astsamples = await _drain(adapter, “sid-a”)
occ-001491tests/test_agent/test_adapters.py:205 · 快照test_openai_chat_completions_nonstream_records_token_segmentsasync_defrun_casepython_astasync def run_case():
occ-001492tests/test_agent/test_adapters.py:206 · 快照test_openai_chat_completions_nonstream_records_token_segments.run_caseasync_withasync withpython_astasync with FakeSGLangServer([[(-0.3, 201)]]) as sglang:
occ-001493tests/test_agent/test_adapters.py:211 · 快照test_openai_chat_completions_nonstream_records_token_segments.run_caseawaitawaitpython_astawait client.start_server()
occ-001494tests/test_agent/test_adapters.py:213 · 快照test_openai_chat_completions_nonstream_records_token_segments.run_caseawaitawaitpython_astresp = await client.post(
occ-001495tests/test_agent/test_adapters.py:218 · 快照test_openai_chat_completions_nonstream_records_token_segments.run_caseawaitawaitpython_astdata = await resp.json()
occ-001496tests/test_agent/test_adapters.py:220 · 快照test_openai_chat_completions_nonstream_records_token_segments.run_caseawaitawaitpython_astawait client.close()
occ-001498tests/test_agent/test_adapters.py:221 · 快照test_openai_chat_completions_nonstream_records_token_segments.run_caseawaitawaitpython_astsamples = await _drain(adapter, “sid-o”)
occ-001500tests/test_agent/test_adapters.py:239 · 快照test_anthropic_messages_streams_blocksasync_defrun_casepython_astasync def run_case():
occ-001501tests/test_agent/test_adapters.py:240 · 快照test_anthropic_messages_streams_blocks.run_caseasync_withasync withpython_astasync with FakeSGLangServer([[(-0.1, 301)]]) as sglang:
occ-001502tests/test_agent/test_adapters.py:245 · 快照test_anthropic_messages_streams_blocks.run_caseawaitawaitpython_astawait client.start_server()
occ-001503tests/test_agent/test_adapters.py:247 · 快照test_anthropic_messages_streams_blocks.run_caseawaitawaitpython_astresp = await client.post(
occ-001504tests/test_agent/test_adapters.py:257 · 快照test_anthropic_messages_streams_blocks.run_caseawaitawaitpython_astraw = await resp.text()
occ-001505tests/test_agent/test_adapters.py:259 · 快照test_anthropic_messages_streams_blocks.run_caseawaitawaitpython_astawait client.close()
occ-001507tests/test_agent/test_adapters.py:260 · 快照test_anthropic_messages_streams_blocks.run_caseawaitawaitpython_astawait _drain(adapter, “sid-as”)
occ-001510tests/test_agent/test_adapters.py:273 · 快照test_openai_chat_completions_streams_chunks_until_doneasync_defrun_casepython_astasync def run_case():
occ-001511tests/test_agent/test_adapters.py:274 · 快照test_openai_chat_completions_streams_chunks_until_done.run_caseasync_withasync withpython_astasync with FakeSGLangServer([[(-0.1, 401)]]) as sglang:
occ-001512tests/test_agent/test_adapters.py:279 · 快照test_openai_chat_completions_streams_chunks_until_done.run_caseawaitawaitpython_astawait client.start_server()
occ-001513tests/test_agent/test_adapters.py:281 · 快照test_openai_chat_completions_streams_chunks_until_done.run_caseawaitawaitpython_astresp = await client.post(
occ-001514tests/test_agent/test_adapters.py:286 · 快照test_openai_chat_completions_streams_chunks_until_done.run_caseawaitawaitpython_astraw = await resp.text()
occ-001515tests/test_agent/test_adapters.py:288 · 快照test_openai_chat_completions_streams_chunks_until_done.run_caseawaitawaitpython_astawait client.close()
occ-001517tests/test_agent/test_adapters.py:289 · 快照test_openai_chat_completions_streams_chunks_until_done.run_caseawaitawaitpython_astawait _drain(adapter, “sid-os”)
occ-001519tests/test_agent/test_adapters.py:313 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_captureasync_defrun_casepython_astasync def run_case():
occ-001520tests/test_agent/test_adapters.py:315 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseasync_withasync withpython_astasync with FakeSGLangServer([[(-0.5, 700), (-0.5, 701)], [(-0.4, 800)]]) as sglang:
occ-001521tests/test_agent/test_adapters.py:320 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astawait client.start_server()
occ-001522tests/test_agent/test_adapters.py:325 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astfirst = await client.post(
occ-001523tests/test_agent/test_adapters.py:335 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astfdata = await first.json()
occ-001524tests/test_agent/test_adapters.py:337 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astsecond = await client.post(
occ-001525tests/test_agent/test_adapters.py:356 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astawait second.json()
occ-001526tests/test_agent/test_adapters.py:358 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astawait client.close()
occ-001528tests/test_agent/test_adapters.py:359 · 快照test_anthropic_multiturn_wire_roundtrip_and_token_capture.run_caseawaitawaitpython_astsamples = await _drain(adapter, “sid-mt”)
occ-001530tests/test_agent/test_adapters.py:384 · 快照test_max_turns_per_sid_returns_429async_defrun_casepython_astasync def run_case():
occ-001531tests/test_agent/test_adapters.py:385 · 快照test_max_turns_per_sid_returns_429.run_caseasync_withasync withpython_astasync with FakeSGLangServer([[(-0.1, 501)], [(-0.1, 502)]]) as sglang:
occ-001532tests/test_agent/test_adapters.py:390 · 快照test_max_turns_per_sid_returns_429.run_caseawaitawaitpython_astawait client.start_server()
occ-001533tests/test_agent/test_adapters.py:394 · 快照test_max_turns_per_sid_returns_429.run_caseawaitawaitpython_astfirst = await client.post("/v1/messages", headers=h, json=body)
occ-001534tests/test_agent/test_adapters.py:395 · 快照test_max_turns_per_sid_returns_429.run_caseawaitawaitpython_astsecond = await client.post("/v1/messages", headers=h, json=body)
occ-001535tests/test_agent/test_adapters.py:397 · 快照test_max_turns_per_sid_returns_429.run_caseawaitawaitpython_astawait client.close()
occ-001537tests/test_agent/test_adapters.py:398 · 快照test_max_turns_per_sid_returns_429.run_caseawaitawaitpython_astawait _drain(adapter, “sid-cap”)
occ-001544tests/test_agent/test_agent_rollout_cpu.py:59 · 快照<module>async_generator_def_timeout_shimpython_astasync def _timeout_shim(_delay):
occ-001545tests/test_agent/test_agent_rollout_cpu.py:60 · 快照_timeout_shimasync_yieldyield in async generatorpython_astyield
occ-001548tests/test_agent/test_agent_rollout_cpu.py:81 · 快照<module>async_def_fast_sleeppython_astasync def _fast_sleep(_secs): # collapse run_command’s 5s poll loop
occ-001549tests/test_agent/test_agent_rollout_cpu.py:82 · 快照_fast_sleepawaitawaitpython_astawait _REAL_SLEEP(0)
occ-001550tests/test_agent/test_agent_rollout_cpu.py:108 · 快照<module>async_def_anthropic_agentpython_astasync def _anthropic_agent(env: dict, *, n_turns: int = 2) -> int:
occ-001551tests/test_agent/test_agent_rollout_cpu.py:114 · 快照_anthropic_agentasync_withasync withpython_astasync with aiohttp.ClientSession(trust_env=False) as sess:
occ-001552tests/test_agent/test_agent_rollout_cpu.py:116 · 快照_anthropic_agentasync_withasync withpython_astasync with sess.post(
occ-001553tests/test_agent/test_agent_rollout_cpu.py:121 · 快照_anthropic_agentawaitawaitpython_astdata = await r.json()
occ-001554tests/test_agent/test_agent_rollout_cpu.py:157 · 快照<module>async_def_noop_installpython_astasync def _noop_install(self, sb) -> None:
occ-001555tests/test_agent/test_agent_rollout_cpu.py:176 · 快照test_generate_produces_trained_samplesasync_defrun_casepython_astasync def run_case(monkeypatch):
occ-001556tests/test_agent/test_agent_rollout_cpu.py:181 · 快照test_generate_produces_trained_samples.run_caseawaitawaitpython_astsamples = await gen.generate(_args(), _base_sample(), sampling_params={“max_new_tokens”: 32})
occ-001559tests/test_agent/test_agent_rollout_cpu.py:201 · 快照test_generate_aborts_on_empty_trajectoryasync_defsilent_agentpython_astasync def silent_agent(_env) -> int:
occ-001560tests/test_agent/test_agent_rollout_cpu.py:204 · 快照test_generate_aborts_on_empty_trajectoryasync_defrun_casepython_astasync def run_case(monkeypatch):
occ-001561tests/test_agent/test_agent_rollout_cpu.py:209 · 快照test_generate_aborts_on_empty_trajectory.run_caseawaitawaitpython_astsamples = await gen.generate(_args(), _base_sample(), sampling_params={})
occ-001564tests/test_agent/test_agent_rollout_cpu.py:220 · 快照test_generate_aborts_on_missing_imageasync_defrun_casepython_astasync def run_case(monkeypatch):
occ-001565tests/test_agent/test_agent_rollout_cpu.py:224 · 快照test_generate_aborts_on_missing_image.run_caseawaitawaitpython_astsamples = await gen.generate(_args(), _base_sample(image=""), sampling_params={})
occ-001568tests/test_agent/test_agent_rollout_cpu.py:238 · 快照<module>async_def_codex_agentpython_astasync def _codex_agent(env: dict, *, n_turns: int = 2) -> int:
occ-001569tests/test_agent/test_agent_rollout_cpu.py:242 · 快照_codex_agentasync_withasync withpython_astasync with aiohttp.ClientSession(trust_env=False) as sess:
occ-001570tests/test_agent/test_agent_rollout_cpu.py:244 · 快照_codex_agentasync_withasync withpython_astasync with sess.post(
occ-001571tests/test_agent/test_agent_rollout_cpu.py:249 · 快照_codex_agentawaitawaitpython_astdata = await r.json()
occ-001573tests/test_agent/test_agent_rollout_cpu.py:260 · 快照test_codex_openai_rollout_closes_loopasync_defrun_casepython_astasync def run_case():
occ-001574tests/test_agent/test_agent_rollout_cpu.py:274 · 快照test_codex_openai_rollout_closes_loop.run_caseawaitawaitpython_astrc = await CodexHarness().run(
occ-001575tests/test_agent/test_agent_rollout_cpu.py:282 · 快照test_codex_openai_rollout_closes_loop.run_caseawaitawaitpython_astsamples = await adapter.finish_session(sid, base_sample=Sample(index=0, prompt=""), reward=1.0)
occ-001580tests/test_agent/test_harness.py:38 · 快照<module>async_def_fast_sleeppython_astasync def _fast_sleep(_secs):
occ-001581tests/test_agent/test_harness.py:39 · 快照_fast_sleepawaitawaitpython_astawait _REAL_SLEEP(0)
occ-001582tests/test_agent/test_harness.py:56 · 快照test_run_agent_returns_marker_exit_codeasync_defrun_casepython_astasync def run_case():
occ-001583tests/test_agent/test_harness.py:59 · 快照test_run_agent_returns_marker_exit_code.run_caseasync_deffake_agentpython_astasync def fake_agent(env):
occ-001584tests/test_agent/test_harness.py:65 · 快照test_run_agent_returns_marker_exit_code.run_caseawaitawaitpython_astrc = await hc.run_agent(
occ-001586tests/test_agent/test_harness.py:79 · 快照test_run_agent_propagates_nonzero_exitasync_defrun_casepython_astasync def run_case():
occ-001587tests/test_agent/test_harness.py:80 · 快照test_run_agent_propagates_nonzero_exit.run_caseasync_deffail_agentpython_astasync def fail_agent(_env):
occ-001588tests/test_agent/test_harness.py:85 · 快照test_run_agent_propagates_nonzero_exit.run_caseawaitawaitpython_astrc = await hc.run_agent(sb, workdir="/w", start_cmd=“x”, env={}, time_budget_sec=30)
occ-001590tests/test_agent/test_harness.py:92 · 快照test_run_agent_times_out_when_marker_never_appearsasync_defrun_casepython_astasync def run_case():
occ-001591tests/test_agent/test_harness.py:95 · 快照test_run_agent_times_out_when_marker_never_appears.run_caseawaitawaitpython_astrc = await hc.run_agent(sb, workdir="/w", start_cmd=“x”, env={}, time_budget_sec=0)
occ-001593tests/test_agent/test_harness.py:107 · 快照test_claude_code_write_config_preacks_bypass_permissionsasync_defrun_casepython_astasync def run_case():
occ-001594tests/test_agent/test_harness.py:109 · 快照test_claude_code_write_config_preacks_bypass_permissions.run_caseawaitawaitpython_astawait ClaudeCodeHarness().write_config(sb, _ctx())
occ-001597tests/test_agent/test_harness.py:119 · 快照test_claude_code_launch_command_and_envasync_defrun_casepython_astasync def run_case():
occ-001598tests/test_agent/test_harness.py:122 · 快照test_claude_code_launch_command_and_env.run_caseasync_defagentpython_astasync def agent(env):
occ-001599tests/test_agent/test_harness.py:128 · 快照test_claude_code_launch_command_and_env.run_caseawaitawaitpython_astrc = await ClaudeCodeHarness().launch_and_wait(
occ-001601tests/test_agent/test_harness.py:152 · 快照test_codex_write_config_base64_roundtrips_inline_base_urlasync_defrun_casepython_astasync def run_case():
occ-001602tests/test_agent/test_harness.py:154 · 快照test_codex_write_config_base64_roundtrips_inline_base_url.run_caseawaitawaitpython_astawait CodexHarness().write_config(sb, _ctx(url=“http://host:18001”))
occ-001604tests/test_agent/test_harness.py:167 · 快照test_codex_launch_command_and_envasync_defrun_casepython_astasync def run_case():
occ-001605tests/test_agent/test_harness.py:170 · 快照test_codex_launch_command_and_env.run_caseasync_defagentpython_astasync def agent(env):
occ-001606tests/test_agent/test_harness.py:176 · 快照test_codex_launch_command_and_env.run_caseawaitawaitpython_astrc = await CodexHarness().launch_and_wait(
occ-001608tests/test_agent/test_harness.py:195 · 快照test_ensure_agent_user_provisions_user_and_git_safe_dirasync_defrun_casepython_astasync def run_case():
occ-001609tests/test_agent/test_harness.py:197 · 快照test_ensure_agent_user_provisions_user_and_git_safe_dir.run_caseawaitawaitpython_astawait sandbox_mod.ensure_agent_user(sb, “/workspace/repo”)
occ-001611tests/test_agent/test_harness.py:212 · 快照test_base_harness_run_calls_steps_in_orderasync_defrun_casepython_astasync def run_case():
occ-001612tests/test_agent/test_harness.py:213 · 快照test_base_harness_run_calls_steps_in_order.run_caseasync_defagentpython_astasync def agent(_env):
occ-001613tests/test_agent/test_harness.py:218 · 快照test_base_harness_run_calls_steps_in_order.run_caseawaitawaitpython_astrc = await ClaudeCodeHarness().run(
occ-001617tests/test_agent/test_sandbox_exec_and_wait.py:59 · 快照ShellFakeSandboxasync_defaenterpython_astasync def aenter(self):
occ-001618tests/test_agent/test_sandbox_exec_and_wait.py:62 · 快照ShellFakeSandboxasync_defaexitpython_astasync def aexit(self, *exc):
occ-001619tests/test_agent/test_sandbox_exec_and_wait.py:65 · 快照ShellFakeSandboxasync_defwrite_filepython_astasync def write_file(self, path, content, *, user=“root”):
occ-001620tests/test_agent/test_sandbox_exec_and_wait.py:68 · 快照ShellFakeSandboxasync_defread_filepython_astasync def read_file(self, path, *, user=“root”):
occ-001622tests/test_agent/test_sandbox_exec_and_wait.py:71 · 快照ShellFakeSandboxasync_defexecpython_astasync def exec(self, cmd, *, user=“root”, env=None, timeout=120, check=False, idempotent=True):
occ-001624tests/test_agent/test_sandbox_exec_and_wait.py:121 · 快照fast_marker_pollsasync_def_instantpython_astasync def _instant(_seconds):
occ-001625tests/test_agent/test_sandbox_exec_and_wait.py:134 · 快照test_same_tag_reinvocation_actually_rerunsasync_def_two_attemptspython_astasync def _two_attempts():
occ-001626tests/test_agent/test_sandbox_exec_and_wait.py:135 · 快照test_same_tag_reinvocation_actually_reruns._two_attemptsawaitawaitpython_astfirst = await exec_and_wait(sb, cmd=“npm install”, time_budget_sec=60, tag=“npm”, want_output=True)
occ-001627tests/test_agent/test_sandbox_exec_and_wait.py:136 · 快照test_same_tag_reinvocation_actually_reruns._two_attemptsawaitawaitpython_astsecond = await exec_and_wait(sb, cmd=“npm install”, time_budget_sec=60, tag=“npm”, want_output=True)
occ-001660tests/test_distributed_rollout.py:612 · 快照test_slow_task_acquire_does_not_block_async_generationasync_defexercisepython_astasync def exercise():
occ-001663tests/test_distributed_rollout.py:618 · 快照test_slow_task_acquire_does_not_block_async_generation.exerciseawaitawaitpython_astawait asyncio.sleep(0.01)
occ-001668tests/test_distributed_rollout.py:623 · 快照test_slow_task_acquire_does_not_block_async_generation.exerciseawaitawaitpython_astassert len(await task) == 1
occ-001677tests/test_distributed_rollout.py:683 · 快照scheduler_factory.create.make_generatorasync_defexecutepython_astasync def execute(rollout_id, group=None):
occ-001679tests/test_distributed_rollout.py:688 · 快照scheduler_factory.create.make_generator.executeawaitawaitpython_astawait asyncio.sleep(0.01)
occ-001681tests/test_distributed_rollout.py:702 · 快照scheduler_factory.createasync_definitial_groupspython_astasync def initial_groups(count):
occ-001684tests/test_distributed_rollout.py:731 · 快照scheduler_factoryasync_defcleanuppython_astasync def cleanup():
occ-001686tests/test_distributed_rollout.py:735 · 快照scheduler_factory.cleanupawaitawaitpython_astawait asyncio.gather(*producers, return_exceptions=True)
occ-001716tests/test_distributed_rollout.py:940 · 快照test_distributed_completed_groups_keep_rewards_and_masksasync_defget_samplespython_astasync def get_samples(count):
occ-001717tests/test_distributed_rollout.py:944 · 快照test_distributed_completed_groups_keep_rewards_and_masksasync_defunexpected_generationpython_astasync def unexpected_generation(*args):
occ-001718tests/test_distributed_rollout.py:947 · 快照test_distributed_completed_groups_keep_rewards_and_masksasync_defrepublish_bufferedpython_astasync def republish_buffered(*args, **kwargs):
occ-001721tests/test_distributed_rollout.py:982 · 快照test_worker_refills_locally_and_slow_group_does_not_block_resultsasync_defgenerate_grouppython_astasync def generate_group(rollout_id, group=None):
occ-001722tests/test_distributed_rollout.py:990 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.generate_groupawaitawaitpython_astawait release.wait()
occ-001724tests/test_distributed_rollout.py:992 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.generate_groupawaitawaitpython_astawait asyncio.sleep(0)
occ-001726tests/test_distributed_rollout.py:1000 · 快照test_worker_refills_locally_and_slow_group_does_not_block_resultsasync_definitial_groupspython_astasync def initial_groups(count):
occ-001727tests/test_distributed_rollout.py:1006 · 快照test_worker_refills_locally_and_slow_group_does_not_block_resultsasync_defexercisepython_astasync def exercise():
occ-001728tests/test_distributed_rollout.py:1007 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astawait worker._start(0)
occ-001729tests/test_distributed_rollout.py:1009 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astfirst = await asyncio.wait_for(worker._next(), timeout=5)
occ-001731tests/test_distributed_rollout.py:1010 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astsecond = await asyncio.wait_for(worker._next(), timeout=5)
occ-001734tests/test_distributed_rollout.py:1017 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astoutput = await asyncio.wait_for(worker._next(), timeout=5)
occ-001736tests/test_distributed_rollout.py:1020 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astawait asyncio.sleep(0.02)
occ-001738tests/test_distributed_rollout.py:1022 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astawait asyncio.sleep(0.02)
occ-001740tests/test_distributed_rollout.py:1026 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astawait worker._pause()
occ-001742tests/test_distributed_rollout.py:1029 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astwhile (output := await asyncio.wait_for(worker._next(), timeout=5)) is not None:
occ-001746tests/test_distributed_rollout.py:1037 · 快照test_worker_refills_locally_and_slow_group_does_not_block_results.exerciseawaitawaitpython_astawait asyncio.gather(worker.producer, return_exceptions=True)
occ-001749tests/test_distributed_rollout.py:1052 · 快照<module>async_def_generate_locallypython_astasync def _generate_locally(args, sample, sampling_params):
occ-001750tests/test_distributed_rollout.py:1054 · 快照_generate_locallyawaitawaitpython_astawait asyncio.sleep(0.01)
occ-001752tests/test_distributed_rollout.py:1055 · 快照_generate_locallyawaitawaitpython_astawait asyncio.sleep(0.01 * (sample.group_index % 3))
occ-001754tests/test_distributed_rollout.py:1087 · 快照<module>async_def_score_fanoutpython_astasync def _score_fanout(args, samples):
occ-001755tests/test_distributed_rollout.py:1094 · 快照<module>async_def_score_grouppython_astasync def _score_group(args, samples):
occ-001773tests/test_distributed_rollout.py:1830 · 快照test_cancelled_rebuffer_waiter_does_not_drop_its_continuationasync_defexercisepython_astasync def exercise():
occ-001775tests/test_distributed_rollout.py:1832 · 快照test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exerciseawaitawaitpython_astawait asyncio.sleep(0.001)
occ-001778tests/test_distributed_rollout.py:1834 · 快照test_cancelled_rebuffer_waiter_does_not_drop_its_continuation.exerciseawaitawaitpython_astawait asyncio.gather(*waiters, return_exceptions=True)
occ-001799tests/test_distributed_rollout.py:2071 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generationasync_defrunpython_astasync def run():
occ-001802tests/test_distributed_rollout.py:2078 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.runasync_deffetchpython_astasync def fetch(count):
occ-001804tests/test_distributed_rollout.py:2080 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.run.fetchawaitawaitpython_astawait release.wait()
occ-001806tests/test_distributed_rollout.py:2083 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.runasync_defrebufferpython_astasync def rebuffer(value):
occ-001807tests/test_distributed_rollout.py:2086 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.runasync_defunexpectedpython_astasync def unexpected(*args):
occ-001809tests/test_distributed_rollout.py:2095 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.runawaitawaitpython_astawait entered.wait()
occ-001811tests/test_distributed_rollout.py:2096 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.runawaitawaitpython_astawait worker._pause()
occ-001813tests/test_distributed_rollout.py:2098 · 快照test_queue_fetch_finishing_after_pause_preserves_group_without_new_generation.runawaitawaitpython_astassert await task is None
occ-001826tests/test_fully_async_rollout.py:63 · 快照test_custom_data_source_keeps_original_entrypointasync_defgeneratepython_astasync def generate(received_args, rollout_id, received_source):
occ-001837tests/test_fully_async_rollout.py:234 · 快照test_loop_backpressure_stops_topping_up_when_queue_is_fullasync_def_instant_generatepython_astasync def _instant_generate(args, group, sampling_params, evaluation):
occ-001841tests/test_fully_async_rollout.py:266 · 快照test_local_worker_lifecycle_is_scoped_to_sourceasync_defgeneratepython_astasync def generate(args, group, sampling_params, evaluation):
occ-001842tests/test_fully_async_rollout.py:267 · 快照test_local_worker_lifecycle_is_scoped_to_source.generateawaitawaitpython_astawait asyncio.sleep(0.01)
occ-001860tests/test_optional_straw.py:85 · 快照_run_default_without_strawasync_defgeneratepython_astasync def generate(*values):
occ-001936tests/test_rollout_sample_hooks.py:16 · 快照<module>async_defasync_hookpython_astasync def async_hook(args, sample, *, evaluation=False):
occ-001940tests/test_rollout_sample_hooks.py:61 · 快照test_concurrent_groups_keep_their_own_rollout_hook_contextasync_defgeneratepython_astasync def generate(rollout_id):
occ-001941tests/test_rollout_sample_hooks.py:63 · 快照test_concurrent_groups_keep_their_own_rollout_hook_context.generateawaitawaitpython_astawait asyncio.sleep(0)
occ-001943tests/test_rollout_sample_hooks.py:64 · 快照test_concurrent_groups_keep_their_own_rollout_hook_context.generateawaitawaitpython_astsample = await apply_rollout_sample_hooks(args, Sample(index=rollout_id))
occ-001944tests/test_rollout_sample_hooks.py:67 · 快照test_concurrent_groups_keep_their_own_rollout_hook_contextasync_defexercisepython_astasync def exercise():
occ-001945tests/test_rollout_sample_hooks.py:68 · 快照test_concurrent_groups_keep_their_own_rollout_hook_context.exerciseawaitawaitpython_astassert await asyncio.gather(generate(10), generate(11)) == [(“seen”, 10), (“seen”, 11)]
occ-001954tests/test_rollout_straw_transport.py:375 · 快照test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hookasync_defexercisepython_astasync def exercise():
occ-001957tests/test_rollout_straw_transport.py:379 · 快照test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exerciseasync_defgeneratepython_astasync def generate(index):
occ-001958tests/test_rollout_straw_transport.py:381 · 快照test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exercise.generateawaitawaitpython_astawait second.wait()
occ-001962tests/test_rollout_straw_transport.py:395 · 快照test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exerciseasync_defabortpython_astasync def abort(*a):
occ-001963tests/test_rollout_straw_transport.py:409 · 快照test_synchronous_rollout_stores_during_generation_and_preserves_legacy_hook.exerciseawaitawaitpython_astreturn await asyncio.wait_for(sr.generate_rollout_async(args, 0, lambda count: [None] * count), timeout=20)
occ-001987tests/test_score_centering_binary.py:111 · 快照test_http_worker_decodes_off_event_loop.Responseasync_defareadpython_astasync def aread(self):
occ-001988tests/test_score_centering_binary.py:114 · 快照test_http_worker_decodes_off_event_loop.Responseasync_defaclosepython_astasync def aclose(self):
occ-001989tests/test_score_centering_binary.py:118 · 快照test_http_worker_decodes_off_event_loop.Clientasync_defpostpython_astasync def post(self, *args, **kwargs):
occ-001992tests/test_score_centering_transport.py:85 · 快照test_generate_requests_sampler_topkasync_defpostpython_astasync def post(url, payload, **kwargs):
occ-001994tests/test_score_centering_transport.py:127 · 快照test_r3_resume_appends_routes_without_replacing_the_persisted_prefixasync_defpostpython_astasync def post(url, payload, **kwargs):
occ-001999tests/test_score_centering_transport.py:204 · 快照test_evaluation_preserves_training_score_centeringasync_defgeneratepython_astasync def generate(received, sample, params):
occ-002000tests/test_score_centering_transport.py:208 · 快照test_evaluation_preserves_training_score_centeringasync_defhookspython_astasync def hooks(received, sample, **kwargs):
occ-002001tests/test_score_centering_transport.py:215 · 快照test_evaluation_preserves_training_score_centeringasync_defrunpython_astasync def run():
occ-002002tests/test_score_centering_transport.py:216 · 快照test_evaluation_preserves_training_score_centering.runawaitawaitpython_astawait rollout.generate_and_rm(a, Sample(), {“temperature”: 0}, evaluation=True)
occ-002003tests/test_score_centering_transport.py:217 · 快照test_evaluation_preserves_training_score_centering.runawaitawaitpython_astawait rollout.generate_and_rm(a, Sample(), {“temperature”: 0.8})
occ-002005tests/test_score_centering_transport.py:552 · 快照test_generate_requests_complete_top_p_probabilitiesasync_defpostpython_astasync def post(url, payload, **kwargs):
occ-002008tests/test_server_control.py:19 · 快照test_rollout_boundary_prunes_failed_router_workersasync_defrespondpython_astasync def respond(request):
occ-002012tests/test_server_control.py:108 · 快照test_abort_uses_supported_load_sections_and_waits_for_pd_transfersasync_defpostpython_astasync def post(url, payload, **kwargs):
occ-002013tests/test_server_control.py:114 · 快照test_abort_uses_supported_load_sections_and_waits_for_pd_transfersasync_defgetpython_astasync def get(url, **kwargs):
occ-002015tests/test_server_control.py:168 · 快照test_abort_retries_load_failure_until_idleasync_defabort_oncepython_astasync def abort_once(url, request_timeout):
occ-002016tests/test_server_control.py:171 · 快照test_abort_retries_load_failure_until_idleasync_defget_loadpython_astasync def get_load(url, request_timeout):
occ-002018tests/test_server_control.py:187 · 快照test_abort_servers_surfaces_partial_failureasync_defabortpython_astasync def abort(url, **kwargs):
occ-002020tests/test_server_control.py:205 · 快照test_http_post_forwards_timeout_and_closes_response.Responseasync_defareadpython_astasync def aread(self):
occ-002021tests/test_server_control.py:208 · 快照test_http_post_forwards_timeout_and_closes_response.Responseasync_defaclosepython_astasync def aclose(self):
occ-002022tests/test_server_control.py:214 · 快照test_http_post_forwards_timeout_and_closes_response.Clientasync_defpostpython_astasync def post(self, url, **kwargs):
occ-002024tests/test_server_control.py:226 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budgetasync_defcheckpython_astasync def check():
occ-002025tests/test_server_control.py:230 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkasync_defservepython_astasync def serve(reader, writer):
occ-002027tests/test_server_control.py:239 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serveawaitawaitpython_astheaders = await reader.readuntil(b"\r\n\r\n")
occ-002029tests/test_server_control.py:248 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serveawaitawaitpython_astbody = await reader.readexactly(length)
occ-002031tests/test_server_control.py:250 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serveawaitawaitpython_astawait asyncio.sleep(0.1)
occ-002034tests/test_server_control.py:252 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serveawaitawaitpython_astawait writer.drain()
occ-002038tests/test_server_control.py:258 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.serveawaitawaitpython_astawait writer.wait_closed()
occ-002040tests/test_server_control.py:261 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkawaitawaitpython_astserver = await asyncio.start_server(serve, “127.0.0.1”, 0, backlog=2 * concurrency)
occ-002042tests/test_server_control.py:264 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkasync_withasync withpython_astasync with httpx.AsyncClient(transport=http_utils._ShardedHTTPTransport(concurrency)) as client:
occ-002043tests/test_server_control.py:266 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkasync_defrequestpython_astasync def request(i):
occ-002044tests/test_server_control.py:268 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.requestasync_withasync withpython_astasync with client.stream(“POST”, url, content=body) as response:
occ-002045tests/test_server_control.py:269 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.check.requestawaitawaitpython_astassert await response.aread() == body
occ-002046tests/test_server_control.py:272 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkawaitawaitpython_astawait asyncio.gather(*(request(i) for i in range(concurrency + 3)))
occ-002048tests/test_server_control.py:276 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkawaitawaitpython_astawait client.post(url + “/slow”, content=b"x", timeout=0.01)
occ-002049tests/test_server_control.py:277 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkawaitawaitpython_astassert (await client.post(url, content=b"after-timeout")).content == b"after-timeout"
occ-002051tests/test_server_control.py:280 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkawaitawaitpython_astawait server.wait_closed()
occ-002053tests/test_server_control.py:281 · 快照test_http_transport_preserves_streams_timeouts_and_connection_budget.checkawaitawaitpython_astawait asyncio.gather(*tasks, return_exceptions=True)
occ-002062tests/test_straw_fully_async_recovery.py:45 · 快照<module>async_def_generate_with_interruptpython_astasync def _generate_with_interrupt(args, sample, sampling_params):
occ-002063tests/test_straw_fully_async_recovery.py:49 · 快照_generate_with_interruptawaitawaitpython_astawait asyncio.Event().wait()
occ-002066tests/test_straw_fully_async_recovery.py:52 · 快照_generate_with_interruptawaitawaitpython_astawait asyncio.Event().wait()
occ-002069tests/test_straw_fully_async_recovery.py:53 · 快照_generate_with_interruptawaitawaitpython_astsample = await _generate_locally(args, sample, sampling_params)
occ-002071tests/test_straw_fully_async_recovery.py:86 · 快照<module>async_def_reward_oncepython_astasync def _reward_once(args, sample):
occ-002099tests/test_straw_r3.py:159 · 快照test_cancelled_straw_publication_drains_before_releasing_capacityasync_defrunpython_astasync def run():
occ-002101tests/test_straw_r3.py:163 · 快照test_cancelled_straw_publication_drains_before_releasing_capacity.runawaitawaitpython_astassert await asyncio.to_thread(entered.wait, 5)
occ-002105tests/test_straw_r3.py:167 · 快照test_cancelled_straw_publication_drains_before_releasing_capacity.runawaitawaitpython_astawait asyncio.sleep(0.05)
occ-002108tests/test_straw_r3.py:169 · 快照test_cancelled_straw_publication_drains_before_releasing_capacity.runawaitawaitpython_astawait asyncio.sleep(0.05)
occ-002112tests/test_straw_r3.py:174 · 快照test_cancelled_straw_publication_drains_before_releasing_capacity.runawaitawaitpython_astresults = await asyncio.gather(*tasks, return_exceptions=True)
occ-002122tests/test_streaming_rollout.py:170 · 快照_http_streamasync_generator_defchunk_linespython_astasync def chunk_lines():
occ-002123tests/test_streaming_rollout.py:172 · 快照_http_stream.chunk_linesasync_yieldyield in async generatorpython_astyield “data: " + json.dumps(chunk)
occ-002125tests/test_streaming_rollout.py:177 · 快照_http_streamasync_generator_defstreampython_astasync def stream(method, url, json, headers):
occ-002126tests/test_streaming_rollout.py:182 · 快照_http_stream.streamasync_yieldyield in async generatorpython_astyield response
occ-002131tests/test_streaming_rollout.py:332 · 快照test_server_abort_keeps_last_observed_prefixasync_generator_deflinespython_astasync def lines():
occ-002132tests/test_streaming_rollout.py:334 · 快照test_server_abort_keeps_last_observed_prefix.linesasync_yieldyield in async generatorpython_astyield “data: " + json.dumps(_chunk(“a”, [[-0.1, 11, None]], 1))
occ-002138tests/test_streaming_rollout.py:358 · 快照test_stream_cancellation_closes_request_and_keeps_prefixasync_generator_deflinespython_astasync def lines():
occ-002139tests/test_streaming_rollout.py:359 · 快照test_stream_cancellation_closes_request_and_keeps_prefix.linesasync_yieldyield in async generatorpython_astyield “data: " + json.dumps(
occ-002141tests/test_streaming_rollout.py:369 · 快照test_stream_cancellation_closes_request_and_keeps_prefix.linesawaitawaitpython_astawait asyncio.Event().wait()
occ-002144tests/test_streaming_rollout.py:375 · 快照test_stream_cancellation_closes_request_and_keeps_prefixasync_defserver_generatepython_astasync def server_generate(args, sample, sampling_params):
occ-002146tests/test_streaming_rollout.py:377 · 快照test_stream_cancellation_closes_request_and_keeps_prefix.server_generateawaitawaitpython_astawait server_released.wait()
occ-002148tests/test_streaming_rollout.py:381 · 快照test_stream_cancellation_closes_request_and_keeps_prefixasync_defget_workerspython_astasync def get_workers(_url, *, timeout):
occ-002149tests/test_streaming_rollout.py:384 · 快照test_stream_cancellation_closes_request_and_keeps_prefixasync_defabort_serverspython_astasync def abort_servers(urls):
occ-002151tests/test_streaming_rollout.py:392 · 快照test_stream_cancellation_closes_request_and_keeps_prefixasync_defexercisepython_astasync def exercise():
occ-002154tests/test_streaming_rollout.py:401 · 快照test_stream_cancellation_closes_request_and_keeps_prefix.exerciseawaitawaitpython_astawait asyncio.gather(first_chunk_seen.wait(), server_started.wait())
occ-002158tests/test_streaming_rollout.py:402 · 快照test_stream_cancellation_closes_request_and_keeps_prefix.exerciseawaitawaitpython_astawait sglang_rollout.abort(args, rollout_id=0)
occ-002159tests/test_streaming_rollout.py:403 · 快照test_stream_cancellation_closes_request_and_keeps_prefix.exerciseawaitawaitpython_astreturn await asyncio.gather(request_task, server_task)
occ-002164tests/test_streaming_rollout.py:419 · 快照test_unrelated_stream_cancellation_propagatesasync_generator_deflinespython_astasync def lines():
occ-002166tests/test_streaming_rollout.py:421 · 快照test_unrelated_stream_cancellation_propagates.linesawaitawaitpython_astawait asyncio.Event().wait()
occ-002169tests/test_streaming_rollout.py:422 · 快照test_unrelated_stream_cancellation_propagates.linesasync_yieldyield in async generatorpython_astyield “unreachable”
occ-002170tests/test_streaming_rollout.py:427 · 快照test_unrelated_stream_cancellation_propagatesasync_defexercisepython_astasync def exercise():
occ-002172tests/test_streaming_rollout.py:435 · 快照test_unrelated_stream_cancellation_propagates.exerciseawaitawaitpython_astawait request_started.wait()
occ-002176tests/test_streaming_rollout.py:439 · 快照test_unrelated_stream_cancellation_propagates.exerciseawaitawaitpython_astawait task
occ-002178tests/test_streaming_rollout.py:466 · 快照test_partial_abort_buffers_and_resumes_only_aborted_siblingsasync_defexercisepython_astasync def exercise():
occ-002181tests/test_streaming_rollout.py:486 · 快照test_partial_abort_buffers_and_resumes_only_aborted_siblings.exerciseawaitawaitpython_astbuffered_groups = await sglang_rollout.abort(args, rollout_id=7)
occ-002182tests/test_streaming_rollout.py:489 · 快照test_partial_abort_buffers_and_resumes_only_aborted_siblings.exerciseasync_defresume_generatepython_astasync def resume_generate(args, sample, sampling_params):
occ-002183tests/test_streaming_rollout.py:500 · 快照test_partial_abort_buffers_and_resumes_only_aborted_siblings.exerciseasync_defrewardpython_astasync def reward(_args, sample):
occ-002185tests/test_streaming_rollout.py:511 · 快照test_partial_abort_buffers_and_resumes_only_aborted_siblings.exerciseawaitawaitpython_astresumed_group = await sglang_rollout.generate_and_rm_group(args, mixed_group, {“max_new_tokens”: 1})
occ-002187tests/test_streaming_rollout.py:533 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuseasync_defexercisepython_astasync def exercise():
occ-002193tests/test_streaming_rollout.py:550 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exerciseasync_defgeneratepython_astasync def generate(_args, sample, params, evaluation=False):
occ-002196tests/test_streaming_rollout.py:558 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exercise.generateawaitawaitpython_astawait finish.wait()
occ-002199tests/test_streaming_rollout.py:573 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exerciseawaitawaitpython_astawait asyncio.wait_for(first_batch.wait(), 1)
occ-002205tests/test_streaming_rollout.py:579 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exerciseawaitawaitpython_astawait tasks[70]
occ-002206tests/test_streaming_rollout.py:581 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exerciseawaitawaitpython_astawait asyncio.wait_for(all_started.wait(), 1)
occ-002210tests/test_streaming_rollout.py:585 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exerciseawaitawaitpython_astawait asyncio.gather(*(task for i, task in enumerate(tasks) if i != 70))
occ-002212tests/test_streaming_rollout.py:586 · 快照test_generation_pacing_preserves_concurrency_cancellation_and_reuse.exerciseawaitawaitpython_astassert (await start(128)).status == Sample.Status.COMPLETED
occ-002214tests/test_streaming_rollout.py:593 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_requestasync_defexercisepython_astasync def exercise():
occ-002217tests/test_streaming_rollout.py:600 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_request.exerciseasync_defwait_for_releasepython_astasync def wait_for_release():
occ-002219tests/test_streaming_rollout.py:602 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise.wait_for_releaseawaitawaitpython_astawait release.wait()
occ-002221tests/test_streaming_rollout.py:603 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_request.exercise.wait_for_releaseawaitawaitpython_astawait wait()
occ-002222tests/test_streaming_rollout.py:605 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_request.exerciseasync_defunexpected_generatepython_astasync def unexpected_generate(*args, **kwargs):
occ-002224tests/test_streaming_rollout.py:612 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_request.exerciseawaitawaitpython_astawait queued.wait()
occ-002227tests/test_streaming_rollout.py:615 · 快照test_abort_while_waiting_for_generation_pacer_does_not_start_request.exerciseawaitawaitpython_astassert (await task).status == Sample.Status.ABORTED
occ-002243tests/training_recovery_test_helpers.py:15 · 快照<module>async_defrewardpython_astasync def reward(args, sample, **kwargs):

返回分类索引 · 返回学习首页