Source symbols: src/transformers/generation/continuous_batching/scheduler.py
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: main@9a0fe3f5dd36ffe1888133f09eb03f1eb14b8a6e · 2026-07-20T12:47:48Z
- Declarations: 23
- Referenced calls: 33
Declared symbols
Scheduler— class at line 22; referencesLock,ValueError,reset__init__— def at line 29; referencesLock,ValueError,resetreset— def at line 49add_waiting_request— def at line 61; referencesappendschedule_batch— def at line 67has_pending_requests— def at line 77; referencesbool,lenfinish_request— def at line 81; referencesfree_blocks,popget_active_request_static_outputs— def at line 88set_request_cancellation— def at line 94; referencesaddclear_cancelled_requests— def at line 99; referencespop,append,remove,free_blocks,setrequest_is_cancelled— def at line 116_allocate_blocks_if_needed— def at line 122; referencescurrent_len,allocate_blocks,blocks_needed,append_infer_request_tokens— def at line 145; referencessearch_prefix_match,add,min,len_schedule_request— def at line 170; referenceslen,append,add_process_candidates— def at line 208; referencesget_num_free_blocks,debug,_infer_request_tokens,min,len,current_len,not,_allocate_blocks_if_needed,info,_schedule_request,append,FutureRequestState,pop,add,deque,popleft,super,__init__,values,extend_get_waiting_candidates— def at line 306; referencesdeque,append,popleft,super,__init__,values,extend,set,_process_candidates,_cleanup_waiting_queue_cleanup_waiting_queue— def at line 323; referencesdeque,super,__init__,values,append,extend,_get_waiting_candidates,set,_process_candidatesFIFOScheduler— class at line 331; referencessuper,__init__,values,append,extend,_get_waiting_candidates,set,_process_candidates,_cleanup_waiting_queue__init__— def at line 335; referencessuper,values,append,extend,_get_waiting_candidates,set,_process_candidates,_cleanup_waiting_queueschedule_batch— def at line 341; referencesvalues,append,extend,_get_waiting_candidates,set,_process_candidates,_cleanup_waiting_queue,super,__init__PrefillFirstScheduler— class at line 380; referencessuper,__init__,values,append,extend,_get_waiting_candidates,set,_process_candidates,_cleanup_waiting_queue__init__— def at line 385; referencessuper,values,append,extend,_get_waiting_candidates,set,_process_candidates,_cleanup_waiting_queueschedule_batch— def at line 391; referencesvalues,append,extend,_get_waiting_candidates,set,_process_candidates,_cleanup_waiting_queue
File-level call references
Lock— line 37ValueError— line 40reset— line 47deque— line 53set— line 54append— line 64bool— line 79len— line 79free_blocks— line 85pop— line 86add— line 97remove— line 111current_len— line 130allocate_blocks— line 134blocks_needed— line 139search_prefix_match— line 150min— line 158get_num_free_blocks— line 230debug— line 234_infer_request_tokens— line 240not— line 252_allocate_blocks_if_needed— line 256info— line 264_schedule_request— line 269FutureRequestState— line 290popleft— line 318super— line 339__init__— line 339values— line 347extend— line 355_get_waiting_candidates— line 355_process_candidates— line 360_cleanup_waiting_queue— line 369
Source: src/transformers/generation/continuous_batching/scheduler.py