nnanochatSource ↗
4 declarations and 48 call references extracted from public source metadata.

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; references sum, 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_init
  • bench_generate — def at line 55; references 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_init, load_model, Engine, min, print
  • build_prompt — def at line 84; references encode, 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_token
  • main — def at line 97; references ArgumentParser, 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


Source: scripts/infer_bench.py

Generated by smolify with deterministic-repository-import-v2 · 1 source file