|
{ |
|
"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-212.873.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": "eb5b968c5d80271ecb29917dffecc8f4c00247a8", |
|
"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": 1319.837696, |
|
"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.447373046875, |
|
"mean": 11.447373046875, |
|
"stdev": 0.0, |
|
"p50": 11.447373046875, |
|
"p90": 11.447373046875, |
|
"p95": 11.447373046875, |
|
"p99": 11.447373046875, |
|
"values": [ |
|
11.447373046875 |
|
] |
|
}, |
|
"throughput": null, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1749.938176, |
|
"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.04496422386169434, |
|
"mean": 0.02248211193084717, |
|
"stdev": 1.248073577880815e-05, |
|
"p50": 0.02248211193084717, |
|
"p90": 0.022492096519470216, |
|
"p95": 0.022493344593048095, |
|
"p99": 0.0224943430519104, |
|
"values": [ |
|
0.022494592666625977, |
|
0.02246963119506836 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 311.35864911318527 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1774.55104, |
|
"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.2905996093750005, |
|
"mean": 2.6452998046875003, |
|
"stdev": 0.0010036621093749698, |
|
"p50": 2.6452998046875003, |
|
"p90": 2.646102734375, |
|
"p95": 2.6462031005859377, |
|
"p99": 2.6462833935546874, |
|
"values": [ |
|
2.644296142578125, |
|
2.646303466796875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.009681086035926 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 254, |
|
"total": 5.290343486785889, |
|
"mean": 0.020828123963723973, |
|
"stdev": 0.0003520312460539668, |
|
"p50": 0.020713984489440916, |
|
"p90": 0.021395660400390627, |
|
"p95": 0.021631026935577394, |
|
"p99": 0.022336256046295164, |
|
"values": [ |
|
0.020720703125, |
|
0.02070521545410156, |
|
0.020749311447143554, |
|
0.020711423873901368, |
|
0.02069708824157715, |
|
0.02067967987060547, |
|
0.020718591690063477, |
|
0.020720640182495118, |
|
0.020725759506225586, |
|
0.020743167877197266, |
|
0.020706304550170897, |
|
0.020722688674926756, |
|
0.020791296005249024, |
|
0.021140480041503908, |
|
0.02107084846496582, |
|
0.02067558479309082, |
|
0.020709375381469726, |
|
0.02071347236633301, |
|
0.020720640182495118, |
|
0.020734975814819336, |
|
0.020717567443847656, |
|
0.020682752609252928, |
|
0.020764671325683593, |
|
0.020750335693359375, |
|
0.020776960372924806, |
|
0.020707328796386718, |
|
0.020562944412231447, |
|
0.02049228858947754, |
|
0.020575231552124023, |
|
0.020692991256713866, |
|
0.020771839141845702, |
|
0.020717567443847656, |
|
0.020753408432006838, |
|
0.020750335693359375, |
|
0.020766719818115235, |
|
0.020766719818115235, |
|
0.020730880737304686, |
|
0.020686847686767578, |
|
0.020711423873901368, |
|
0.020676607131958007, |
|
0.020748287200927733, |
|
0.020757503509521484, |
|
0.020756479263305663, |
|
0.020701183319091796, |
|
0.020751359939575196, |
|
0.020744192123413087, |
|
0.020920320510864256, |
|
0.020752384185791017, |
|
0.020699136734008788, |
|
0.020744192123413087, |
|
0.020791296005249024, |
|
0.020700159072875975, |
|
0.020742143630981445, |
|
0.02065407943725586, |
|
0.02072166442871094, |
|
0.020633600234985353, |
|
0.020544511795043945, |
|
0.020523008346557618, |
|
0.020558847427368163, |
|
0.020562944412231447, |
|
0.020550655364990233, |
|
0.020641792297363282, |
|
0.020930559158325195, |
|
0.021146623611450196, |
|
0.02106470489501953, |
|
0.020702207565307617, |
|
0.021629951477050782, |
|
0.022179840087890625, |
|
0.021622783660888673, |
|
0.021543935775756837, |
|
0.020748287200927733, |
|
0.021736448287963867, |
|
0.02272153663635254, |
|
0.021841920852661133, |
|
0.02165760040283203, |
|
0.02083635139465332, |
|
0.021577728271484374, |
|
0.02152448081970215, |
|
0.020741119384765624, |
|
0.020743167877197266, |
|
0.020737024307250978, |
|
0.020738048553466795, |
|
0.02066227149963379, |
|
0.020709375381469726, |
|
0.02069708824157715, |
|
0.020760576248168947, |
|
0.020779008865356444, |
|
0.020699136734008788, |
|
0.02067251205444336, |
|
0.020642816543579103, |
|
0.02066534423828125, |
|
0.020707328796386718, |
|
0.020706304550170897, |
|
0.020669439315795898, |
|
0.02072166442871094, |
|
0.02072166442871094, |
|
0.020722688674926756, |
|
0.02066431999206543, |
|
0.020754432678222655, |
|
0.02065715217590332, |
|
0.020682752609252928, |
|
0.02066534423828125, |
|
0.020710399627685547, |
|
0.020669439315795898, |
|
0.020744192123413087, |
|
0.020686847686767578, |
|
0.02069606399536133, |
|
0.020694015502929687, |
|
0.020714496612548827, |
|
0.020775936126708985, |
|
0.020744224548339844, |
|
0.020833248138427733, |
|
0.020980735778808594, |
|
0.021222400665283202, |
|
0.020959232330322267, |
|
0.021175296783447265, |
|
0.02084147262573242, |
|
0.020710399627685547, |
|
0.020774911880493165, |
|
0.020699136734008788, |
|
0.020724735260009765, |
|
0.02067251205444336, |
|
0.02065920066833496, |
|
0.02067967987060547, |
|
0.02066022491455078, |
|
0.02065407943725586, |
|
0.020685888290405272, |
|
0.020710399627685547, |
|
0.020771839141845702, |
|
0.02066431999206543, |
|
0.020736000061035157, |
|
0.020754432678222655, |
|
0.021741567611694337, |
|
0.021549055099487305, |
|
0.021489664077758788, |
|
0.020739072799682616, |
|
0.020853759765625, |
|
0.02149580764770508, |
|
0.021767168045043944, |
|
0.021559295654296876, |
|
0.021518335342407227, |
|
0.020788223266601562, |
|
0.020701183319091796, |
|
0.020674560546875, |
|
0.02062950325012207, |
|
0.02067967987060547, |
|
0.020612096786499022, |
|
0.02063052749633789, |
|
0.0206561279296875, |
|
0.02066227149963379, |
|
0.020751359939575196, |
|
0.0206561279296875, |
|
0.02061311912536621, |
|
0.020669439315795898, |
|
0.020676607131958007, |
|
0.020760576248168947, |
|
0.020710399627685547, |
|
0.020750335693359375, |
|
0.02068889617919922, |
|
0.0206561279296875, |
|
0.020832256317138673, |
|
0.02147737693786621, |
|
0.021020671844482423, |
|
0.020685823440551757, |
|
0.020618240356445314, |
|
0.02069606399536133, |
|
0.02067558479309082, |
|
0.02069606399536133, |
|
0.020744192123413087, |
|
0.020676607131958007, |
|
0.02067865562438965, |
|
0.020717567443847656, |
|
0.020677631378173827, |
|
0.02065203285217285, |
|
0.020684799194335936, |
|
0.02064588737487793, |
|
0.020641792297363282, |
|
0.02072985649108887, |
|
0.020550655364990233, |
|
0.02048307228088379, |
|
0.020495359420776366, |
|
0.020521984100341797, |
|
0.02068070411682129, |
|
0.020644863128662108, |
|
0.020508672714233397, |
|
0.02051584053039551, |
|
0.020746240615844725, |
|
0.02067046356201172, |
|
0.020674560546875, |
|
0.020730880737304686, |
|
0.02066431999206543, |
|
0.020726783752441406, |
|
0.020710399627685547, |
|
0.02066329574584961, |
|
0.02066329574584961, |
|
0.02064793586730957, |
|
0.02069811248779297, |
|
0.020746240615844725, |
|
0.020940799713134766, |
|
0.02069708824157715, |
|
0.020668447494506834, |
|
0.02067555236816406, |
|
0.02071347236633301, |
|
0.020743167877197266, |
|
0.02068377685546875, |
|
0.020700159072875975, |
|
0.020700159072875975, |
|
0.020714496612548827, |
|
0.020749311447143554, |
|
0.020787200927734374, |
|
0.022708223342895507, |
|
0.02251263999938965, |
|
0.02191360092163086, |
|
0.02166169548034668, |
|
0.020694015502929687, |
|
0.020741119384765624, |
|
0.020711423873901368, |
|
0.020737024307250978, |
|
0.02068377685546875, |
|
0.020677631378173827, |
|
0.020710399627685547, |
|
0.020767744064331056, |
|
0.02071347236633301, |
|
0.020723712921142577, |
|
0.02070528030395508, |
|
0.02067558479309082, |
|
0.020710399627685547, |
|
0.02068377685546875, |
|
0.020719615936279297, |
|
0.020736000061035157, |
|
0.02068377685546875, |
|
0.020730880737304686, |
|
0.020725759506225586, |
|
0.021384191513061524, |
|
0.021841920852661133, |
|
0.02163302421569824, |
|
0.021531648635864258, |
|
0.02071347236633301, |
|
0.02072985649108887, |
|
0.020707328796386718, |
|
0.020727807998657227, |
|
0.020750335693359375, |
|
0.020676607131958007, |
|
0.020716543197631835, |
|
0.02069606399536133, |
|
0.020725759506225586, |
|
0.020742143630981445, |
|
0.020694015502929687, |
|
0.020682752609252928, |
|
0.02069196891784668, |
|
0.020711423873901368, |
|
0.020734975814819336, |
|
0.020970495223999023, |
|
0.021400575637817384 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.01200538952451 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |