|
{ |
|
"config": { |
|
"name": "pytorch_generate", |
|
"backend": { |
|
"name": "pytorch", |
|
"version": "2.4.0+cu121", |
|
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", |
|
"task": "text-generation", |
|
"library": "transformers", |
|
"model_type": "gemma", |
|
"model": "google/gemma-2b", |
|
"processor": "google/gemma-2b", |
|
"device": "cuda", |
|
"device_ids": "0", |
|
"seed": 42, |
|
"inter_op_num_threads": null, |
|
"intra_op_num_threads": null, |
|
"model_kwargs": {}, |
|
"processor_kwargs": {}, |
|
"no_weights": true, |
|
"device_map": null, |
|
"torch_dtype": "float16", |
|
"eval_mode": true, |
|
"to_bettertransformer": false, |
|
"low_cpu_mem_usage": null, |
|
"attn_implementation": null, |
|
"cache_implementation": "static", |
|
"autocast_enabled": false, |
|
"autocast_dtype": null, |
|
"torch_compile": false, |
|
"torch_compile_target": "forward", |
|
"torch_compile_config": { |
|
"backend": "inductor", |
|
"mode": "reduce-overhead", |
|
"fullgraph": true |
|
}, |
|
"quantization_scheme": null, |
|
"quantization_config": {}, |
|
"deepspeed_inference": false, |
|
"deepspeed_inference_config": {}, |
|
"peft_type": null, |
|
"peft_config": {} |
|
}, |
|
"scenario": { |
|
"name": "inference", |
|
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", |
|
"iterations": 2, |
|
"duration": 0, |
|
"warmup_runs": 10, |
|
"input_shapes": { |
|
"batch_size": 1, |
|
"num_choices": 2, |
|
"sequence_length": 7 |
|
}, |
|
"new_tokens": null, |
|
"memory": true, |
|
"latency": true, |
|
"energy": false, |
|
"forward_kwargs": {}, |
|
"generate_kwargs": { |
|
"max_new_tokens": 128, |
|
"min_new_tokens": 128, |
|
"do_sample": false |
|
}, |
|
"call_kwargs": {} |
|
}, |
|
"launcher": { |
|
"name": "process", |
|
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", |
|
"device_isolation": true, |
|
"device_isolation_action": "warn", |
|
"numactl": false, |
|
"numactl_kwargs": {}, |
|
"start_method": "spawn" |
|
}, |
|
"environment": { |
|
"cpu": " AMD EPYC 7R32", |
|
"cpu_count": 16, |
|
"cpu_ram_mb": 66697.261056, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.223-211.872.amzn2.x86_64-x86_64-with-glibc2.29", |
|
"processor": "x86_64", |
|
"python_version": "3.8.10", |
|
"gpu": [ |
|
"NVIDIA A10G" |
|
], |
|
"gpu_count": 1, |
|
"gpu_vram_mb": 24146608128, |
|
"optimum_benchmark_version": "0.4.0", |
|
"optimum_benchmark_commit": null, |
|
"transformers_version": "4.45.0.dev0", |
|
"transformers_commit": "c409cd81777fb27aadc043ed3d8339dbc020fb3b", |
|
"accelerate_version": "0.34.0.dev0", |
|
"accelerate_commit": null, |
|
"diffusers_version": null, |
|
"diffusers_commit": null, |
|
"optimum_version": "1.22.0.dev0", |
|
"optimum_commit": null, |
|
"timm_version": "0.9.16", |
|
"timm_commit": null, |
|
"peft_version": "0.12.1.dev0", |
|
"peft_commit": null |
|
} |
|
}, |
|
"report": { |
|
"load": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1320.075264, |
|
"max_global_vram": 6768.033792, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6138.363904, |
|
"max_allocated": 6060.931072 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 1, |
|
"total": 11.6039453125, |
|
"mean": 11.6039453125, |
|
"stdev": 0.0, |
|
"p50": 11.6039453125, |
|
"p90": 11.6039453125, |
|
"p95": 11.6039453125, |
|
"p99": 11.6039453125, |
|
"values": [ |
|
11.6039453125 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1754.8288, |
|
"max_global_vram": 6789.005312, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6142.558208, |
|
"max_allocated": 5028.450816 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.04368422317504883, |
|
"mean": 0.021842111587524415, |
|
"stdev": 1.6960144042968417e-05, |
|
"p50": 0.021842111587524415, |
|
"p90": 0.02185567970275879, |
|
"p95": 0.021857375717163088, |
|
"p99": 0.021858732528686524, |
|
"values": [ |
|
0.021859071731567384, |
|
0.021825151443481447 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 320.48183491554903 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1779.306496, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5031.820288 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.2227158203125, |
|
"mean": 2.61135791015625, |
|
"stdev": 0.028345703125000066, |
|
"p50": 2.61135791015625, |
|
"p90": 2.6340344726562503, |
|
"p95": 2.6368690429687502, |
|
"p99": 2.63913669921875, |
|
"values": [ |
|
2.63970361328125, |
|
2.58301220703125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.63370107409022 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 5.222449146270752, |
|
"mean": 0.020560823410514767, |
|
"stdev": 0.00045448871580510303, |
|
"p50": 0.020380160331726075, |
|
"p90": 0.021137305450439455, |
|
"p95": 0.021249740886688233, |
|
"p99": 0.021547631855010987, |
|
"values": [ |
|
0.02091929626464844, |
|
0.02091007995605469, |
|
0.020133888244628906, |
|
0.020110336303710938, |
|
0.02009600067138672, |
|
0.021141504287719725, |
|
0.021029888153076173, |
|
0.020971519470214844, |
|
0.02105241584777832, |
|
0.020923391342163086, |
|
0.020964351654052735, |
|
0.020938751220703124, |
|
0.020993024826049804, |
|
0.0208035831451416, |
|
0.020930559158325195, |
|
0.02087731170654297, |
|
0.02086911964416504, |
|
0.020142080307006836, |
|
0.020220991134643554, |
|
0.020250560760498047, |
|
0.020695039749145508, |
|
0.020974592208862306, |
|
0.02089369583129883, |
|
0.02089574432373047, |
|
0.02049228858947754, |
|
0.02005606460571289, |
|
0.02064793586730957, |
|
0.020984832763671874, |
|
0.020896768569946288, |
|
0.021403648376464843, |
|
0.020824064254760744, |
|
0.02122137641906738, |
|
0.020937728881835937, |
|
0.021053440093994142, |
|
0.021181440353393553, |
|
0.020923391342163086, |
|
0.020940799713134766, |
|
0.02011136054992676, |
|
0.020152320861816408, |
|
0.020215808868408205, |
|
0.021393407821655275, |
|
0.021016576766967773, |
|
0.02092748832702637, |
|
0.0200898551940918, |
|
0.02039193534851074, |
|
0.021141504287719725, |
|
0.020923391342163086, |
|
0.020988927841186524, |
|
0.020146175384521483, |
|
0.020971519470214844, |
|
0.021159936904907226, |
|
0.021086208343505858, |
|
0.02099404716491699, |
|
0.02147225570678711, |
|
0.021029888153076173, |
|
0.020981760025024415, |
|
0.021292032241821288, |
|
0.020924415588378906, |
|
0.02105753517150879, |
|
0.02102272033691406, |
|
0.0210831356048584, |
|
0.021139455795288087, |
|
0.021001216888427734, |
|
0.021214208602905273, |
|
0.020162559509277343, |
|
0.020590591430664062, |
|
0.02008166313171387, |
|
0.020083711624145507, |
|
0.02028544044494629, |
|
0.021347328186035155, |
|
0.021180416107177736, |
|
0.021349376678466796, |
|
0.02127769660949707, |
|
0.02144358444213867, |
|
0.020988927841186524, |
|
0.020945920944213867, |
|
0.020960256576538085, |
|
0.020981760025024415, |
|
0.021053440093994142, |
|
0.020121599197387697, |
|
0.02028544044494629, |
|
0.020100095748901366, |
|
0.020115455627441405, |
|
0.020109312057495117, |
|
0.020105215072631837, |
|
0.02072166442871094, |
|
0.02122547149658203, |
|
0.020930559158325195, |
|
0.020956159591674805, |
|
0.020853759765625, |
|
0.02087321662902832, |
|
0.021011455535888672, |
|
0.02109337615966797, |
|
0.02092748832702637, |
|
0.020890623092651366, |
|
0.020892671585083008, |
|
0.020083711624145507, |
|
0.020099071502685546, |
|
0.021517311096191406, |
|
0.0208353271484375, |
|
0.02088960075378418, |
|
0.021390335083007812, |
|
0.021098495483398438, |
|
0.0210882568359375, |
|
0.020947967529296875, |
|
0.02092748832702637, |
|
0.020945920944213867, |
|
0.020907007217407226, |
|
0.021218303680419923, |
|
0.02086604881286621, |
|
0.02082099151611328, |
|
0.02087424087524414, |
|
0.021581823348999024, |
|
0.02168422317504883, |
|
0.02103603172302246, |
|
0.020946943283081054, |
|
0.020924415588378906, |
|
0.02024448013305664, |
|
0.02032537651062012, |
|
0.02006118392944336, |
|
0.020256767272949217, |
|
0.02010419273376465, |
|
0.020328447341918944, |
|
0.02007244873046875, |
|
0.020134912490844727, |
|
0.020109312057495117, |
|
0.02007859230041504, |
|
0.02012876892089844, |
|
0.020198400497436524, |
|
0.02021683120727539, |
|
0.020105215072631837, |
|
0.02008576011657715, |
|
0.020572160720825194, |
|
0.02024345588684082, |
|
0.020371456146240235, |
|
0.020153343200683595, |
|
0.02011136054992676, |
|
0.02007347106933594, |
|
0.02012057685852051, |
|
0.02050662422180176, |
|
0.020063232421875, |
|
0.02010419273376465, |
|
0.020162559509277343, |
|
0.020140031814575195, |
|
0.020242431640625, |
|
0.020176895141601564, |
|
0.020082687377929686, |
|
0.020115455627441405, |
|
0.020147199630737304, |
|
0.02084454345703125, |
|
0.021132287979125978, |
|
0.020722688674926756, |
|
0.0208721923828125, |
|
0.02085273551940918, |
|
0.020864000320434572, |
|
0.020880384445190428, |
|
0.021072895050048827, |
|
0.021149696350097655, |
|
0.020917247772216797, |
|
0.020892671585083008, |
|
0.020928512573242186, |
|
0.020923391342163086, |
|
0.02024550437927246, |
|
0.02025881576538086, |
|
0.020123647689819335, |
|
0.020140031814575195, |
|
0.020092927932739257, |
|
0.02007347106933594, |
|
0.020343807220458983, |
|
0.020198400497436524, |
|
0.019976192474365235, |
|
0.01987993621826172, |
|
0.019981311798095702, |
|
0.02022502326965332, |
|
0.02033459281921387, |
|
0.02012057685852051, |
|
0.02006630325317383, |
|
0.020063232421875, |
|
0.0200898551940918, |
|
0.02024038314819336, |
|
0.020199424743652345, |
|
0.020125696182250977, |
|
0.02112512016296387, |
|
0.020162559509277343, |
|
0.020153343200683595, |
|
0.020388864517211915, |
|
0.02023219108581543, |
|
0.020156415939331054, |
|
0.020161535263061522, |
|
0.020155391693115234, |
|
0.020404224395751954, |
|
0.020129791259765627, |
|
0.02008780860900879, |
|
0.020126720428466797, |
|
0.02020351982116699, |
|
0.02026188850402832, |
|
0.02008064079284668, |
|
0.020100095748901366, |
|
0.020299776077270508, |
|
0.021155839920043946, |
|
0.020113407135009767, |
|
0.02005606460571289, |
|
0.02004275131225586, |
|
0.02024038314819336, |
|
0.020040704727172853, |
|
0.020191232681274415, |
|
0.02006937599182129, |
|
0.02003046417236328, |
|
0.02004377555847168, |
|
0.020025344848632814, |
|
0.020213760375976563, |
|
0.020107263565063475, |
|
0.020057088851928712, |
|
0.02006937599182129, |
|
0.019989503860473632, |
|
0.020215808868408205, |
|
0.020314111709594726, |
|
0.020174848556518556, |
|
0.020247552871704103, |
|
0.020151296615600587, |
|
0.020327423095703127, |
|
0.020338687896728515, |
|
0.02012057685852051, |
|
0.020279296875, |
|
0.019854335784912108, |
|
0.019958784103393554, |
|
0.020107263565063475, |
|
0.02007859230041504, |
|
0.020189184188842774, |
|
0.02022809600830078, |
|
0.02011136054992676, |
|
0.020709375381469726, |
|
0.020955135345458984, |
|
0.021015552520751952, |
|
0.021234687805175782, |
|
0.02070528030395508, |
|
0.020619264602661135, |
|
0.020617216110229493, |
|
0.020744192123413087, |
|
0.02102681541442871, |
|
0.02031001663208008, |
|
0.020139007568359374, |
|
0.02007961654663086, |
|
0.020110336303710938, |
|
0.020899839401245117, |
|
0.021121023178100586, |
|
0.02106777572631836, |
|
0.020150272369384766, |
|
0.021747711181640626, |
|
0.02041548728942871, |
|
0.020149248123168945, |
|
0.02046668815612793, |
|
0.020145151138305666, |
|
0.020115455627441405 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.636184457894906 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |