|
{ |
|
"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": "74a207404e8d4524d1fdc4aa23789694f9eef347", |
|
"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": 1703.632896, |
|
"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.04071708679199219, |
|
"mean": 0.020358543395996093, |
|
"stdev": 0.0008383522033691415, |
|
"p50": 0.020358543395996093, |
|
"p90": 0.021029225158691406, |
|
"p95": 0.021113060379028322, |
|
"p99": 0.021180128555297852, |
|
"values": [ |
|
0.021196895599365235, |
|
0.019520191192626952 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 343.8359937566401 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1703.71072, |
|
"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.9845209960937495, |
|
"mean": 2.4922604980468748, |
|
"stdev": 0.03530932617187488, |
|
"p50": 2.4922604980468748, |
|
"p90": 2.520507958984375, |
|
"p95": 2.5240388916015624, |
|
"p99": 2.526863637695312, |
|
"values": [ |
|
2.52756982421875, |
|
2.456951171875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.95775505791906 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.983474189758297, |
|
"mean": 0.019697526441732414, |
|
"stdev": 0.0013307183085213379, |
|
"p50": 0.01982259178161621, |
|
"p90": 0.020457881546020507, |
|
"p95": 0.020566835021972655, |
|
"p99": 0.020841471786499022, |
|
"values": [ |
|
0.02089574432373047, |
|
0.0204902400970459, |
|
0.02062335968017578, |
|
0.020497407913208008, |
|
0.020521984100341797, |
|
0.020365312576293947, |
|
0.020478975296020507, |
|
0.02026188850402832, |
|
0.020351999282836913, |
|
0.02045849609375, |
|
0.020690944671630858, |
|
0.020580352783203124, |
|
0.02030899238586426, |
|
0.02082918357849121, |
|
0.020358144760131838, |
|
0.020634624481201173, |
|
0.020612096786499022, |
|
0.020365312576293947, |
|
0.020557823181152343, |
|
0.020555776596069338, |
|
0.020271104812622072, |
|
0.020331520080566406, |
|
0.020314111709594726, |
|
0.020295679092407228, |
|
0.02027008056640625, |
|
0.020346879959106445, |
|
0.02066227149963379, |
|
0.020733951568603515, |
|
0.02085478401184082, |
|
0.020527103424072265, |
|
0.020633600234985353, |
|
0.02047385597229004, |
|
0.020494335174560546, |
|
0.020434944152832032, |
|
0.020726783752441406, |
|
0.02026803207397461, |
|
0.020349952697753908, |
|
0.020344831466674804, |
|
0.02031718444824219, |
|
0.02030284881591797, |
|
0.020150272369384766, |
|
0.02045849609375, |
|
0.020155391693115234, |
|
0.02031001663208008, |
|
0.020380672454833985, |
|
0.020199424743652345, |
|
0.01902079963684082, |
|
0.01885593605041504, |
|
0.018768896102905275, |
|
0.018754560470581053, |
|
0.018718719482421875, |
|
0.018755584716796874, |
|
0.018726911544799805, |
|
0.018717695236206054, |
|
0.019703807830810546, |
|
0.01971609687805176, |
|
0.019869695663452147, |
|
0.018922496795654296, |
|
0.018882560729980468, |
|
0.018916351318359375, |
|
0.01886310386657715, |
|
0.018944000244140623, |
|
0.018893823623657227, |
|
0.01887129592895508, |
|
0.020324352264404297, |
|
0.020392959594726562, |
|
0.020013088226318358, |
|
0.019931104660034178, |
|
0.01986355209350586, |
|
0.01985536003112793, |
|
0.01984716796875, |
|
0.01990553665161133, |
|
0.019878911972045898, |
|
0.01984921646118164, |
|
0.018916351318359375, |
|
0.01887129592895508, |
|
0.019917823791503905, |
|
0.019983360290527344, |
|
0.01984409523010254, |
|
0.019920896530151368, |
|
0.019915775299072267, |
|
0.019817472457885742, |
|
0.01987276840209961, |
|
0.01986764717102051, |
|
0.019870719909667968, |
|
0.019854335784912108, |
|
0.01982361602783203, |
|
0.01987481689453125, |
|
0.019893247604370116, |
|
0.019912704467773438, |
|
0.019818496704101563, |
|
0.018927616119384767, |
|
0.018950143814086915, |
|
0.018892799377441406, |
|
0.018721792221069337, |
|
0.01865318489074707, |
|
0.01880166435241699, |
|
0.018918399810791017, |
|
0.01883340835571289, |
|
0.01885081672668457, |
|
0.019834880828857423, |
|
0.019817472457885742, |
|
0.019793920516967774, |
|
0.01980723190307617, |
|
0.01984921646118164, |
|
0.019842048645019532, |
|
0.01983180809020996, |
|
0.01983692741394043, |
|
0.020140031814575195, |
|
0.019810304641723633, |
|
0.01982259178161621, |
|
0.019883007049560548, |
|
0.019835968017578125, |
|
0.019874752044677733, |
|
0.020290559768676757, |
|
0.020239360809326173, |
|
0.02045849609375, |
|
0.020477951049804686, |
|
0.019998720169067383, |
|
0.019949567794799804, |
|
0.019895296096801757, |
|
0.019927040100097656, |
|
0.019891199111938478, |
|
0.019803136825561524, |
|
0.01985228729248047, |
|
0.01986867141723633, |
|
0.03832729721069336, |
|
0.018705408096313478, |
|
0.018626560211181642, |
|
0.01878835105895996, |
|
0.018684928894042968, |
|
0.019365888595581054, |
|
0.019689472198486328, |
|
0.01967001533508301, |
|
0.018703359603881836, |
|
0.018729984283447267, |
|
0.0188221435546875, |
|
0.01879449653625488, |
|
0.018948095321655273, |
|
0.019700735092163087, |
|
0.019705856323242187, |
|
0.019720191955566405, |
|
0.019738624572753907, |
|
0.019655679702758787, |
|
0.019732479095458985, |
|
0.019758079528808595, |
|
0.019680255889892577, |
|
0.01971609687805176, |
|
0.019735551834106444, |
|
0.019764223098754884, |
|
0.019735551834106444, |
|
0.018747392654418944, |
|
0.018876415252685547, |
|
0.019713024139404296, |
|
0.018817024230957033, |
|
0.018786304473876952, |
|
0.018704383850097657, |
|
0.018593791961669923, |
|
0.018556928634643553, |
|
0.018750463485717773, |
|
0.01880575942993164, |
|
0.018728960037231446, |
|
0.018759679794311524, |
|
0.01902079963684082, |
|
0.018755584716796874, |
|
0.018770944595336913, |
|
0.01946828842163086, |
|
0.019759103775024413, |
|
0.020305919647216796, |
|
0.019735551834106444, |
|
0.01970278358459473, |
|
0.01965056037902832, |
|
0.018761728286743166, |
|
0.018729984283447267, |
|
0.018711551666259766, |
|
0.018713600158691408, |
|
0.01928704071044922, |
|
0.019710975646972655, |
|
0.019731456756591798, |
|
0.019689472198486328, |
|
0.01968230438232422, |
|
0.019718143463134767, |
|
0.019700735092163087, |
|
0.01887539291381836, |
|
0.018941951751708985, |
|
0.018898944854736328, |
|
0.018884607315063476, |
|
0.018917375564575196, |
|
0.018928640365600585, |
|
0.0189040641784668, |
|
0.018896896362304686, |
|
0.0189040641784668, |
|
0.018908159255981445, |
|
0.01886310386657715, |
|
0.019588096618652344, |
|
0.01884671974182129, |
|
0.01884569549560547, |
|
0.018913280487060546, |
|
0.018737152099609376, |
|
0.0186746883392334, |
|
0.019885055541992186, |
|
0.01984819221496582, |
|
0.01984102439880371, |
|
0.019974143981933593, |
|
0.01989836883544922, |
|
0.019877887725830077, |
|
0.01982361602783203, |
|
0.019883007049560548, |
|
0.019910655975341796, |
|
0.019804159164428712, |
|
0.020291584014892578, |
|
0.019946495056152345, |
|
0.01984716796875, |
|
0.019919872283935547, |
|
0.019842048645019532, |
|
0.019895296096801757, |
|
0.019264511108398438, |
|
0.019919872283935547, |
|
0.01883852767944336, |
|
0.018880512237548826, |
|
0.020455423355102538, |
|
0.01985843276977539, |
|
0.019931135177612306, |
|
0.019896320343017578, |
|
0.01985843276977539, |
|
0.019870719909667968, |
|
0.019885055541992186, |
|
0.019768320083618163, |
|
0.019910655975341796, |
|
0.01988915252685547, |
|
0.019957759857177734, |
|
0.01990656089782715, |
|
0.019885055541992186, |
|
0.019843072891235353, |
|
0.018897920608520507, |
|
0.01885593605041504, |
|
0.01884160041809082, |
|
0.01887129592895508, |
|
0.018897920608520507, |
|
0.01883955192565918, |
|
0.0187064323425293, |
|
0.018610176086425782, |
|
0.018754560470581053, |
|
0.01882009506225586, |
|
0.0188272647857666, |
|
0.01883750343322754, |
|
0.020191232681274415, |
|
0.01983897590637207, |
|
0.019862527847290038, |
|
0.019587072372436523, |
|
0.019766271591186522, |
|
0.01987481689453125, |
|
0.019842048645019532 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 50.76779579192935 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |