|
{ |
|
"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": null, |
|
"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": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa", |
|
"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": 1706.745856, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5034.576896 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.046648672103881836, |
|
"mean": 0.023324336051940918, |
|
"stdev": 0.0032374563217163095, |
|
"p50": 0.023324336051940918, |
|
"p90": 0.025914301109313965, |
|
"p95": 0.026238046741485596, |
|
"p99": 0.0264970432472229, |
|
"values": [ |
|
0.026561792373657227, |
|
0.02008687973022461 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 300.1157239550877 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1706.831872, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5034.577408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.9797666015625, |
|
"mean": 2.48988330078125, |
|
"stdev": 0.019831787109374943, |
|
"p50": 2.48988330078125, |
|
"p90": 2.50574873046875, |
|
"p95": 2.5077319091796872, |
|
"p99": 2.5093184521484373, |
|
"values": [ |
|
2.509715087890625, |
|
2.470051513671875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.006406589478004 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.9799874515533435, |
|
"mean": 0.01968374486779978, |
|
"stdev": 0.001364479850770183, |
|
"p50": 0.019294208526611328, |
|
"p90": 0.02054410171508789, |
|
"p95": 0.020788633346557617, |
|
"p99": 0.02107977722167969, |
|
"values": [ |
|
0.019759103775024413, |
|
0.019743743896484374, |
|
0.019842048645019532, |
|
0.020601856231689454, |
|
0.02071244812011719, |
|
0.020784128189086915, |
|
0.020816896438598635, |
|
0.020521984100341797, |
|
0.02062950325012207, |
|
0.02079539108276367, |
|
0.020831232070922853, |
|
0.020939775466918945, |
|
0.02064691162109375, |
|
0.020950016021728517, |
|
0.021007360458374022, |
|
0.02110054397583008, |
|
0.020948991775512696, |
|
0.02069606399536133, |
|
0.02059775924682617, |
|
0.02064691162109375, |
|
0.02083737564086914, |
|
0.020504575729370117, |
|
0.02058137512207031, |
|
0.020567039489746093, |
|
0.020579328536987306, |
|
0.019768320083618163, |
|
0.01962495994567871, |
|
0.02000383949279785, |
|
0.020057088851928712, |
|
0.02002739143371582, |
|
0.0200130558013916, |
|
0.019894271850585937, |
|
0.019795967102050782, |
|
0.019721216201782226, |
|
0.019599359512329103, |
|
0.020187135696411132, |
|
0.019474431991577147, |
|
0.019532800674438477, |
|
0.019547136306762695, |
|
0.019547136306762695, |
|
0.019552255630493166, |
|
0.019697664260864257, |
|
0.020420608520507814, |
|
0.02106060791015625, |
|
0.020299776077270508, |
|
0.020346879959106445, |
|
0.02087731170654297, |
|
0.02039091110229492, |
|
0.020368383407592772, |
|
0.019950592041015625, |
|
0.019334144592285156, |
|
0.019968000411987305, |
|
0.019991552352905274, |
|
0.02006425666809082, |
|
0.020050943374633787, |
|
0.02002227210998535, |
|
0.020493312835693358, |
|
0.020150272369384766, |
|
0.020164608001708984, |
|
0.019159040451049804, |
|
0.019147775650024415, |
|
0.019309568405151366, |
|
0.019294208526611328, |
|
0.019148799896240236, |
|
0.019158016204833983, |
|
0.019147775650024415, |
|
0.019145727157592773, |
|
0.019481599807739256, |
|
0.019168256759643554, |
|
0.019151872634887695, |
|
0.019211263656616212, |
|
0.019126272201538085, |
|
0.01942732810974121, |
|
0.019148799896240236, |
|
0.01923583984375, |
|
0.019162111282348633, |
|
0.019178495407104493, |
|
0.019158016204833983, |
|
0.019104768753051758, |
|
0.019173376083374022, |
|
0.019128320693969726, |
|
0.019086336135864256, |
|
0.019106815338134766, |
|
0.01942527961730957, |
|
0.019084287643432618, |
|
0.0190699520111084, |
|
0.020109312057495117, |
|
0.02005606460571289, |
|
0.020503551483154296, |
|
0.020137983322143553, |
|
0.020147199630737304, |
|
0.020199424743652345, |
|
0.02021683120727539, |
|
0.020549631118774413, |
|
0.019190784454345702, |
|
0.019128320693969726, |
|
0.01908940887451172, |
|
0.019163135528564454, |
|
0.01924710464477539, |
|
0.019154943466186524, |
|
0.019140607833862306, |
|
0.019152896881103516, |
|
0.019144704818725586, |
|
0.019107839584350587, |
|
0.019450912475585936, |
|
0.01912009620666504, |
|
0.019134464263916014, |
|
0.019134464263916014, |
|
0.019107839584350587, |
|
0.01925939178466797, |
|
0.01908940887451172, |
|
0.019139583587646485, |
|
0.019133440017700197, |
|
0.01916524887084961, |
|
0.019224544525146485, |
|
0.019425247192382814, |
|
0.019131391525268555, |
|
0.019110912322998046, |
|
0.019161088943481445, |
|
0.01919795227050781, |
|
0.01927987289428711, |
|
0.01946828842163086, |
|
0.01982259178161621, |
|
0.018942975997924806, |
|
0.018940927505493164, |
|
0.019153919219970703, |
|
0.039218177795410154, |
|
0.018965503692626954, |
|
0.019191808700561523, |
|
0.02006630325317383, |
|
0.019973119735717772, |
|
0.020168703079223634, |
|
0.01999667167663574, |
|
0.019952640533447266, |
|
0.02001408004760742, |
|
0.019979263305664064, |
|
0.02030182456970215, |
|
0.019956735610961913, |
|
0.020084735870361328, |
|
0.019066879272460938, |
|
0.01900851249694824, |
|
0.01929113578796387, |
|
0.01902079963684082, |
|
0.01903104019165039, |
|
0.01904128074645996, |
|
0.019066879272460938, |
|
0.019215360641479492, |
|
0.01899929618835449, |
|
0.018989055633544923, |
|
0.019058687210083008, |
|
0.018991104125976564, |
|
0.01901158332824707, |
|
0.01927884864807129, |
|
0.01902796745300293, |
|
0.019019775390625, |
|
0.01904742431640625, |
|
0.01902592086791992, |
|
0.019338239669799806, |
|
0.019014656066894533, |
|
0.01900032043457031, |
|
0.019013631820678712, |
|
0.01902694320678711, |
|
0.01897881507873535, |
|
0.019323904037475585, |
|
0.019050495147705078, |
|
0.019050495147705078, |
|
0.01905561637878418, |
|
0.01903615951538086, |
|
0.01920921516418457, |
|
0.019009536743164062, |
|
0.01908940887451172, |
|
0.018984960556030273, |
|
0.019070976257324217, |
|
0.019076095581054688, |
|
0.01963212776184082, |
|
0.021134336471557616, |
|
0.020117504119873047, |
|
0.020090879440307616, |
|
0.019153919219970703, |
|
0.019417087554931642, |
|
0.019115007400512696, |
|
0.019006464004516603, |
|
0.019014656066894533, |
|
0.019183616638183593, |
|
0.019192832946777344, |
|
0.01941606330871582, |
|
0.020151296615600587, |
|
0.02011238479614258, |
|
0.02019327926635742, |
|
0.020213760375976563, |
|
0.020376575469970702, |
|
0.020405248641967775, |
|
0.020242431640625, |
|
0.020145151138305666, |
|
0.019174400329589843, |
|
0.019983360290527344, |
|
0.020586496353149415, |
|
0.02021887969970703, |
|
0.020159488677978517, |
|
0.019195903778076173, |
|
0.019123199462890626, |
|
0.01941196823120117, |
|
0.019131391525268555, |
|
0.019166208267211913, |
|
0.019144704818725586, |
|
0.019153919219970703, |
|
0.019355648040771483, |
|
0.01922969627380371, |
|
0.01924505615234375, |
|
0.019137535095214844, |
|
0.01919795227050781, |
|
0.019155967712402345, |
|
0.019301376342773437, |
|
0.01924710464477539, |
|
0.019176448822021484, |
|
0.019185663223266602, |
|
0.019172351837158205, |
|
0.019451904296875, |
|
0.019153919219970703, |
|
0.019147775650024415, |
|
0.01921023941040039, |
|
0.01920102310180664, |
|
0.019382272720336914, |
|
0.019146751403808594, |
|
0.019152896881103516, |
|
0.019096576690673828, |
|
0.020208639144897463, |
|
0.020074495315551756, |
|
0.020503551483154296, |
|
0.020101119995117187, |
|
0.02019327926635742, |
|
0.020163583755493163, |
|
0.01977446365356445, |
|
0.020380672454833985, |
|
0.019207168579101562, |
|
0.019171327590942384, |
|
0.019124223709106446, |
|
0.019098623275756836, |
|
0.019430400848388672, |
|
0.019125247955322267, |
|
0.020349952697753908, |
|
0.02028544044494629, |
|
0.020148223876953125, |
|
0.019264511108398438, |
|
0.019301376342773437, |
|
0.01924300765991211, |
|
0.01938739204406738, |
|
0.019188735961914064, |
|
0.019107839584350587, |
|
0.019404800415039062, |
|
0.019159040451049804, |
|
0.019119104385375976, |
|
0.019152896881103516 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.80334086405879 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |