Source symbols: scripts/infer_bench.py
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: master@92d63d4e8bb4df75c3b71618f31ddde2378b2bcd · 2026-07-04T18:18:25Z
- Declarations: 4
- Referenced calls: 48
Declared symbols
weight_bytes— def at line 51; referencessum,numel,element_size,parameters,get_device,reset_peak_memory_stats,synchronize,generate,perf_counter,next,append,max_memory_allocated,dict,encode,len,ArgumentParser,add_argument,parse_args,autodetect_device_type,compute_initbench_generate— def at line 55; referencesget_device,reset_peak_memory_stats,synchronize,generate,perf_counter,next,append,max_memory_allocated,dict,encode,len,ArgumentParser,add_argument,parse_args,autodetect_device_type,compute_init,load_model,Engine,min,printbuild_prompt— def at line 84; referencesencode,len,ArgumentParser,add_argument,parse_args,autodetect_device_type,compute_init,load_model,Engine,min,print,get_device_name,get_peak_bandwidth,get_peak_flops,get_device_properties,weight_bytes,sum,numel,parameters,kv_bytes_per_tokenmain— def at line 97; referencesArgumentParser,add_argument,parse_args,autodetect_device_type,compute_init,load_model,Engine,min,print,build_prompt,get_device_name,get_peak_bandwidth,get_peak_flops,get_device_properties,weight_bytes,sum,numel,parameters,kv_bytes_per_token,kv_read_bytes
File-level call references
sum— line 53numel— line 53element_size— line 53parameters— line 53get_device— line 57reset_peak_memory_stats— line 58synchronize— line 59generate— line 61perf_counter— line 65next— line 66append— line 79max_memory_allocated— line 81dict— line 82encode— line 91len— line 92ArgumentParser— line 98add_argument— line 99parse_args— line 106autodetect_device_type— line 108compute_init— line 110load_model— line 113Engine— line 115min— line 119print— line 121build_prompt— line 122get_device_name— line 126get_peak_bandwidth— line 127get_peak_flops— line 128get_device_properties— line 129weight_bytes— line 130kv_bytes_per_token— line 132kv_read_bytes— line 134int— line 138str— line 147replace— line 147get— line 148join— line 149sorted— line 149items— line 149float— line 164estimate_decode_flops— line 173round— line 174bench_generate— line 185estimate_prefill_flops— line 188split— line 201dumps— line 241compute_cleanup— line 243main— line 246
Source: scripts/infer_bench.py