concurrent.futures 执行器与 Future。

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

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

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

ID位置 / 快照所属符号种类API / 语法来源判定源码行
occ-000643slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py:10 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import ThreadPoolExecutor
occ-000651slime/backends/megatron_utils/update_weight/update_weight_from_disk_delta.py:273 · 快照UpdateWeightFromDiskDelta._encode_deltaapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionpool = ThreadPoolExecutor(max_workers=NUM_WORKERS)
occ-000749slime/data/queue_data_source.py:19 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import ThreadPoolExecutor
occ-000800slime/data/queue_data_source.py:1035 · 快照QueueReader.initapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionself._reader = ThreadPoolExecutor(max_workers=1, thread_name_prefix=“queue-input”)
occ-001297slime/utils/routed_experts.py:5 · 快照<module>importconcurrent.futures.Futureexplicit_importfrom concurrent.futures import Future, ThreadPoolExecutor
occ-001298slime/utils/routed_experts.py:5 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import Future, ThreadPoolExecutor
occ-001299slime/utils/routed_experts.py:149 · 快照RoutedExpertsMicrobatchPrefetcher.initapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionThreadPoolExecutor(
occ-001301slime/utils/routed_experts.py:181 · 快照RoutedExpertsMicrobatchPrefetcherapi_referenceconcurrent.futures.ThreadPoolExecutorlexical_import_resolutiondef executor(self) -> ThreadPoolExecutor | None:
occ-001304slime/utils/routed_experts.py:211 · 快照RoutedExpertsMicrobatch.initapi_referenceconcurrent.futures.Futurelexical_import_resolutionself._future: Future | None = None
occ-001405tests/pipeline_rl_test_helpers.py:8 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import ThreadPoolExecutor
occ-001422tests/pipeline_rl_test_helpers.py:159 · 快照before_train_stepapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=len(_probes)) as pool:
occ-001424tests/pipeline_rl_test_helpers.py:164 · 快照before_train_stepapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=len(_probes)) as pool:
occ-001634tests/test_distributed_rollout.py:12 · 快照<module>importconcurrent.futures.FIRST_COMPLETEDexplicit_importfrom concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait
occ-001635tests/test_distributed_rollout.py:12 · 快照<module>importconcurrent.futures.Futureexplicit_importfrom concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait
occ-001636tests/test_distributed_rollout.py:12 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait
occ-001637tests/test_distributed_rollout.py:12 · 快照<module>importconcurrent.futures.waitexplicit_importfrom concurrent.futures import FIRST_COMPLETED, Future, ThreadPoolExecutor, wait
occ-001671tests/test_distributed_rollout.py:650 · 快照scheduler_factory.ray_waitapi_callconcurrent.futures.waitlexical_import_resolutiondone, pending = wait(refs, timeout=timeout, return_when=FIRST_COMPLETED)
occ-001672tests/test_distributed_rollout.py:650 · 快照scheduler_factory.ray_waitapi_referenceconcurrent.futures.FIRST_COMPLETEDlexical_import_resolutiondone, pending = wait(refs, timeout=timeout, return_when=FIRST_COMPLETED)
occ-001691tests/test_distributed_rollout.py:793 · 快照test_async_scheduler_fast_worker_fills_batch_without_waiting_for_slow_workerapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(1) as consumer:
occ-001696tests/test_distributed_rollout.py:810 · 快照test_slow_worker_control_does_not_block_collection_or_closeapi_callconcurrent.futures.Futurelexical_import_resolutionstalled = Future()
occ-001699tests/test_distributed_rollout.py:821 · 快照test_slow_worker_control_does_not_block_collection_or_closeapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(2) as callers:
occ-001710tests/test_distributed_rollout.py:884 · 快照test_scheduler_close_unblocks_waiting_consumerapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(1) as consumer:
occ-001759tests/test_distributed_rollout.py:1471 · 快照test_two_ray_nodes_generate_transfer_and_restoreapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(1) as consumer:
occ-001794tests/test_distributed_rollout.py:2049 · 快照test_admission_pause_acknowledges_workers_without_waiting_for_responsesapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(1) as pool:
occ-002250tools/convert_hf_to_fp8.py:23 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import ThreadPoolExecutor
occ-002252tools/convert_hf_to_fp8.py:178 · 快照convert_fp8api_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=max_workers) as executor:
occ-002256tools/convert_hf_to_int4_direct.py:17 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import ThreadPoolExecutor
occ-002258tools/convert_hf_to_int4_direct.py:224 · 快照convert_int4api_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=max_workers) as executor:
occ-002263tools/convert_torch_dist_to_hf_parallel.py:10 · 快照<module>importconcurrent.futures.ThreadPoolExecutorexplicit_importfrom concurrent.futures import ThreadPoolExecutor, as_completed
occ-002264tools/convert_torch_dist_to_hf_parallel.py:10 · 快照<module>importconcurrent.futures.as_completedexplicit_importfrom concurrent.futures import ThreadPoolExecutor, as_completed
occ-002268tools/convert_torch_dist_to_hf_parallel.py:147 · 快照WrappedStorageReader._parallel_preload_filesapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=self.max_workers) as executor:
occ-002270tools/convert_torch_dist_to_hf_parallel.py:154 · 快照WrappedStorageReader._parallel_preload_filesapi_callconcurrent.futures.as_completedlexical_import_resolutionfor future in tqdm(as_completed(futures), total=len(futures), desc=“Pre-loading files”):
occ-002273tools/convert_torch_dist_to_hf_parallel.py:296 · 快照save_tensorsapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=max_workers) as executor:
occ-002275tools/convert_torch_dist_to_hf_parallel.py:298 · 快照save_tensorsapi_callconcurrent.futures.as_completedlexical_import_resolutionfor future in tqdm(as_completed(futures), total=len(futures), desc=“Converting parameters”):
occ-002277tools/convert_torch_dist_to_hf_parallel.py:336 · 快照save_tensorsapi_callconcurrent.futures.ThreadPoolExecutorlexical_import_resolutionwith ThreadPoolExecutor(max_workers=min(max_workers, num_files)) as executor:
occ-002279tools/convert_torch_dist_to_hf_parallel.py:338 · 快照save_tensorsapi_callconcurrent.futures.as_completedlexical_import_resolutionfor future in tqdm(as_completed(futures), total=len(futures), desc=“Saving files”):

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