{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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, "latency": true, "memory": 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", "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.215-203.850.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.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1076.580352, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 55, "total": 0.49583600044250503, "mean": 0.009015200008045544, "stdev": 0.00037125226306641905, "p50": 0.009054207801818847, "p90": 0.009453619575500487, "p95": 0.009655491256713866, "p99": 0.00997228162765503, "values": [ 0.00991436767578125, 0.009392191886901855, 0.009528032302856445, 0.009544544219970703, 0.009193375587463378, 0.00892569637298584, 0.008965696334838867, 0.009109791755676269, 0.009085151672363281, 0.009163264274597169, 0.009093791961669921, 0.009056863784790039, 0.00908345603942871, 0.009036064147949219, 0.009285216331481933, 0.009054207801818847, 0.009148703575134278, 0.009133888244628905, 0.008989055633544922, 0.009128640174865723, 0.010004768371582031, 0.009944607734680175, 0.009384415626525878, 0.009184512138366699, 0.00921993637084961, 0.00918835163116455, 0.009477696418762206, 0.009239520072937012, 0.009024224281311034, 0.00941750431060791, 0.009134559631347657, 0.008857760429382324, 0.00864419174194336, 0.009008095741271973, 0.009167488098144532, 0.009094911575317383, 0.008784671783447266, 0.00877676773071289, 0.008640159606933593, 0.008473919868469239, 0.00853321647644043, 0.008811039924621582, 0.00868825626373291, 0.008484448432922363, 0.00844438362121582, 0.008481792449951172, 0.008687871932983399, 0.008715328216552734, 0.00891648006439209, 0.008498784065246581, 0.008469823837280274, 0.00846720027923584, 0.008691072463989258, 0.008720735549926757, 0.008725503921508788 ] }, "throughput": { "unit": "tokens/s", "value": 221.8475461681511 }, "energy": { "unit": "kWh", "cpu": 1.0537027638687616e-07, "ram": 5.761072165259331e-08, "gpu": 1.8475186854867637e-07, "total": 3.477328665881459e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5751541.462339814 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1076.580352, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 55, "total": 0.5113280019760131, "mean": 0.009296872763200239, "stdev": 0.0003298954402315631, "p50": 0.009371423721313476, "p90": 0.009660070610046386, "p95": 0.009744252681732178, "p99": 0.009861478366851808, "values": [ 0.009655936241149903, 0.009715231895446777, 0.0098538236618042, 0.00956390380859375, 0.009351615905761718, 0.009351840019226074, 0.009363615989685058, 0.00959001636505127, 0.009627840042114259, 0.009396832466125488, 0.009524928092956544, 0.009410079956054687, 0.009495967864990235, 0.009560192108154297, 0.009466400146484375, 0.009371423721313476, 0.009512576103210449, 0.009339967727661132, 0.00944758415222168, 0.009415807723999024, 0.009870464324951173, 0.009661248207092285, 0.009536383628845214, 0.009644096374511718, 0.009685279846191407, 0.009586784362792969, 0.009579392433166503, 0.009465408325195313, 0.00965830421447754, 0.009426239967346192, 0.009222047805786133, 0.008884575843811035, 0.009150464057922364, 0.00936780834197998, 0.009811967849731444, 0.009124256134033204, 0.008965312004089355, 0.009079327583312988, 0.008768863677978515, 0.008761055946350097, 0.009007424354553222, 0.008971487998962403, 0.008876768112182618, 0.0087642240524292, 0.008746623992919922, 0.008763168334960937, 0.008954560279846192, 0.009430848121643066, 0.008800640106201171, 0.008766559600830079, 0.008785247802734375, 0.00894979190826416, 0.009193920135498046, 0.009006879806518554, 0.009044992446899413 ] }, "throughput": { "unit": "tokens/s", "value": 107.56305108942597 }, "energy": { "unit": "kWh", "cpu": 9.973767034698588e-08, "ram": 5.453220469913394e-08, "gpu": 1.7292083138235317e-07, "total": 3.2719070642847297e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3056321.5285535916 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 54, "total": 0.9894369297027586, "mean": 0.01832290610560664, "stdev": 0.0006574435478582561, "p50": 0.01846681594848633, "p90": 0.01907199935913086, "p95": 0.019292005729675293, "p99": 0.019753953647613526, "values": [ 0.019156991958618166, 0.0192993278503418, 0.019288063049316406, 0.018594816207885743, 0.018267135620117187, 0.018382848739624022, 0.018741247177124023, 0.018692096710205077, 0.01864499282836914, 0.01865830421447754, 0.01846067237854004, 0.018654207229614257, 0.018614303588867186, 0.018769887924194335, 0.018472959518432617, 0.01866547203063965, 0.018528255462646484, 0.01847603225708008, 0.018556928634643553, 0.01989017677307129, 0.01963315200805664, 0.01902899169921875, 0.018771968841552734, 0.01901670455932617, 0.018787328720092773, 0.019090431213378906, 0.018738176345825194, 0.018619392395019533, 0.019009599685668944, 0.01838483238220215, 0.017861696243286134, 0.017785791397094727, 0.018387968063354493, 0.018981887817382814, 0.01835212707519531, 0.017780736923217775, 0.01786777687072754, 0.017458175659179686, 0.017262592315673828, 0.017555456161499023, 0.01780940818786621, 0.017583103179931642, 0.017287168502807617, 0.01722777557373047, 0.01725644874572754, 0.017670143127441407, 0.018132991790771484, 0.017799200057983397, 0.01728611183166504, 0.017252351760864256, 0.017449983596801756, 0.017921024322509766, 0.017754112243652344, 0.01781760025024414 ] }, "throughput": { "unit": "tokens/s", "value": 54.57649535703341 }, "energy": null, "efficiency": null } } }