{ "config": { "name": "pytorch-llama", "backend": { "name": "pytorch", "version": "2.3.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": "awq", "quantization_config": { "bits": 4, "version": "gemm" }, "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": 1987.227648, "max_global_vram": 6274.613248, "max_process_vram": 5347.7376, "max_reserved": 4815.060992, "max_allocated": 4428.105728 }, "latency": { "unit": "s", "count": 10, "total": 2.756154998779297, "mean": 0.27561549987792966, "stdev": 0.001576301871995964, "p50": 0.27525642395019534, "p90": 0.2768252777099609, "p95": 0.2783657943725586, "p99": 0.2795982077026367, "values": [ 0.27990631103515623, 0.27568951416015625, 0.2764829406738281, 0.2740910339355469, 0.2755289611816406, 0.2744505615234375, 0.27523696899414063, 0.27507843017578126, 0.27527587890625, 0.2744143981933594 ] }, "throughput": { "unit": "tokens/s", "value": 464.4151002272779 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1987.780608, "max_global_vram": 6274.613248, "max_process_vram": 5347.7376, "max_reserved": 4815.060992, "max_allocated": 4534.656 }, "latency": { "unit": "s", "count": 10, "total": 83.62528515625, "mean": 8.362528515625002, "stdev": 0.01839569892888929, "p50": 8.351832031250002, "p90": 8.389032421875001, "p95": 8.39107236328125, "p99": 8.39270431640625, "values": [ 8.3931123046875, 8.35104296875, 8.3475205078125, 8.3436806640625, 8.3881337890625, 8.3598662109375, 8.35262109375, 8.3885791015625, 8.34973046875, 8.350998046875 ] }, "throughput": { "unit": "tokens/s", "value": 3.7070127703693827 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 309, "total": 85.82910778808595, "mean": 0.27776410287406456, "stdev": 0.046387676634444285, "p50": 0.2693468017578125, "p90": 0.2698035339355469, "p95": 0.2715961364746094, "p99": 0.5450556909179687, "values": [ 0.2690375671386719, 0.26903347778320313, 0.26933248901367185, 0.2698332214355469, 0.2692812805175781, 0.2690047912597656, 0.26912152099609377, 0.26974002075195314, 0.2695249938964844, 0.26954034423828127, 0.26969088745117187, 0.2694072265625, 0.26910311889648436, 0.2691430358886719, 0.26976666259765625, 0.2693109741210937, 0.2686207885742187, 0.26987008666992185, 0.2693662719726562, 0.2693642272949219, 0.27514981079101564, 0.3016622009277344, 0.2691041259765625, 0.26949530029296875, 0.26923828125, 0.2693007507324219, 0.2691041259765625, 0.268864501953125, 0.2696529846191406, 0.27169485473632815, 0.5468641357421875, 0.2707322998046875, 0.26957107543945313, 0.26896588134765625, 0.26929254150390625, 0.26959872436523435, 0.26925259399414064, 0.26876416015625, 0.2687457275390625, 0.26937753295898437, 0.2689986572265625, 0.26938265991210936, 0.2689146728515625, 0.2688511962890625, 0.269264892578125, 0.26910516357421876, 0.26927719116210935, 0.26962942504882814, 0.2725355529785156, 0.26945843505859374, 0.26939700317382814, 0.2689259643554687, 0.26917172241210935, 0.2692515869140625, 0.26923110961914065, 0.26877542114257813, 0.2688962707519531, 0.2690826110839844, 0.269159423828125, 0.2692259826660156, 0.2690877380371094, 0.5459373779296876, 0.2692884521484375, 0.2692567138671875, 0.26868429565429686, 0.26870477294921874, 0.26898635864257814, 0.269159423828125, 0.2694635620117187, 0.269275146484375, 0.2689392700195313, 0.2688931884765625, 0.2693887939453125, 0.269549560546875, 0.26929153442382814, 0.2691655578613281, 0.2695168151855469, 0.26863717651367186, 0.26929766845703124, 0.2695997314453125, 0.2694297485351563, 0.26923110961914065, 0.2692147216796875, 0.2692587585449219, 0.26939596557617185, 0.269306884765625, 0.269043701171875, 0.2705960998535156, 0.2693468017578125, 0.2692075500488281, 0.26950347900390625, 0.26945330810546875, 0.5430527954101563, 0.26870578002929685, 0.2691328125, 0.26934375, 0.26943283081054686, 0.2692351989746094, 0.26888705444335936, 0.2688440246582031, 0.26953216552734377, 0.2694430847167969, 0.2691758117675781, 0.2690293884277344, 0.26936114501953123, 0.2695116882324219, 0.2694420471191406, 0.2686484375, 0.26949017333984376, 0.2689494934082031, 0.2694236145019531, 0.2693089294433594, 0.26930484008789063, 0.2687580261230469, 0.26872012329101563, 0.2688983154296875, 0.2697994384765625, 0.2695423889160156, 0.269370361328125, 0.26885223388671875, 0.26844158935546875, 0.26901400756835936, 0.26917477416992186, 0.5452451782226563, 0.2690908203125, 0.2693990478515625, 0.26928536987304685, 0.2694676513671875, 0.2692136840820312, 0.26950860595703124, 0.26930484008789063, 0.26916351318359377, 0.30769561767578124, 0.2689546203613281, 0.26886041259765625, 0.2694317932128906, 0.2698199157714844, 0.2695741577148438, 0.2690519104003906, 0.26873651123046877, 0.2689822692871094, 0.26932940673828126, 0.2695126953125, 0.2691512451171875, 0.2689392700195313, 0.268837890625, 0.2692546691894531, 0.26957107543945313, 0.27118490600585937, 0.26988543701171874, 0.269053955078125, 0.2694369201660156, 0.26936935424804687, 0.26938470458984376, 0.5438167114257813, 0.26926593017578127, 0.269444091796875, 0.2692485046386719, 0.26929458618164065, 0.26911129760742186, 0.2695475158691406, 0.27004620361328124, 0.2697420654296875, 0.269744140625, 0.2693242797851563, 0.26931610107421877, 0.26971649169921874, 0.2695966796875, 0.2693683166503906, 0.26960690307617186, 0.2695782470703125, 0.26939801025390625, 0.2705315856933594, 0.2694317932128906, 0.2695362548828125, 0.274872314453125, 0.2696151123046875, 0.26945843505859374, 0.2692884521484375, 0.2692034606933594, 0.2694420471191406, 0.2693734436035156, 0.2695762023925781, 0.26955877685546875, 0.2692904968261719, 0.5447843627929687, 0.2694840393066406, 0.26923211669921876, 0.2696499328613281, 0.2691706848144531, 0.2691328125, 0.26960794067382815, 0.2697369689941406, 0.2695895080566406, 0.2696724548339844, 0.2693990478515625, 0.2696222839355469, 0.26936114501953123, 0.2694635620117187, 0.26945230102539064, 0.27014862060546874, 0.26982501220703126, 0.26970932006835935, 0.2692515869140625, 0.269222900390625, 0.26936114501953123, 0.2692894592285156, 0.2693447570800781, 0.2692833251953125, 0.2693089294433594, 0.26920858764648437, 0.2694143981933594, 0.26970932006835935, 0.26943487548828127, 0.26899148559570313, 0.26903347778320313, 0.544595947265625, 0.26924441528320314, 0.26973184204101563, 0.26944717407226565, 0.2689197998046875, 0.26903652954101565, 0.2692075500488281, 0.26946661376953124, 0.2693232727050781, 0.2694645690917969, 0.26946560668945313, 0.2694768676757813, 0.2694287414550781, 0.2692986755371094, 0.2687313842773438, 0.26922189331054686, 0.2698608703613281, 0.26943487548828127, 0.2694225769042969, 0.26934988403320315, 0.2688194580078125, 0.2689966125488281, 0.2692894592285156, 0.26939801025390625, 0.26970932006835935, 0.307842041015625, 0.2694062194824219, 0.2691758117675781, 0.26946047973632814, 0.2695823364257813, 0.2698885192871094, 0.5450792846679687, 0.2696857604980469, 0.26950759887695314, 0.26918194580078125, 0.26958541870117186, 0.2695352172851562, 0.26955572509765624, 0.26940826416015623, 0.26892901611328124, 0.2688215026855469, 0.26918093872070314, 0.2695741577148438, 0.2697574462890625, 0.2691583862304687, 0.26896383666992185, 0.26888088989257813, 0.2689873962402344, 0.26942465209960936, 0.26933349609375, 0.26921063232421877, 0.26887271118164063, 0.27005133056640623, 0.2692567138671875, 0.26960589599609375, 0.26949325561523435, 0.26920242309570314, 0.2691727294921875, 0.2695833740234375, 0.2695147399902344, 0.2695055236816406, 0.26901095581054685, 0.543478759765625, 0.2692761535644531, 0.26944512939453125, 0.2697134094238281, 0.2692679748535156, 0.26909695434570313, 0.26919525146484374, 0.2693253173828125, 0.2694359130859375, 0.26941131591796874, 0.26903448486328124, 0.26912664794921876, 0.2693447570800781, 0.2695209045410156, 0.26944818115234376, 0.26922906494140625, 0.2692833251953125, 0.2694287414550781, 0.26944818115234376, 0.2694072265625, 0.2692935791015625, 0.26966323852539065, 0.2694215698242188, 0.2692935791015625, 0.26903143310546873, 0.2689259643554687, 0.26914712524414064, 0.26951577758789064, 0.2694420471191406, 0.26934375, 0.27144805908203123 ] }, "throughput": { "unit": "tokens/s", "value": 3.6001772354773647 }, "energy": null, "efficiency": null } } }