{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model_type": "gpt2", "model": "openai-community/gpt2", "processor": "openai-community/gpt2", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "model_kwargs": {}, "processor_kwargs": {}, "no_weights": true, "device_map": null, "torch_dtype": null, "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": 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": 1, "duration": 1, "warmup_runs": 1, "input_shapes": { "batch_size": 1, "num_choices": 2, "sequence_length": 2 }, "new_tokens": null, "memory": true, "latency": true, "energy": true, "forward_kwargs": {}, "generate_kwargs": { "max_new_tokens": 2, "min_new_tokens": 2 }, "call_kwargs": { "num_inference_steps": 2 } }, "launcher": { "name": "process", "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", "device_isolation": true, "device_isolation_action": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.293824, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.219-208.866.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": null, "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.457728, "max_global_vram": 1355.28448, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.21402783203125, "mean": 7.21402783203125, "stdev": 0.0, "p50": 7.21402783203125, "p90": 7.21402783203125, "p95": 7.21402783203125, "p99": 7.21402783203125, "values": [ 7.21402783203125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 1.0254411233796014e-06, "ram": 5.284220015886376e-07, "gpu": 1.6827791239999376e-06, "total": 3.2366422489681765e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1037.180928, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.490764702320099, "mean": 0.006722804141371217, "stdev": 0.0003811030219266765, "p50": 0.006801951885223389, "p90": 0.007133203029632568, "p95": 0.007330841636657715, "p99": 0.007634825038909912, "values": [ 0.007826079845428466, 0.007540575981140137, 0.0073071041107177735, 0.007356128215789795, 0.006771488189697266, 0.006918240070343018, 0.006944287776947022, 0.00696895980834961, 0.006801951885223389, 0.006982719898223877, 0.007008831977844238, 0.007143871784210205, 0.0069192638397216795, 0.006943615913391113, 0.006814591884613037, 0.00677129602432251, 0.006818975925445557, 0.006883008003234863, 0.006996511936187744, 0.007560448169708252, 0.00730844783782959, 0.007313983917236328, 0.00693449592590332, 0.006921599864959717, 0.006780384063720703, 0.0068351998329162595, 0.006807040214538574, 0.006833216190338135, 0.006803040027618408, 0.006816671848297119, 0.007090528011322022, 0.007049088001251221, 0.006894720077514648, 0.006945824146270752, 0.006892672061920166, 0.006746399879455567, 0.006567584037780762, 0.00671292781829834, 0.0063333439826965335, 0.006997920036315918, 0.00697327995300293, 0.00704633617401123, 0.006936768054962158, 0.006776544094085693, 0.006800896167755127, 0.0068063678741455075, 0.006598464012145996, 0.006655456066131592, 0.006652927875518798, 0.006625343799591064, 0.006272672176361084, 0.006318079948425293, 0.0062444801330566405, 0.006261983871459961, 0.00624726390838623, 0.006252575874328614, 0.006249023914337158, 0.006267039775848388, 0.00625161600112915, 0.0062837119102478025, 0.006271455764770508, 0.0062633280754089355, 0.006267712116241455, 0.006283648014068603, 0.006265984058380127, 0.006264383792877197, 0.006269983768463135, 0.006259935855865479, 0.006262112140655518, 0.006262432098388672, 0.006253280162811279, 0.006229119777679443, 0.006227456092834473 ] }, "throughput": { "unit": "tokens/s", "value": 297.49490806853555 }, "energy": { "unit": "kWh", "cpu": 7.818030487549932e-08, "ram": 4.258835172271521e-08, "gpu": 1.494335990789429e-07, "total": 2.702022556771574e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7401862.708317419 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1052.553216, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5109302072525024, "mean": 0.006999043934965786, "stdev": 0.00038491845162775954, "p50": 0.007100575923919677, "p90": 0.007488243293762206, "p95": 0.007651327991485595, "p99": 0.007748263702392578, "values": [ 0.007846367835998536, 0.007634047985076904, 0.007579840183258056, 0.0076100797653198245, 0.007086592197418213, 0.00721830415725708, 0.007355711936950684, 0.007279359817504883, 0.007142720222473145, 0.007342847824096679, 0.007262752056121826, 0.007203264236450195, 0.00725324821472168, 0.007244800090789795, 0.00712828779220581, 0.0071910719871521, 0.00715228796005249, 0.007200096130371094, 0.007355072021484375, 0.00771011209487915, 0.0075213761329650875, 0.007696320056915283, 0.007239999771118164, 0.007200607776641846, 0.007262239933013916, 0.007307007789611817, 0.007138879776000977, 0.007178912162780762, 0.007139647960662842, 0.007274240016937256, 0.007304863929748535, 0.007328095912933349, 0.007348031997680664, 0.007015168190002441, 0.007106336116790771, 0.006821919918060302, 0.007078239917755127, 0.0066035518646240235, 0.006573919773101807, 0.007143455982208252, 0.007171103954315186, 0.007677248001098633, 0.007056064128875732, 0.007071072101593017, 0.007100575923919677, 0.006928095817565918, 0.006887328147888183, 0.006867487907409668, 0.007072544097900391, 0.006886367797851563, 0.006587615966796875, 0.006536799907684326, 0.006536511898040771, 0.0065289602279663085, 0.006565023899078369, 0.006507840156555176, 0.006518239974975586, 0.006518976211547851, 0.006517983913421631, 0.006575520038604736, 0.006524767875671387, 0.00651910400390625, 0.006488287925720215, 0.0065131521224975585, 0.006490431785583496, 0.006511839866638183, 0.006510464191436768, 0.006500864028930664, 0.0066061758995056155, 0.006489568233489991, 0.006562143802642822, 0.006516384124755859, 0.006505983829498291 ] }, "throughput": { "unit": "tokens/s", "value": 142.87665705371634 }, "energy": { "unit": "kWh", "cpu": 7.233804499803408e-08, "ram": 3.9709450561466813e-08, "gpu": 1.407143123640964e-07, "total": 2.527618079235973e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3956293.9045849503 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4776060161590577, "mean": 0.006542548166562434, "stdev": 0.0003294577278315338, "p50": 0.006636544227600098, "p90": 0.006975488185882568, "p95": 0.007114956760406494, "p99": 0.007206911945343017, "values": [ 0.007299071788787842, 0.007105535984039306, 0.007058432102203369, 0.007078911781311035, 0.006568960189819336, 0.006690815925598144, 0.00683622407913208, 0.00677785587310791, 0.006636544227600098, 0.006834144115447998, 0.006752255916595459, 0.00667852783203125, 0.006729728221893311, 0.006746111869812011, 0.006638591766357422, 0.006692863941192627, 0.006632448196411133, 0.006681568145751953, 0.006840320110321045, 0.007171072006225586, 0.007009280204772949, 0.007129087924957276, 0.006723584175109864, 0.006722559928894043, 0.006760447978973389, 0.006799359798431396, 0.0066447358131408694, 0.00667852783203125, 0.006643712043762207, 0.0067573761940002445, 0.006793248176574707, 0.006819839954376221, 0.0068076162338256835, 0.0065443840026855465, 0.006597631931304931, 0.006405119895935059, 0.006584288120269776, 0.006211584091186524, 0.006164480209350586, 0.006659071922302246, 0.0067041277885437015, 0.007165952205657959, 0.006635519981384277, 0.006647808074951172, 0.006659135818481445, 0.00653107213973999, 0.006491136074066162, 0.006471680164337158, 0.006673408031463623, 0.006490111827850342, 0.0062065281867980954, 0.006158336162567139, 0.006159359931945801, 0.006134751796722412, 0.006173696041107178, 0.006123519897460937, 0.006139904022216797, 0.006139904022216797, 0.0061296639442443845, 0.00619212818145752, 0.006123519897460937, 0.006138879776000977, 0.006110208034515381, 0.006127615928649902, 0.006110208034515381, 0.006115327835083008, 0.0061296639442443845, 0.006120416164398193, 0.0062156801223754886, 0.006111231803894043, 0.006116415977478027, 0.006135807991027832, 0.00611737585067749 ] }, "throughput": { "unit": "tokens/s", "value": 152.84564584648936 }, "energy": null, "efficiency": null } } }