|
{ |
|
"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.216-204.855.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": "6aafe5f36d73e730c988ee090233eb757b33821c", |
|
"accelerate_version": "0.31.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": 1749.4016, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5035.912192 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.051050144195556646, |
|
"mean": 0.025525072097778323, |
|
"stdev": 0.0035093917846679683, |
|
"p50": 0.025525072097778323, |
|
"p90": 0.028332585525512696, |
|
"p95": 0.02868352470397949, |
|
"p99": 0.02896427604675293, |
|
"values": [ |
|
0.02903446388244629, |
|
0.022015680313110353 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 274.2401656373489 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1749.42208, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5035.912704 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.172984619140625, |
|
"mean": 2.5864923095703123, |
|
"stdev": 0.022647338867187505, |
|
"p50": 2.5864923095703123, |
|
"p90": 2.6046101806640625, |
|
"p95": 2.6068749145507812, |
|
"p99": 2.6086867016601563, |
|
"values": [ |
|
2.6091396484375, |
|
2.563844970703125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 49.101247867656795 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.173722124099733, |
|
"mean": 0.020449494561659017, |
|
"stdev": 0.0014781158429572163, |
|
"p50": 0.02040934371948242, |
|
"p90": 0.02116689987182617, |
|
"p95": 0.021341594314575194, |
|
"p99": 0.02182475807189941, |
|
"values": [ |
|
0.02229862403869629, |
|
0.02142617607116699, |
|
0.021303295135498047, |
|
0.021361663818359376, |
|
0.020488191604614257, |
|
0.020607999801635742, |
|
0.02040115165710449, |
|
0.02028646469116211, |
|
0.020377599716186523, |
|
0.020824064254760744, |
|
0.020814847946166993, |
|
0.020313087463378905, |
|
0.020642816543579103, |
|
0.020762624740600585, |
|
0.021167104721069335, |
|
0.02124083137512207, |
|
0.021166080474853514, |
|
0.021003263473510742, |
|
0.022004735946655272, |
|
0.02090598487854004, |
|
0.020332544326782227, |
|
0.021255168914794922, |
|
0.021303295135498047, |
|
0.0214466552734375, |
|
0.021179391860961915, |
|
0.021342208862304687, |
|
0.02147327995300293, |
|
0.02146303939819336, |
|
0.02123980712890625, |
|
0.021325824737548828, |
|
0.020969472885131835, |
|
0.021145599365234375, |
|
0.021242879867553712, |
|
0.021341184616088867, |
|
0.020959232330322267, |
|
0.021029888153076173, |
|
0.020599807739257812, |
|
0.02165862464904785, |
|
0.02148454475402832, |
|
0.020254720687866212, |
|
0.020257791519165038, |
|
0.020135936737060548, |
|
0.02086092758178711, |
|
0.02126950454711914, |
|
0.02092748832702637, |
|
0.020769792556762694, |
|
0.02041753578186035, |
|
0.020555776596069338, |
|
0.020164608001708984, |
|
0.02040934371948242, |
|
0.020166656494140626, |
|
0.019740671157836915, |
|
0.02042265510559082, |
|
0.020387840270996094, |
|
0.020404224395751954, |
|
0.020418560028076172, |
|
0.02039193534851074, |
|
0.020445184707641603, |
|
0.02040934371948242, |
|
0.019787776947021486, |
|
0.019752960205078125, |
|
0.01978982353210449, |
|
0.020420608520507814, |
|
0.020179967880249023, |
|
0.01976531219482422, |
|
0.01979897689819336, |
|
0.020574207305908202, |
|
0.020254720687866212, |
|
0.020349952697753908, |
|
0.019569664001464843, |
|
0.019599359512329103, |
|
0.019748863220214845, |
|
0.020328447341918944, |
|
0.020328447341918944, |
|
0.02039193534851074, |
|
0.020554752349853517, |
|
0.020508672714233397, |
|
0.020579328536987306, |
|
0.02044313621520996, |
|
0.02047488021850586, |
|
0.020418624877929687, |
|
0.02016966438293457, |
|
0.02048409652709961, |
|
0.019810304641723633, |
|
0.019753984451293945, |
|
0.01972428894042969, |
|
0.019741695404052736, |
|
0.02069606399536133, |
|
0.019715072631835938, |
|
0.019731456756591798, |
|
0.019747840881347657, |
|
0.02020249557495117, |
|
0.020445184707641603, |
|
0.02025164794921875, |
|
0.02047385597229004, |
|
0.019783679962158202, |
|
0.01978982353210449, |
|
0.020455423355102538, |
|
0.020477951049804686, |
|
0.02048409652709961, |
|
0.020511743545532226, |
|
0.020547584533691408, |
|
0.020551679611206054, |
|
0.020676607131958007, |
|
0.020512767791748047, |
|
0.020396032333374024, |
|
0.020354047775268554, |
|
0.020578304290771485, |
|
0.020503551483154296, |
|
0.020535295486450195, |
|
0.020494335174560546, |
|
0.02036735916137695, |
|
0.020534271240234374, |
|
0.020242431640625, |
|
0.020632575988769532, |
|
0.020533248901367186, |
|
0.02124291229248047, |
|
0.020615135192871094, |
|
0.019770368576049805, |
|
0.019787776947021486, |
|
0.019752960205078125, |
|
0.0208035831451416, |
|
0.020955135345458984, |
|
0.02025164794921875, |
|
0.019769344329833984, |
|
0.020360191345214843, |
|
0.04239769744873047, |
|
0.019763200759887696, |
|
0.019751935958862304, |
|
0.019761152267456054, |
|
0.020091903686523437, |
|
0.02023526382446289, |
|
0.020157440185546875, |
|
0.020518911361694335, |
|
0.020876287460327148, |
|
0.020582399368286132, |
|
0.02046156883239746, |
|
0.020553728103637696, |
|
0.020579328536987306, |
|
0.020600831985473633, |
|
0.020575231552124023, |
|
0.020632575988769532, |
|
0.01978982353210449, |
|
0.019781631469726564, |
|
0.020039680480957032, |
|
0.020616191864013672, |
|
0.020559871673583984, |
|
0.020632575988769532, |
|
0.02053222465515137, |
|
0.02062233543395996, |
|
0.020525056838989256, |
|
0.019775487899780272, |
|
0.019809280395507813, |
|
0.019772415161132813, |
|
0.019768320083618163, |
|
0.020290559768676757, |
|
0.020548608779907225, |
|
0.02062441635131836, |
|
0.019742687225341796, |
|
0.019854335784912108, |
|
0.02020966339111328, |
|
0.019612672805786133, |
|
0.019703807830810546, |
|
0.020566015243530272, |
|
0.021005311965942384, |
|
0.02064588737487793, |
|
0.02039193534851074, |
|
0.02049945640563965, |
|
0.02045132827758789, |
|
0.020539392471313478, |
|
0.020723712921142577, |
|
0.020280319213867186, |
|
0.02048409652709961, |
|
0.020551679611206054, |
|
0.020526079177856444, |
|
0.02056809616088867, |
|
0.02046460723876953, |
|
0.020559871673583984, |
|
0.020140031814575195, |
|
0.021001216888427734, |
|
0.021124095916748048, |
|
0.02068889617919922, |
|
0.021514240264892577, |
|
0.01985843276977539, |
|
0.020135936737060548, |
|
0.01979084777832031, |
|
0.019763200759887696, |
|
0.019746816635131836, |
|
0.019709951400756837, |
|
0.020139007568359374, |
|
0.020762624740600585, |
|
0.020512767791748047, |
|
0.019733503341674806, |
|
0.019755008697509766, |
|
0.020165632247924805, |
|
0.020040704727172853, |
|
0.020510719299316405, |
|
0.02003046417236328, |
|
0.020602880477905275, |
|
0.02065715217590332, |
|
0.020539392471313478, |
|
0.02103398323059082, |
|
0.020580352783203124, |
|
0.01979804801940918, |
|
0.019803104400634767, |
|
0.019759103775024413, |
|
0.019729408264160156, |
|
0.019775487899780272, |
|
0.0198287353515625, |
|
0.01985024070739746, |
|
0.01980620765686035, |
|
0.0198154239654541, |
|
0.019800064086914062, |
|
0.019760128021240234, |
|
0.021198848724365234, |
|
0.02050764846801758, |
|
0.021567487716674806, |
|
0.02061516761779785, |
|
0.020488191604614257, |
|
0.02049843215942383, |
|
0.0204400634765625, |
|
0.0204902400970459, |
|
0.019834880828857423, |
|
0.020620288848876952, |
|
0.01989017677307129, |
|
0.019771392822265626, |
|
0.01978265571594238, |
|
0.019811328887939454, |
|
0.019755008697509766, |
|
0.020376575469970702, |
|
0.01982259178161621, |
|
0.019760128021240234, |
|
0.019793920516967774, |
|
0.019758079528808595, |
|
0.020254720687866212, |
|
0.019788799285888673, |
|
0.0198287353515625, |
|
0.01983180809020996, |
|
0.019763200759887696, |
|
0.019768320083618163, |
|
0.019772415161132813, |
|
0.019742719650268553, |
|
0.019773439407348634, |
|
0.019785728454589844, |
|
0.019745792388916016, |
|
0.019779584884643556, |
|
0.019762176513671875, |
|
0.019783679962158202, |
|
0.019766271591186522, |
|
0.019796991348266603, |
|
0.019793920516967774, |
|
0.019751935958862304, |
|
0.019736576080322265 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.90096412822403 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |