|
{ |
|
"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.217-205.860.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": "348e2294ac1a3cc744a93f04ab1f886439ee90d3", |
|
"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": 1761.554432, |
|
"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.04537446403503418, |
|
"mean": 0.02268723201751709, |
|
"stdev": 0.00026819133758545013, |
|
"p50": 0.02268723201751709, |
|
"p90": 0.02290178508758545, |
|
"p95": 0.022928604221343993, |
|
"p99": 0.02295005952835083, |
|
"values": [ |
|
0.02241904067993164, |
|
0.02295542335510254 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 308.54358938962736 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1761.570816, |
|
"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.188403076171875, |
|
"mean": 2.5942015380859376, |
|
"stdev": 0.01855603027343755, |
|
"p50": 2.5942015380859376, |
|
"p90": 2.6090463623046873, |
|
"p95": 2.6109019653320313, |
|
"p99": 2.6123864477539063, |
|
"values": [ |
|
2.612757568359375, |
|
2.5756455078125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.955332935969025 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.190375408172609, |
|
"mean": 0.020515317818864065, |
|
"stdev": 0.0015101034611190692, |
|
"p50": 0.02026905632019043, |
|
"p90": 0.020982989501953125, |
|
"p95": 0.021206016540527343, |
|
"p99": 0.02195400207519531, |
|
"values": [ |
|
0.02088755226135254, |
|
0.02086092758178711, |
|
0.020995071411132812, |
|
0.020777984619140624, |
|
0.02088243293762207, |
|
0.020772863388061523, |
|
0.02082099151611328, |
|
0.020489215850830078, |
|
0.02068070411682129, |
|
0.020774911880493165, |
|
0.020985855102539062, |
|
0.020992000579833983, |
|
0.020745216369628908, |
|
0.02106470489501953, |
|
0.021145599365234375, |
|
0.020984832763671874, |
|
0.020923391342163086, |
|
0.021763071060180664, |
|
0.020815872192382814, |
|
0.02086911964416504, |
|
0.020509695053100584, |
|
0.020546560287475587, |
|
0.020780031204223632, |
|
0.02065920066833496, |
|
0.020694015502929687, |
|
0.020738048553466795, |
|
0.020954111099243163, |
|
0.021008384704589843, |
|
0.02143027114868164, |
|
0.021407743453979493, |
|
0.021626880645751953, |
|
0.021527551651000978, |
|
0.021227519989013673, |
|
0.021181440353393553, |
|
0.021780479431152345, |
|
0.020547584533691408, |
|
0.02125823974609375, |
|
0.020718591690063477, |
|
0.021425151824951173, |
|
0.020950016021728517, |
|
0.02103500747680664, |
|
0.020516864776611327, |
|
0.020521984100341797, |
|
0.02063871955871582, |
|
0.02087833595275879, |
|
0.021011455535888672, |
|
0.021191680908203125, |
|
0.021105663299560547, |
|
0.020975616455078124, |
|
0.020147199630737304, |
|
0.023710720062255858, |
|
0.022141984939575195, |
|
0.02065814399719238, |
|
0.020307968139648438, |
|
0.02026905632019043, |
|
0.02032640075683594, |
|
0.020273151397705077, |
|
0.020254720687866212, |
|
0.020288511276245116, |
|
0.02025267219543457, |
|
0.020354047775268554, |
|
0.02023321533203125, |
|
0.02046566390991211, |
|
0.020195327758789062, |
|
0.020221952438354493, |
|
0.0202608642578125, |
|
0.020502527236938475, |
|
0.020313087463378905, |
|
0.020214784622192384, |
|
0.020176895141601564, |
|
0.02024038314819336, |
|
0.02024140739440918, |
|
0.020205568313598633, |
|
0.020221952438354493, |
|
0.02025881576538086, |
|
0.02017791938781738, |
|
0.020148223876953125, |
|
0.02007756805419922, |
|
0.02023423957824707, |
|
0.020336639404296874, |
|
0.020404224395751954, |
|
0.020311040878295897, |
|
0.020329471588134765, |
|
0.020152320861816408, |
|
0.020347904205322266, |
|
0.02017791938781738, |
|
0.020323328018188477, |
|
0.020205568313598633, |
|
0.020183040618896485, |
|
0.020220928192138672, |
|
0.020172800064086914, |
|
0.020290559768676757, |
|
0.0202106876373291, |
|
0.020238336563110353, |
|
0.02022604751586914, |
|
0.020154367446899413, |
|
0.020271104812622072, |
|
0.02025881576538086, |
|
0.020222976684570314, |
|
0.020403200149536133, |
|
0.020273151397705077, |
|
0.020208639144897463, |
|
0.020084735870361328, |
|
0.020176895141601564, |
|
0.020110336303710938, |
|
0.02021990394592285, |
|
0.02021785545349121, |
|
0.020131839752197265, |
|
0.020207616806030275, |
|
0.020398080825805662, |
|
0.020303871154785155, |
|
0.02022502326965332, |
|
0.020199424743652345, |
|
0.02008576011657715, |
|
0.020145151138305666, |
|
0.020496416091918945, |
|
0.020588512420654296, |
|
0.020332544326782227, |
|
0.02029363250732422, |
|
0.020205568313598633, |
|
0.020212736129760742, |
|
0.020145151138305666, |
|
0.020101119995117187, |
|
0.020129791259765627, |
|
0.02024038314819336, |
|
0.02011955261230469, |
|
0.0436049919128418, |
|
0.020188159942626953, |
|
0.020158464431762696, |
|
0.020455423355102538, |
|
0.020157440185546875, |
|
0.020215808868408205, |
|
0.020131839752197265, |
|
0.02023219108581543, |
|
0.020311040878295897, |
|
0.02023628807067871, |
|
0.020140031814575195, |
|
0.020380672454833985, |
|
0.020196352005004883, |
|
0.020257791519165038, |
|
0.020185087203979494, |
|
0.020307968139648438, |
|
0.02026700782775879, |
|
0.020176895141601564, |
|
0.020221952438354493, |
|
0.020262912750244142, |
|
0.02040115165710449, |
|
0.020172800064086914, |
|
0.020455423355102538, |
|
0.02047488021850586, |
|
0.02022502326965332, |
|
0.0202608642578125, |
|
0.020414464950561522, |
|
0.02046668815612793, |
|
0.020460544586181642, |
|
0.020123647689819335, |
|
0.020158464431762696, |
|
0.020213760375976563, |
|
0.02017791938781738, |
|
0.020296703338623046, |
|
0.020190208435058594, |
|
0.020238336563110353, |
|
0.020254720687866212, |
|
0.020330495834350586, |
|
0.02063052749633789, |
|
0.020354047775268554, |
|
0.0204400634765625, |
|
0.02025164794921875, |
|
0.02021171188354492, |
|
0.020168703079223634, |
|
0.020180992126464844, |
|
0.020264959335327147, |
|
0.020339712142944336, |
|
0.020264959335327147, |
|
0.020148223876953125, |
|
0.020331520080566406, |
|
0.020337663650512695, |
|
0.020175872802734376, |
|
0.020561920166015626, |
|
0.0202608642578125, |
|
0.02023219108581543, |
|
0.020538368225097657, |
|
0.020187135696411132, |
|
0.02025881576538086, |
|
0.020271104812622072, |
|
0.02023628807067871, |
|
0.02026905632019043, |
|
0.020221952438354493, |
|
0.020134912490844727, |
|
0.02025369644165039, |
|
0.02020662307739258, |
|
0.020387807846069337, |
|
0.020324352264404297, |
|
0.02023321533203125, |
|
0.02030899238586426, |
|
0.02021785545349121, |
|
0.02020249557495117, |
|
0.020114431381225584, |
|
0.02023423957824707, |
|
0.02033459281921387, |
|
0.020149248123168945, |
|
0.020147199630737304, |
|
0.02023219108581543, |
|
0.020139007568359374, |
|
0.020191232681274415, |
|
0.020298751831054687, |
|
0.020168703079223634, |
|
0.020157440185546875, |
|
0.020178943634033202, |
|
0.02025369644165039, |
|
0.020414464950561522, |
|
0.020322303771972656, |
|
0.020150272369384766, |
|
0.020289535522460937, |
|
0.020153343200683595, |
|
0.020311040878295897, |
|
0.020121599197387697, |
|
0.020273151397705077, |
|
0.020200447082519533, |
|
0.020163583755493163, |
|
0.020100095748901366, |
|
0.020178943634033202, |
|
0.020125696182250977, |
|
0.020166656494140626, |
|
0.02048409652709961, |
|
0.020147199630737304, |
|
0.020330495834350586, |
|
0.020502527236938475, |
|
0.020354047775268554, |
|
0.02027212715148926, |
|
0.02025984001159668, |
|
0.02032537651062012, |
|
0.02025369644165039, |
|
0.020249599456787108, |
|
0.020165632247924805, |
|
0.020163583755493163, |
|
0.020221952438354493, |
|
0.020281343460083007, |
|
0.02016972732543945, |
|
0.020141056060791016, |
|
0.02030899238586426, |
|
0.020340736389160157, |
|
0.02042265510559082, |
|
0.020364288330078126, |
|
0.020220928192138672, |
|
0.020154367446899413, |
|
0.020501504898071288, |
|
0.02011136054992676, |
|
0.020328447341918944, |
|
0.02106675148010254, |
|
0.02124185562133789, |
|
0.020370431900024414, |
|
0.020488191604614257 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.74406571856707 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |