|
{ |
|
"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": true, |
|
"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.293824, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.219-208.866.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.43.0.dev0", |
|
"transformers_commit": "1c68f2cafb4ca54562f74b66d1085b68dd6682f5", |
|
"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": 1928.159232, |
|
"max_global_vram": 6094.848, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 5379.19488, |
|
"max_allocated": 5021.251584 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.028283679962158206, |
|
"mean": 0.014141839981079103, |
|
"stdev": 0.00012878417968749997, |
|
"p50": 0.014141839981079103, |
|
"p90": 0.014244867324829102, |
|
"p95": 0.014257745742797851, |
|
"p99": 0.014268048477172852, |
|
"values": [ |
|
0.014270624160766602, |
|
0.014013055801391602 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 494.98509453971775 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 2272.0512, |
|
"max_global_vram": 8907.128832, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 5379.19488, |
|
"max_allocated": 5027.089408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 3.152967895507812, |
|
"mean": 1.576483947753906, |
|
"stdev": 0.01732476806640626, |
|
"p50": 1.576483947753906, |
|
"p90": 1.5903437622070313, |
|
"p95": 1.5920762390136718, |
|
"p99": 1.5934622204589843, |
|
"values": [ |
|
1.5938087158203125, |
|
1.5591591796875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 80.55901880951158 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 3.15407155227661, |
|
"mean": 0.01246668597737791, |
|
"stdev": 0.0009094033128073883, |
|
"p50": 0.012291071891784668, |
|
"p90": 0.012769075584411621, |
|
"p95": 0.012789555358886718, |
|
"p99": 0.012844891738891601, |
|
"values": [ |
|
0.012717056274414062, |
|
0.012833791732788086, |
|
0.012731391906738282, |
|
0.012797951698303223, |
|
0.012728320121765137, |
|
0.012769280433654785, |
|
0.012790783882141114, |
|
0.012791872024536133, |
|
0.012724160194396972, |
|
0.01277337646484375, |
|
0.01276416015625, |
|
0.012829695701599121, |
|
0.012718079566955566, |
|
0.012761088371276855, |
|
0.012699647903442383, |
|
0.012772352218627929, |
|
0.012777471542358398, |
|
0.012802047729492188, |
|
0.012726335525512696, |
|
0.012784576416015625, |
|
0.012717056274414062, |
|
0.012724287986755371, |
|
0.012786623954772949, |
|
0.012790783882141114, |
|
0.012731391906738282, |
|
0.012775424003601075, |
|
0.012691455841064453, |
|
0.012815360069274903, |
|
0.012723199844360352, |
|
0.012742655754089355, |
|
0.012702719688415527, |
|
0.012766207695007324, |
|
0.012734463691711426, |
|
0.012770303726196289, |
|
0.012691455841064453, |
|
0.012687359809875488, |
|
0.012690431594848632, |
|
0.0127457275390625, |
|
0.012726271629333496, |
|
0.012744704246520995, |
|
0.012698623657226562, |
|
0.012769311904907226, |
|
0.012729311943054199, |
|
0.01287065601348877, |
|
0.01274675178527832, |
|
0.012775424003601075, |
|
0.012726271629333496, |
|
0.012768256187438964, |
|
0.01275391960144043, |
|
0.012822527885437012, |
|
0.01273036766052246, |
|
0.012788736343383789, |
|
0.012718079566955566, |
|
0.012772352218627929, |
|
0.012849151611328125, |
|
0.01278771209716797, |
|
0.012694527626037597, |
|
0.01274060821533203, |
|
0.012708864212036132, |
|
0.012840959548950195, |
|
0.012707839965820313, |
|
0.012760064125061036, |
|
0.012697600364685058, |
|
0.0127457275390625, |
|
0.012608511924743653, |
|
0.012670975685119629, |
|
0.012697600364685058, |
|
0.012621824264526366, |
|
0.012316672325134278, |
|
0.012509183883666992, |
|
0.012535807609558105, |
|
0.012704768180847169, |
|
0.012704768180847169, |
|
0.012397567749023437, |
|
0.012344320297241211, |
|
0.012368895530700684, |
|
0.012411904335021973, |
|
0.012315648078918457, |
|
0.012267519950866699, |
|
0.012320768356323243, |
|
0.01224396800994873, |
|
0.012298239707946777, |
|
0.012305407524108887, |
|
0.012319744110107422, |
|
0.012249088287353516, |
|
0.012298239707946777, |
|
0.012326911926269531, |
|
0.01237299156188965, |
|
0.012278783798217773, |
|
0.012304384231567383, |
|
0.01226956844329834, |
|
0.012305407524108887, |
|
0.012247039794921874, |
|
0.012296192169189453, |
|
0.012253184318542481, |
|
0.012297216415405274, |
|
0.012275712013244629, |
|
0.012319744110107422, |
|
0.012244992256164551, |
|
0.012294143676757812, |
|
0.012244992256164551, |
|
0.012285951614379884, |
|
0.012248064041137695, |
|
0.012289024353027344, |
|
0.012254207611083985, |
|
0.012297216415405274, |
|
0.01225011157989502, |
|
0.012282879829406738, |
|
0.012247039794921874, |
|
0.01228492832183838, |
|
0.012233728408813477, |
|
0.012312576293945313, |
|
0.01225216007232666, |
|
0.012286975860595703, |
|
0.012241920471191407, |
|
0.012290111541748047, |
|
0.01226028823852539, |
|
0.012288000106811523, |
|
0.012253184318542481, |
|
0.012296192169189453, |
|
0.012246015548706055, |
|
0.012285951614379884, |
|
0.01226035213470459, |
|
0.012282879829406738, |
|
0.012244992256164551, |
|
0.012297216415405274, |
|
0.02650111961364746, |
|
0.012239871978759765, |
|
0.012290047645568849, |
|
0.012264448165893555, |
|
0.012303359985351562, |
|
0.012239871978759765, |
|
0.012308480262756348, |
|
0.01226854419708252, |
|
0.01229312038421631, |
|
0.012263423919677734, |
|
0.012291071891784668, |
|
0.01224396800994873, |
|
0.012286975860595703, |
|
0.01225830364227295, |
|
0.012294143676757812, |
|
0.012256256103515625, |
|
0.012278783798217773, |
|
0.012248064041137695, |
|
0.012348416328430176, |
|
0.01225216007232666, |
|
0.012320768356323243, |
|
0.01226854419708252, |
|
0.012281855583190919, |
|
0.01226137638092041, |
|
0.012285951614379884, |
|
0.012244992256164551, |
|
0.012292096138000488, |
|
0.01225113582611084, |
|
0.012285951614379884, |
|
0.012253184318542481, |
|
0.012294143676757812, |
|
0.012241920471191407, |
|
0.01228492832183838, |
|
0.012239871978759765, |
|
0.01228492832183838, |
|
0.012253184318542481, |
|
0.012328960418701173, |
|
0.012244992256164551, |
|
0.012285951614379884, |
|
0.012248064041137695, |
|
0.012298239707946777, |
|
0.012255231857299804, |
|
0.012281855583190919, |
|
0.01225216007232666, |
|
0.012279808044433594, |
|
0.012253184318542481, |
|
0.012291071891784668, |
|
0.01225113582611084, |
|
0.012275712013244629, |
|
0.012240896224975586, |
|
0.012324864387512208, |
|
0.01225830364227295, |
|
0.01228492832183838, |
|
0.01224294376373291, |
|
0.012292096138000488, |
|
0.012259327888488769, |
|
0.012277759552001954, |
|
0.012237824440002442, |
|
0.012280832290649414, |
|
0.012264448165893555, |
|
0.012282879829406738, |
|
0.012247039794921874, |
|
0.012283904075622559, |
|
0.012237824440002442, |
|
0.012294143676757812, |
|
0.01226035213470459, |
|
0.012304384231567383, |
|
0.012237824440002442, |
|
0.012289024353027344, |
|
0.01225113582611084, |
|
0.012283904075622559, |
|
0.01224396800994873, |
|
0.012277759552001954, |
|
0.012246015548706055, |
|
0.012291071891784668, |
|
0.012229632377624512, |
|
0.012290047645568849, |
|
0.01224294376373291, |
|
0.012286975860595703, |
|
0.012241920471191407, |
|
0.012303359985351562, |
|
0.012254207611083985, |
|
0.012288000106811523, |
|
0.012248064041137695, |
|
0.012292096138000488, |
|
0.012239871978759765, |
|
0.012286975860595703, |
|
0.01226956844329834, |
|
0.012288000106811523, |
|
0.01223475170135498, |
|
0.012283904075622559, |
|
0.012257280349731446, |
|
0.012296192169189453, |
|
0.01239244842529297, |
|
0.01245081615447998, |
|
0.012306431770324706, |
|
0.012297216415405274, |
|
0.01226137638092041, |
|
0.012299263954162597, |
|
0.012255231857299804, |
|
0.012299263954162597, |
|
0.012254207611083985, |
|
0.012281855583190919, |
|
0.01224396800994873, |
|
0.012285951614379884, |
|
0.012244992256164551, |
|
0.012292096138000488, |
|
0.012246015548706055, |
|
0.012555264472961425, |
|
0.012246015548706055, |
|
0.012288000106811523, |
|
0.012241920471191407, |
|
0.012291071891784668, |
|
0.012233728408813477, |
|
0.01226854419708252, |
|
0.012241920471191407, |
|
0.01228492832183838, |
|
0.012247039794921874, |
|
0.012280832290649414, |
|
0.0122357759475708, |
|
0.01228492832183838, |
|
0.012248064041137695, |
|
0.012299263954162597, |
|
0.012271615982055664, |
|
0.012281855583190919, |
|
0.012241920471191407, |
|
0.012297216415405274 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 80.21377949317112 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |