|
{ |
|
"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.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": "9ba9369a2557e53a01378199a9839ec6e82d8bc7", |
|
"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": 1718.276096, |
|
"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.039393152236938477, |
|
"mean": 0.019696576118469238, |
|
"stdev": 0.0003095045089721686, |
|
"p50": 0.019696576118469238, |
|
"p90": 0.019944179725646972, |
|
"p95": 0.01997513017654419, |
|
"p99": 0.019999890537261963, |
|
"values": [ |
|
0.020006080627441407, |
|
0.01938707160949707 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 355.3917167073614 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1718.345728, |
|
"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.85665625, |
|
"mean": 2.428328125, |
|
"stdev": 0.022651123046874888, |
|
"p50": 2.428328125, |
|
"p90": 2.4464490234375, |
|
"p95": 2.4487141357421875, |
|
"p99": 2.4505262255859375, |
|
"values": [ |
|
2.450979248046875, |
|
2.405677001953125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 52.29935719663091 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.856686590194702, |
|
"mean": 0.01919638968456404, |
|
"stdev": 0.001300152350293529, |
|
"p50": 0.019133440017700197, |
|
"p90": 0.01962209243774414, |
|
"p95": 0.019926016235351562, |
|
"p99": 0.0202926082611084, |
|
"values": [ |
|
0.01977552032470703, |
|
0.01950921630859375, |
|
0.019418111801147463, |
|
0.019565568923950196, |
|
0.01943244743347168, |
|
0.019327999114990235, |
|
0.019478527069091797, |
|
0.019277824401855468, |
|
0.019269632339477538, |
|
0.01925529670715332, |
|
0.019486719131469727, |
|
0.01963007926940918, |
|
0.019353599548339845, |
|
0.019304447174072266, |
|
0.01965158462524414, |
|
0.019577856063842772, |
|
0.01966080093383789, |
|
0.01923891258239746, |
|
0.019400703430175782, |
|
0.01982361602783203, |
|
0.019386367797851564, |
|
0.01945599937438965, |
|
0.020420608520507814, |
|
0.01988096046447754, |
|
0.01989017677307129, |
|
0.019870719909667968, |
|
0.019932159423828123, |
|
0.020065280914306642, |
|
0.0202926082611084, |
|
0.020197376251220703, |
|
0.01992192077636719, |
|
0.02022604751586914, |
|
0.02002739143371582, |
|
0.020043840408325197, |
|
0.01999660873413086, |
|
0.02004582405090332, |
|
0.02008883285522461, |
|
0.019696640014648437, |
|
0.01945599937438965, |
|
0.019152896881103516, |
|
0.01924608039855957, |
|
0.019171327590942384, |
|
0.018990079879760743, |
|
0.019164159774780275, |
|
0.019133440017700197, |
|
0.019599359512329103, |
|
0.019614719390869142, |
|
0.01900032043457031, |
|
0.019404800415039062, |
|
0.019771392822265626, |
|
0.01962393569946289, |
|
0.01942425537109375, |
|
0.019184640884399414, |
|
0.019143680572509765, |
|
0.01924403190612793, |
|
0.019249216079711914, |
|
0.019402687072753905, |
|
0.01942732810974121, |
|
0.019312639236450196, |
|
0.01929113578796387, |
|
0.019307519912719725, |
|
0.019343360900878907, |
|
0.019352575302124024, |
|
0.019372032165527343, |
|
0.019309600830078124, |
|
0.01933616065979004, |
|
0.018896896362304686, |
|
0.018790399551391602, |
|
0.0193832950592041, |
|
0.019430400848388672, |
|
0.019305471420288087, |
|
0.01946419143676758, |
|
0.01906585693359375, |
|
0.018728960037231446, |
|
0.01886310386657715, |
|
0.018908159255981445, |
|
0.01884262466430664, |
|
0.018828319549560546, |
|
0.018950111389160158, |
|
0.019340288162231444, |
|
0.01927065658569336, |
|
0.01924608039855957, |
|
0.019293184280395507, |
|
0.01940787124633789, |
|
0.019321855545043946, |
|
0.019503103256225587, |
|
0.019301376342773437, |
|
0.019283967971801756, |
|
0.019301376342773437, |
|
0.019404800415039062, |
|
0.019298303604125978, |
|
0.019345407485961915, |
|
0.01947340774536133, |
|
0.019342336654663086, |
|
0.019336191177368164, |
|
0.018755584716796874, |
|
0.01903001594543457, |
|
0.01930342483520508, |
|
0.01921843147277832, |
|
0.019318784713745117, |
|
0.018868223190307617, |
|
0.018903039932250978, |
|
0.018860031127929687, |
|
0.018732032775878905, |
|
0.01880678367614746, |
|
0.018754560470581053, |
|
0.018743295669555664, |
|
0.018779136657714843, |
|
0.01879347229003906, |
|
0.018754560470581053, |
|
0.018773056030273436, |
|
0.018799552917480467, |
|
0.01879756736755371, |
|
0.01879654312133789, |
|
0.018765823364257812, |
|
0.01879654312133789, |
|
0.018761728286743166, |
|
0.018783231735229493, |
|
0.018937856674194335, |
|
0.018786304473876952, |
|
0.018906112670898437, |
|
0.018919424057006837, |
|
0.018749439239501953, |
|
0.019079168319702147, |
|
0.018752511978149415, |
|
0.018735103607177735, |
|
0.038816768646240236, |
|
0.019268608093261717, |
|
0.01859071922302246, |
|
0.01862553596496582, |
|
0.018552831649780274, |
|
0.018553855895996094, |
|
0.018634752273559572, |
|
0.01860812759399414, |
|
0.01861529541015625, |
|
0.018687999725341797, |
|
0.01864499282836914, |
|
0.01881804847717285, |
|
0.018709503173828124, |
|
0.018679807662963867, |
|
0.018678783416748047, |
|
0.0186746883392334, |
|
0.01860505676269531, |
|
0.01864908790588379, |
|
0.018667520523071288, |
|
0.018708480834960937, |
|
0.018710527420043945, |
|
0.01864499282836914, |
|
0.018659328460693358, |
|
0.018726911544799805, |
|
0.01868294334411621, |
|
0.018614208221435547, |
|
0.01878937530517578, |
|
0.01865318489074707, |
|
0.01883545684814453, |
|
0.01865318489074707, |
|
0.018678783416748047, |
|
0.01886617660522461, |
|
0.019298303604125978, |
|
0.01930342483520508, |
|
0.019286016464233398, |
|
0.01923891258239746, |
|
0.018696256637573242, |
|
0.018665407180786135, |
|
0.018663423538208008, |
|
0.018662399291992187, |
|
0.0186429443359375, |
|
0.018742271423339844, |
|
0.018674720764160158, |
|
0.018673631668090822, |
|
0.018739200592041014, |
|
0.01859174346923828, |
|
0.01862041664123535, |
|
0.01942937660217285, |
|
0.01879756736755371, |
|
0.019308544158935546, |
|
0.0202926082611084, |
|
0.0195020809173584, |
|
0.01927475166320801, |
|
0.01945702362060547, |
|
0.019354623794555666, |
|
0.01927168083190918, |
|
0.018663423538208008, |
|
0.01878937530517578, |
|
0.01883852767944336, |
|
0.01883852767944336, |
|
0.018811904907226562, |
|
0.01879859161376953, |
|
0.018844671249389648, |
|
0.01882009506225586, |
|
0.01882009506225586, |
|
0.018911231994628908, |
|
0.019224576950073242, |
|
0.019146751403808594, |
|
0.019098623275756836, |
|
0.01883955192565918, |
|
0.018851839065551757, |
|
0.01885081672668457, |
|
0.018851839065551757, |
|
0.01883955192565918, |
|
0.018767871856689454, |
|
0.01880985641479492, |
|
0.018634752273559572, |
|
0.018588672637939452, |
|
0.018568191528320312, |
|
0.019120128631591796, |
|
0.019292160034179686, |
|
0.01882931137084961, |
|
0.018701311111450195, |
|
0.018562047958374024, |
|
0.01866035270690918, |
|
0.0188538875579834, |
|
0.0188272647857666, |
|
0.018874368667602538, |
|
0.018808832168579103, |
|
0.018701311111450195, |
|
0.018592767715454102, |
|
0.0186060791015625, |
|
0.018717695236206054, |
|
0.01923993682861328, |
|
0.01987276840209961, |
|
0.019013631820678712, |
|
0.018923519134521484, |
|
0.019357696533203125, |
|
0.019368959426879884, |
|
0.019309568405151366, |
|
0.01939148712158203, |
|
0.019294208526611328, |
|
0.01938739204406738, |
|
0.019361791610717775, |
|
0.01925939178466797, |
|
0.019449855804443358, |
|
0.019314687728881837, |
|
0.019367935180664063, |
|
0.019276800155639647, |
|
0.019343360900878907, |
|
0.01927577590942383, |
|
0.019344383239746094, |
|
0.018913280487060546, |
|
0.018719743728637696, |
|
0.01899519920349121, |
|
0.0194969596862793, |
|
0.019310592651367187, |
|
0.018893823623657227, |
|
0.019320831298828126, |
|
0.019302400588989257, |
|
0.01940275192260742, |
|
0.01882624053955078, |
|
0.018766847610473633, |
|
0.019113983154296875, |
|
0.019335168838500977, |
|
0.01883545684814453, |
|
0.0188538875579834 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 52.09312878265373 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |