|
{ |
|
"config": { |
|
"name": "pytorch_generate", |
|
"backend": { |
|
"name": "pytorch", |
|
"version": "2.3.0+cu121", |
|
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", |
|
"task": "text-generation", |
|
"library": "transformers", |
|
"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": {}, |
|
"hub_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, |
|
"latency": true, |
|
"memory": 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", |
|
"start_method": "spawn" |
|
}, |
|
"environment": { |
|
"cpu": " AMD EPYC 7R32", |
|
"cpu_count": 16, |
|
"cpu_ram_mb": 66697.29792, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.218-208.862.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.2.1", |
|
"optimum_benchmark_commit": null, |
|
"transformers_version": "4.42.0.dev0", |
|
"transformers_commit": "74b92c62560b7ade42d35a49f9063adc8b805c4a", |
|
"accelerate_version": "0.32.0.dev0", |
|
"accelerate_commit": null, |
|
"diffusers_version": null, |
|
"diffusers_commit": null, |
|
"optimum_version": "1.21.0.dev0", |
|
"optimum_commit": null, |
|
"timm_version": "0.9.16", |
|
"timm_commit": null, |
|
"peft_version": "0.11.2.dev0", |
|
"peft_commit": null |
|
} |
|
}, |
|
"report": { |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1753.546752, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5036.936192 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.045966016769409174, |
|
"mean": 0.022983008384704587, |
|
"stdev": 0.00017788791656494184, |
|
"p50": 0.022983008384704587, |
|
"p90": 0.023125318717956544, |
|
"p95": 0.023143107509613035, |
|
"p99": 0.023157338542938232, |
|
"values": [ |
|
0.022805120468139647, |
|
0.02316089630126953 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 304.57283410550235 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1753.567232, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5036.936704 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.389102783203125, |
|
"mean": 2.6945513916015624, |
|
"stdev": 0.008186645507812562, |
|
"p50": 2.6945513916015624, |
|
"p90": 2.7011007080078127, |
|
"p95": 2.701919372558594, |
|
"p99": 2.702574304199219, |
|
"values": [ |
|
2.702738037109375, |
|
2.68636474609375 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 47.132149862064765 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.390889976501462, |
|
"mean": 0.021307865519768633, |
|
"stdev": 0.0015965676788997239, |
|
"p50": 0.021398527145385742, |
|
"p90": 0.02195804214477539, |
|
"p95": 0.02212249641418457, |
|
"p99": 0.023629455642700196, |
|
"values": [ |
|
0.02166579246520996, |
|
0.021629951477050782, |
|
0.021301248550415038, |
|
0.023805952072143553, |
|
0.02327654457092285, |
|
0.022517759323120116, |
|
0.022609920501708985, |
|
0.022675455093383787, |
|
0.02370560073852539, |
|
0.022098943710327147, |
|
0.02211020851135254, |
|
0.022140928268432617, |
|
0.021969919204711915, |
|
0.021833728790283204, |
|
0.021944320678710938, |
|
0.022063104629516602, |
|
0.02206822395324707, |
|
0.0220948486328125, |
|
0.02209280014038086, |
|
0.021994495391845705, |
|
0.02188083267211914, |
|
0.021925888061523437, |
|
0.021914623260498048, |
|
0.021827583312988282, |
|
0.021931007385253908, |
|
0.021873664855957032, |
|
0.021752832412719726, |
|
0.021959680557250977, |
|
0.02207334327697754, |
|
0.022558719635009765, |
|
0.022208511352539064, |
|
0.021961727142333985, |
|
0.022378496170043945, |
|
0.021951488494873047, |
|
0.02208665657043457, |
|
0.02191155242919922, |
|
0.0220897274017334, |
|
0.02224844741821289, |
|
0.0219289608001709, |
|
0.020980735778808594, |
|
0.020923391342163086, |
|
0.020968448638916014, |
|
0.021015552520751952, |
|
0.020793344497680662, |
|
0.020954111099243163, |
|
0.02084147262573242, |
|
0.02168012809753418, |
|
0.02101862335205078, |
|
0.021029888153076173, |
|
0.0208721923828125, |
|
0.02083839988708496, |
|
0.020786176681518553, |
|
0.02050764846801758, |
|
0.02046566390991211, |
|
0.0213309440612793, |
|
0.021539840698242187, |
|
0.02162380790710449, |
|
0.02144972801208496, |
|
0.020714496612548827, |
|
0.020610048294067384, |
|
0.02049945640563965, |
|
0.020518911361694335, |
|
0.020504575729370117, |
|
0.02044211196899414, |
|
0.020563968658447264, |
|
0.020582399368286132, |
|
0.02046976089477539, |
|
0.020544511795043945, |
|
0.02048307228088379, |
|
0.020497407913208008, |
|
0.020542463302612304, |
|
0.020511743545532226, |
|
0.02067046356201172, |
|
0.020545536041259766, |
|
0.020541439056396483, |
|
0.02046668815612793, |
|
0.02064896011352539, |
|
0.020460544586181642, |
|
0.020557823181152343, |
|
0.020567039489746093, |
|
0.020533248901367186, |
|
0.020511743545532226, |
|
0.020724735260009765, |
|
0.02050662422180176, |
|
0.02062131118774414, |
|
0.020537343978881836, |
|
0.020511743545532226, |
|
0.020714496612548827, |
|
0.020585472106933594, |
|
0.020477951049804686, |
|
0.020503551483154296, |
|
0.020560895919799805, |
|
0.020574207305908202, |
|
0.02063155174255371, |
|
0.021515264511108398, |
|
0.0204769287109375, |
|
0.020773887634277344, |
|
0.02149580764770508, |
|
0.020552703857421875, |
|
0.020584447860717774, |
|
0.020661247253417968, |
|
0.02047283172607422, |
|
0.02048307228088379, |
|
0.02182655906677246, |
|
0.02152038383483887, |
|
0.021575679779052736, |
|
0.0214783992767334, |
|
0.02145484733581543, |
|
0.021613567352294923, |
|
0.02147737693786621, |
|
0.02148454475402832, |
|
0.02144767951965332, |
|
0.02146201515197754, |
|
0.021397504806518555, |
|
0.0215285758972168, |
|
0.021411840438842773, |
|
0.021535743713378908, |
|
0.02146201515197754, |
|
0.020566015243530272, |
|
0.02057318305969238, |
|
0.020929536819458007, |
|
0.021412864685058593, |
|
0.021398527145385742, |
|
0.021399551391601563, |
|
0.021315584182739256, |
|
0.02042265510559082, |
|
0.044578815460205076, |
|
0.021429248809814453, |
|
0.021436416625976562, |
|
0.020547584533691408, |
|
0.020447231292724608, |
|
0.020540416717529295, |
|
0.02049945640563965, |
|
0.020509695053100584, |
|
0.021518335342407227, |
|
0.021530624389648437, |
|
0.021555200576782226, |
|
0.020959232330322267, |
|
0.020626432418823244, |
|
0.020978687286376953, |
|
0.021212160110473634, |
|
0.021342208862304687, |
|
0.02051584053039551, |
|
0.020666368484497072, |
|
0.02058956718444824, |
|
0.020619264602661135, |
|
0.020706304550170897, |
|
0.02066022491455078, |
|
0.020559871673583984, |
|
0.021550079345703126, |
|
0.021627904891967774, |
|
0.02146611213684082, |
|
0.02162892723083496, |
|
0.02145484733581543, |
|
0.02142207908630371, |
|
0.02146099281311035, |
|
0.021805055618286134, |
|
0.02146816062927246, |
|
0.02145075225830078, |
|
0.020707328796386718, |
|
0.020468736648559572, |
|
0.02060492706298828, |
|
0.020576255798339844, |
|
0.020984832763671874, |
|
0.02163711929321289, |
|
0.02148659133911133, |
|
0.021507072448730468, |
|
0.020557823181152343, |
|
0.020518911361694335, |
|
0.020488191604614257, |
|
0.020779008865356444, |
|
0.021584896087646483, |
|
0.020798463821411133, |
|
0.021553152084350585, |
|
0.021622783660888673, |
|
0.020669439315795898, |
|
0.02064076805114746, |
|
0.020513792037963868, |
|
0.020593664169311524, |
|
0.020586496353149415, |
|
0.020586496353149415, |
|
0.020634624481201173, |
|
0.020618240356445314, |
|
0.020540416717529295, |
|
0.02058137512207031, |
|
0.020602880477905275, |
|
0.021526527404785157, |
|
0.021505023956298826, |
|
0.021507072448730468, |
|
0.0214968318939209, |
|
0.020951040267944337, |
|
0.021638143539428712, |
|
0.020516864776611327, |
|
0.02148249626159668, |
|
0.021533695220947266, |
|
0.021370880126953123, |
|
0.0206376953125, |
|
0.021833728790283204, |
|
0.021557247161865235, |
|
0.02150297546386719, |
|
0.02162892723083496, |
|
0.020533248901367186, |
|
0.02046668815612793, |
|
0.02067353630065918, |
|
0.02149580764770508, |
|
0.021517311096191406, |
|
0.021411840438842773, |
|
0.021540864944458008, |
|
0.021540864944458008, |
|
0.021510143280029297, |
|
0.021407743453979493, |
|
0.02145996856689453, |
|
0.02151628875732422, |
|
0.021401599884033205, |
|
0.021542911529541017, |
|
0.02166886329650879, |
|
0.02147532844543457, |
|
0.02062950325012207, |
|
0.020353023529052734, |
|
0.020319232940673827, |
|
0.023559167861938478, |
|
0.02173030471801758, |
|
0.021534719467163087, |
|
0.02142310333251953, |
|
0.02058137512207031, |
|
0.021304319381713867, |
|
0.021518335342407227, |
|
0.021448703765869142, |
|
0.021323776245117186, |
|
0.021420032501220702, |
|
0.02142207908630371, |
|
0.021385215759277345, |
|
0.02142720031738281, |
|
0.021440511703491212, |
|
0.021320703506469727, |
|
0.021403648376464843, |
|
0.021414911270141602, |
|
0.021621759414672852, |
|
0.020808704376220705, |
|
0.020403200149536133, |
|
0.02045952033996582, |
|
0.02084351921081543, |
|
0.020619264602661135, |
|
0.020674560546875, |
|
0.021778432846069336, |
|
0.0214466552734375, |
|
0.021242879867553712, |
|
0.021536767959594725, |
|
0.021416959762573243, |
|
0.021444608688354492, |
|
0.02166067123413086, |
|
0.021600255966186522, |
|
0.021379072189331053 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 46.93102643585946 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |