|
{ |
|
"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": "940fde8dafaecb8f17b588c5078291f1c1a420c8", |
|
"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": 1706.070016, |
|
"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.04067040061950684, |
|
"mean": 0.02033520030975342, |
|
"stdev": 0.0006261434555053721, |
|
"p50": 0.02033520030975342, |
|
"p90": 0.020836115074157717, |
|
"p95": 0.020898729419708252, |
|
"p99": 0.020948820896148683, |
|
"values": [ |
|
0.02096134376525879, |
|
0.019709056854248046 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 344.2306883322204 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1706.090496, |
|
"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.956599609375, |
|
"mean": 2.4782998046875, |
|
"stdev": 0.039773681640625114, |
|
"p50": 2.4782998046875, |
|
"p90": 2.51011875, |
|
"p95": 2.5140961181640624, |
|
"p99": 2.5172780126953125, |
|
"values": [ |
|
2.518073486328125, |
|
2.438526123046875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.244808945144555 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.955872259140021, |
|
"mean": 0.01958842790173919, |
|
"stdev": 0.0013144451874351104, |
|
"p50": 0.019516416549682617, |
|
"p90": 0.020218470001220703, |
|
"p95": 0.020321279907226562, |
|
"p99": 0.021021122512817382, |
|
"values": [ |
|
0.019998720169067383, |
|
0.02016972732543945, |
|
0.02066431999206543, |
|
0.019631103515625, |
|
0.01958502388000488, |
|
0.019400703430175782, |
|
0.02102272033691406, |
|
0.020257791519165038, |
|
0.020173824310302735, |
|
0.019523584365844726, |
|
0.019631103515625, |
|
0.02005504035949707, |
|
0.02021887969970703, |
|
0.020304895401000975, |
|
0.019713024139404296, |
|
0.019705856323242187, |
|
0.02023628807067871, |
|
0.0217262077331543, |
|
0.021019647598266602, |
|
0.020495359420776366, |
|
0.020239360809326173, |
|
0.02025267219543457, |
|
0.02021683120727539, |
|
0.01940275192260742, |
|
0.020140031814575195, |
|
0.01946931266784668, |
|
0.02031718444824219, |
|
0.020945920944213867, |
|
0.020559871673583984, |
|
0.020274175643920898, |
|
0.019732479095458985, |
|
0.020115455627441405, |
|
0.02027008056640625, |
|
0.020329471588134765, |
|
0.020633600234985353, |
|
0.020303871154785155, |
|
0.020271104812622072, |
|
0.020297727584838866, |
|
0.020175872802734376, |
|
0.020144128799438478, |
|
0.020048896789550782, |
|
0.020113407135009767, |
|
0.02012057685852051, |
|
0.019143680572509765, |
|
0.01927884864807129, |
|
0.019360767364501954, |
|
0.01986867141723633, |
|
0.019997695922851562, |
|
0.019954687118530275, |
|
0.01993011283874512, |
|
0.018960384368896483, |
|
0.019819520950317384, |
|
0.01946828842163086, |
|
0.019733503341674806, |
|
0.019719167709350584, |
|
0.019689472198486328, |
|
0.019862527847290038, |
|
0.019449855804443358, |
|
0.019546112060546874, |
|
0.01946214485168457, |
|
0.018907136917114258, |
|
0.019056640625, |
|
0.0198656005859375, |
|
0.020327423095703127, |
|
0.020039680480957032, |
|
0.01961881637573242, |
|
0.019581951141357423, |
|
0.019893247604370116, |
|
0.020392959594726562, |
|
0.019923967361450197, |
|
0.0198287353515625, |
|
0.01987993621826172, |
|
0.019994623184204103, |
|
0.019958784103393554, |
|
0.019572736740112305, |
|
0.019508224487304687, |
|
0.019546112060546874, |
|
0.02002742385864258, |
|
0.019822559356689452, |
|
0.019538944244384765, |
|
0.019792896270751953, |
|
0.02007244873046875, |
|
0.020915199279785156, |
|
0.02005299186706543, |
|
0.01988812828063965, |
|
0.01909350395202637, |
|
0.01886720085144043, |
|
0.01965977668762207, |
|
0.019588096618652344, |
|
0.019664896011352538, |
|
0.01983692741394043, |
|
0.01985536003112793, |
|
0.01979903984069824, |
|
0.01965158462524414, |
|
0.018934783935546876, |
|
0.01909350395202637, |
|
0.01907302474975586, |
|
0.019619840621948242, |
|
0.020059135437011717, |
|
0.019704832077026366, |
|
0.019512319564819337, |
|
0.019552255630493166, |
|
0.019737600326538086, |
|
0.020000768661499024, |
|
0.01985024070739746, |
|
0.019076095581054688, |
|
0.01905766487121582, |
|
0.0200263671875, |
|
0.019851264953613282, |
|
0.019791872024536132, |
|
0.019803136825561524, |
|
0.019825664520263672, |
|
0.019842048645019532, |
|
0.01984409523010254, |
|
0.019558399200439454, |
|
0.019490816116333007, |
|
0.018880512237548826, |
|
0.0188590087890625, |
|
0.019554304122924804, |
|
0.019516416549682617, |
|
0.019594240188598632, |
|
0.019573759078979493, |
|
0.01906585693359375, |
|
0.019112960815429687, |
|
0.019139583587646485, |
|
0.019805183410644533, |
|
0.03877478408813476, |
|
0.01965977668762207, |
|
0.019732479095458985, |
|
0.018989055633544923, |
|
0.018868223190307617, |
|
0.018931711196899414, |
|
0.019110912322998046, |
|
0.018759679794311524, |
|
0.018709503173828124, |
|
0.01900339126586914, |
|
0.019736576080322265, |
|
0.01988403129577637, |
|
0.02025881576538086, |
|
0.01982361602783203, |
|
0.01903104019165039, |
|
0.018960384368896483, |
|
0.018959360122680666, |
|
0.019883007049560548, |
|
0.02004684829711914, |
|
0.019795967102050782, |
|
0.018982912063598634, |
|
0.018881536483764647, |
|
0.019887104034423828, |
|
0.019779584884643556, |
|
0.019714048385620117, |
|
0.019744768142700195, |
|
0.019725311279296876, |
|
0.019984384536743165, |
|
0.01984819221496582, |
|
0.019769344329833984, |
|
0.018970624923706055, |
|
0.01942527961730957, |
|
0.01978265571594238, |
|
0.01978982353210449, |
|
0.01979084777832031, |
|
0.019712032318115233, |
|
0.019708896636962892, |
|
0.019736576080322265, |
|
0.019732511520385743, |
|
0.019745759963989258, |
|
0.01970790481567383, |
|
0.018919424057006837, |
|
0.018980863571166993, |
|
0.018880512237548826, |
|
0.018899967193603515, |
|
0.018956287384033203, |
|
0.018964479446411133, |
|
0.018896896362304686, |
|
0.018960384368896483, |
|
0.018939903259277344, |
|
0.018961408615112304, |
|
0.018958335876464845, |
|
0.018945024490356444, |
|
0.018972671508789063, |
|
0.018946048736572265, |
|
0.018945024490356444, |
|
0.018915327072143554, |
|
0.01906585693359375, |
|
0.019125247955322267, |
|
0.019092479705810548, |
|
0.0191016960144043, |
|
0.019134464263916014, |
|
0.019129344940185547, |
|
0.019100671768188478, |
|
0.019075071334838867, |
|
0.019147775650024415, |
|
0.019079168319702147, |
|
0.01908531188964844, |
|
0.01906790351867676, |
|
0.019083263397216797, |
|
0.019115007400512696, |
|
0.019117055892944337, |
|
0.019103744506835937, |
|
0.019102720260620116, |
|
0.01904742431640625, |
|
0.019078144073486326, |
|
0.01904947280883789, |
|
0.01904947280883789, |
|
0.019083263397216797, |
|
0.019179519653320314, |
|
0.01904537582397461, |
|
0.01905254364013672, |
|
0.019079168319702147, |
|
0.01907302474975586, |
|
0.019070976257324217, |
|
0.019090431213378906, |
|
0.01909350395202637, |
|
0.01908531188964844, |
|
0.01908940887451172, |
|
0.01904435157775879, |
|
0.01903718376159668, |
|
0.019075071334838867, |
|
0.01907302474975586, |
|
0.01904025650024414, |
|
0.01906483268737793, |
|
0.019817472457885742, |
|
0.019102720260620116, |
|
0.019098623275756836, |
|
0.019100671768188478, |
|
0.01904742431640625, |
|
0.019091455459594727, |
|
0.01903615951538086, |
|
0.019078144073486326, |
|
0.019116031646728517, |
|
0.01903513526916504, |
|
0.01904128074645996, |
|
0.019103744506835937, |
|
0.019001344680786132, |
|
0.01904128074645996, |
|
0.01904332733154297, |
|
0.01902899169921875, |
|
0.01906790351867676, |
|
0.0191016960144043, |
|
0.01903513526916504, |
|
0.019088384628295898, |
|
0.019042303085327148, |
|
0.01900441551208496, |
|
0.01904435157775879, |
|
0.01904332733154297, |
|
0.019084287643432618, |
|
0.019075071334838867, |
|
0.01906790351867676, |
|
0.01906175994873047, |
|
0.019009536743164062, |
|
0.01905356788635254, |
|
0.01904844856262207, |
|
0.01906483268737793 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 51.05054908011344 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |