(self)
| 29 | |
| 30 | class ScriptConfig(pydra.Config): |
| 31 | def __init__(self): |
| 32 | self.server_config = ServerConfig() |
| 33 | self.sc = pydra.Alias("server_config") |
| 34 | self.server_config.kv_cache_num_tokens = 1024 * 512 |
| 35 | |
| 36 | self.num_dec = 1 |
| 37 | self.dec_len = 1024 |
| 38 | |
| 39 | self.num_pre = 0 |
| 40 | self.pre_len = 1024 |
| 41 | |
| 42 | self.num_hyd = 0 |
| 43 | self.hyd_shared_len = 1024 |
| 44 | self.hyd_unique_len = 32 |
| 45 | |
| 46 | self.dtype = "bfloat16" |
| 47 | self.pp_rank = 0 |
| 48 | self.num_iters = 10 |
| 49 | self.num_warmup = 5 |
| 50 | self.compile = False |
| 51 | self.dynamic = True |
| 52 | self.fullgraph = True |
| 53 | |
| 54 | self.profile = False |
| 55 | self.profile_name = "bench_model" |
| 56 | |
| 57 | self.non_blocking = True |
| 58 | self.plan_before = False |
| 59 | self.only_plan = False |
| 60 | |
| 61 | self.graph = False |
| 62 | |
| 63 | def prof(self): |
| 64 | self.profile = True |
nothing calls this directly
no test coverage detected