{ "config": { "name": "pytorch-llama", "backend": { "name": "pytorch", "version": "2.2.0", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model": "meta-llama/Llama-2-7b-hf", "processor": "meta-llama/Llama-2-7b-hf", "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": {}, "quantization_scheme": "gptq", "quantization_config": { "bits": 4, "use_exllama ": true, "version": 2, "model_seqlen": 256 }, "deepspeed_inference": false, "deepspeed_inference_config": {}, "tensor_parallel": false, "peft_type": null, "peft_config": {} }, "scenario": { "name": "inference", "_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario", "iterations": 10, "duration": 10, "warmup_runs": 10, "input_shapes": { "batch_size": 1, "num_choices": 2, "sequence_length": 128 }, "new_tokens": null, "latency": true, "memory": true, "energy": false, "forward_kwargs": {}, "generate_kwargs": { "max_new_tokens": 32, "min_new_tokens": 32 }, "call_kwargs": {} }, "launcher": { "name": "process", "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", "device_isolation": true, "device_isolation_action": "warn", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7742 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 540671.627264, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.4.0-166-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A100-SXM4-80GB", "NVIDIA A100-SXM4-80GB", "NVIDIA A100-SXM4-80GB", "NVIDIA DGX Display", "NVIDIA A100-SXM4-80GB" ], "gpu_count": 5, "gpu_vram_mb": 347892350976, "optimum_benchmark_version": "0.2.1", "optimum_benchmark_commit": "347e13ca9f7f904f55669603cfb9f0b6c7e8672c", "transformers_version": "4.41.1", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": null, "diffusers_commit": null, "optimum_version": "1.20.0", "optimum_commit": null, "timm_version": null, "timm_commit": null, "peft_version": "0.11.1", "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 5108.174848, "max_global_vram": 5880.348672, "max_process_vram": 4953.473024, "max_reserved": 4418.699264, "max_allocated": 4136.044544 }, "latency": { "unit": "s", "count": 12, "total": 0.38714169311523444, "mean": 0.03226180775960287, "stdev": 0.0002123189897692693, "p50": 0.03217412757873535, "p90": 0.0324527961730957, "p95": 0.03263871726989746, "p99": 0.032809521408081056, "values": [ 0.032852222442626956, 0.03216854476928711, 0.0321492805480957, 0.03205628967285156, 0.03214527893066406, 0.03221097564697266, 0.03235168075561524, 0.03234764862060547, 0.0321797103881836, 0.03214131164550781, 0.032074718475341796, 0.03246403121948242 ] }, "throughput": { "unit": "tokens/s", "value": 3967.5396045313123 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 5108.174848, "max_global_vram": 5880.348672, "max_process_vram": 4953.473024, "max_reserved": 4418.699264, "max_allocated": 4224.20736 }, "latency": { "unit": "s", "count": 12, "total": 10.334404418945311, "mean": 0.8612003682454428, "stdev": 0.005959540636071755, "p50": 0.8589834899902344, "p90": 0.8693151367187499, "p95": 0.8710843841552735, "p99": 0.8725764471435548, "values": [ 0.8695584106445312, 0.8585442504882812, 0.8555767211914063, 0.8587994384765625, 0.8558518676757813, 0.8671256713867187, 0.872949462890625, 0.8581598510742188, 0.8591675415039063, 0.8526151733398437, 0.8601669311523438, 0.8658890991210938 ] }, "throughput": { "unit": "tokens/s", "value": 35.9962688626777 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 371, "total": 10.65954202270507, "mean": 0.02873191919866598, "stdev": 0.0055210554236577655, "p50": 0.02770636749267578, "p90": 0.02858291244506836, "p95": 0.028790271759033204, "p99": 0.06029834213256836, "values": [ 0.02916454315185547, 0.029051904678344728, 0.02956287956237793, 0.02814873504638672, 0.027793407440185547, 0.027867136001586915, 0.027782144546508788, 0.027741184234619142, 0.02775961685180664, 0.027825151443481445, 0.027663360595703124, 0.027633663177490234, 0.02851737594604492, 0.028933120727539063, 0.02816716766357422, 0.028104703903198244, 0.02818662452697754, 0.02772889518737793, 0.027695104598999022, 0.027716608047485353, 0.0279418888092041, 0.0277258243560791, 0.02772991943359375, 0.027701248168945314, 0.027692031860351563, 0.027841535568237305, 0.027816959381103516, 0.027611135482788086, 0.027494400024414063, 0.027433984756469725, 0.05984153747558594, 0.0273438720703125, 0.027488256454467775, 0.027407360076904298, 0.02755072021484375, 0.027645952224731447, 0.027673599243164062, 0.027599872589111327, 0.02779136085510254, 0.027874303817749024, 0.02769817543029785, 0.02791731262207031, 0.027667455673217774, 0.027630592346191408, 0.02749235153198242, 0.027661312103271486, 0.02754457664489746, 0.027810815811157227, 0.027707391738891602, 0.027877376556396483, 0.027790336608886718, 0.027982847213745117, 0.02775347137451172, 0.027793407440185547, 0.027638784408569338, 0.028293119430541993, 0.027635711669921875, 0.027657215118408202, 0.0276889591217041, 0.027757568359375, 0.027571199417114257, 0.0599920654296875, 0.02752921676635742, 0.027490304946899413, 0.027476991653442383, 0.027501567840576172, 0.027568128585815428, 0.027486207962036133, 0.027441152572631834, 0.0272936954498291, 0.027497472763061522, 0.02732441520690918, 0.027322368621826174, 0.027425792694091795, 0.027580415725708008, 0.02740940856933594, 0.027411455154418944, 0.027411455154418944, 0.02750771141052246, 0.027813888549804686, 0.027592704772949218, 0.027709440231323244, 0.027889663696289063, 0.027691007614135742, 0.027612159729003907, 0.027668479919433595, 0.02773504066467285, 0.02772889518737793, 0.027663360595703124, 0.0277391357421875, 0.028321792602539062, 0.027814912796020507, 0.060265472412109375, 0.027918336868286132, 0.02773401641845703, 0.02774527931213379, 0.02777292823791504, 0.027794431686401368, 0.02772377586364746, 0.027720703125, 0.02769715118408203, 0.02778009605407715, 0.027839487075805663, 0.027853824615478515, 0.027691007614135742, 0.027775999069213866, 0.027601919174194335, 0.027808767318725586, 0.02796544075012207, 0.02777907180786133, 0.027629568099975587, 0.02752511978149414, 0.02768998336791992, 0.027576320648193358, 0.027561983108520507, 0.027446271896362305, 0.027622400283813478, 0.027627519607543945, 0.02756608009338379, 0.027592704772949218, 0.027578367233276366, 0.02753228759765625, 0.02757529640197754, 0.0599920654296875, 0.027435007095336913, 0.027246591567993163, 0.027406335830688477, 0.027623424530029295, 0.02740838432312012, 0.02732441520690918, 0.027436031341552734, 0.027354112625122072, 0.027481088638305663, 0.02735103988647461, 0.027510784149169923, 0.027451391220092772, 0.027636735916137696, 0.027487232208251954, 0.027661312103271486, 0.027600896835327147, 0.027873279571533204, 0.02750771141052246, 0.027694080352783205, 0.02778828811645508, 0.027996160507202147, 0.027760639190673828, 0.027687936782836913, 0.027717632293701173, 0.02800127983093262, 0.027668479919433595, 0.02775449562072754, 0.02772889518737793, 0.027741184234619142, 0.02768998336791992, 0.06010675048828125, 0.027543552398681642, 0.027640832901000976, 0.02775961685180664, 0.027752447128295898, 0.027704320907592773, 0.027643903732299805, 0.02758246421813965, 0.027883520126342775, 0.027979776382446288, 0.02793574333190918, 0.028201984405517577, 0.027966463088989257, 0.027782144546508788, 0.027716608047485353, 0.02831974411010742, 0.02812518310546875, 0.027870208740234374, 0.028680192947387696, 0.028619775772094725, 0.02853376007080078, 0.02856345558166504, 0.028794879913330077, 0.028876800537109375, 0.028277759552001954, 0.027832319259643554, 0.027543552398681642, 0.027443199157714843, 0.02759065628051758, 0.02755379295349121, 0.02754252815246582, 0.060565502166748046, 0.027600896835327147, 0.02756403160095215, 0.027635711669921875, 0.02858291244506836, 0.028725248336791992, 0.02861568069458008, 0.028239871978759764, 0.027885568618774413, 0.028003328323364256, 0.02793369674682617, 0.028681215286254884, 0.028630016326904296, 0.028820480346679687, 0.02858700752258301, 0.02895462417602539, 0.028597248077392577, 0.028614656448364258, 0.028475391387939454, 0.02872422409057617, 0.028012544631958007, 0.02772889518737793, 0.02771455955505371, 0.027786239624023438, 0.027757568359375, 0.02776268768310547, 0.027805696487426756, 0.027782144546508788, 0.027851776123046876, 0.028052480697631835, 0.027637760162353517, 0.060375038146972655, 0.027801599502563477, 0.027860992431640624, 0.027809791564941407, 0.02777190399169922, 0.02775551986694336, 0.02774015998840332, 0.02795008087158203, 0.02771353530883789, 0.027604991912841798, 0.027579391479492187, 0.027621376037597657, 0.02759065628051758, 0.027741184234619142, 0.027654144287109376, 0.02769715118408203, 0.027678720474243163, 0.027608064651489257, 0.027380735397338866, 0.02757427215576172, 0.027395072937011718, 0.027638784408569338, 0.027490304946899413, 0.027585535049438475, 0.027591680526733397, 0.027623424530029295, 0.02775347137451172, 0.027699199676513672, 0.027691007614135742, 0.027862016677856444, 0.027711488723754882, 0.0603955192565918, 0.02771865653991699, 0.027893760681152343, 0.027963392257690428, 0.02795008087158203, 0.027838464736938476, 0.02770636749267578, 0.027805696487426756, 0.027678720474243163, 0.027792383193969726, 0.02787942314147949, 0.027825151443481445, 0.027717632293701173, 0.027711488723754882, 0.02772889518737793, 0.027711488723754882, 0.027679744720458983, 0.027813888549804686, 0.027749376296997072, 0.027793407440185547, 0.027822080612182616, 0.0277258243560791, 0.02755583953857422, 0.027538431167602538, 0.02751487922668457, 0.02754764747619629, 0.027538431167602538, 0.027456512451171877, 0.027404287338256835, 0.02752614402770996, 0.027395072937011718, 0.059881473541259764, 0.027448320388793947, 0.02753433609008789, 0.02753945541381836, 0.02772172737121582, 0.02755891227722168, 0.027452415466308593, 0.027472896575927733, 0.027452415466308593, 0.027390975952148438, 0.02736128044128418, 0.027357183456420898, 0.02756710433959961, 0.027432960510253908, 0.02735001564025879, 0.02753945541381836, 0.027452415466308593, 0.02750873565673828, 0.02739302444458008, 0.027433984756469725, 0.027699199676513672, 0.027646976470947264, 0.027645952224731447, 0.027631616592407225, 0.027405311584472656, 0.02754969596862793, 0.027428863525390625, 0.0274913272857666, 0.027425792694091795, 0.027487232208251954, 0.02752614402770996, 0.05974630355834961, 0.027422719955444336, 0.027418624877929686, 0.02753740882873535, 0.027444223403930663, 0.027488256454467775, 0.02747494316101074, 0.02759065628051758, 0.02735820770263672, 0.027415552139282227, 0.027337728500366212, 0.027471872329711915, 0.027403263092041014, 0.02737664031982422, 0.027258880615234377, 0.027447296142578126, 0.027636735916137696, 0.027374591827392578, 0.02749849510192871, 0.02751590347290039, 0.027654144287109376, 0.02773708724975586, 0.027778047561645508, 0.0279552001953125, 0.02813132858276367, 0.028785663604736327, 0.028640256881713868, 0.02873651123046875, 0.028593151092529297, 0.02854297637939453, 0.028484607696533205, 0.06154956817626953, 0.028622848510742187, 0.028631040573120117, 0.02878054428100586, 0.028672000885009766, 0.027851776123046876, 0.027905023574829102, 0.027898880004882814, 0.02791628837585449, 0.02790809631347656, 0.027930624008178712, 0.02794905662536621, 0.028015615463256836, 0.028070911407470703, 0.027845632553100585, 0.02793984031677246, 0.027930624008178712, 0.02777292823791504, 0.02774220848083496, 0.027720703125, 0.027891712188720705, 0.027757568359375, 0.027594751358032226, 0.027677696228027345, 0.02756710433959961, 0.027591680526733397, 0.02773401641845703, 0.027663360595703124, 0.027614208221435548, 0.02725273513793945, 0.02739302444458008 ] }, "throughput": { "unit": "tokens/s", "value": 34.8044971547334 }, "energy": null, "efficiency": null } } }