{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.2", "_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.214-202.855.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "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.0", "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": 1056.21504, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 57, "total": 0.4932418212890625, "mean": 0.008653365285773026, "stdev": 0.00030094731449344765, "p50": 0.008729887962341308, "p90": 0.008992601776123047, "p95": 0.009081868743896484, "p99": 0.00940516860961914, "values": [ 0.00962393569946289, 0.009233280181884766, 0.00910598373413086, 0.008871328353881837, 0.008821279525756835, 0.008729887962341308, 0.00880832004547119, 0.008922207832336425, 0.008806559562683105, 0.008900799751281739, 0.008902655601501466, 0.008776384353637695, 0.008840895652770997, 0.00869497585296631, 0.008776800155639648, 0.009007136344909667, 0.009021120071411133, 0.009075839996337891, 0.00876137638092041, 0.00876524829864502, 0.008714816093444825, 0.008814175605773926, 0.008919584274291991, 0.008876832008361816, 0.008779328346252441, 0.008814656257629394, 0.008982912063598632, 0.008841567993164063, 0.00884556770324707, 0.008701472282409669, 0.008660320281982423, 0.008535391807556152, 0.008586336135864257, 0.008774271965026855, 0.008770591735839843, 0.008447423934936523, 0.008277440071105957, 0.00834768009185791, 0.008335071563720703, 0.008331232070922852, 0.008302751541137696, 0.008330080032348633, 0.008330975532531738, 0.008357983589172363, 0.008304703712463378, 0.00829695987701416, 0.008221632003784179, 0.008242048263549805, 0.008307071685791015, 0.008315423965454101, 0.008304287910461425, 0.008405920028686523, 0.008334943771362305, 0.008340415954589843, 0.008360159873962403, 0.008352864265441894, 0.008330911636352538 ] }, "throughput": { "unit": "tokens/s", "value": 231.12395397062394 }, "energy": { "unit": "kWh", "cpu": 1.0198926993584704e-07, "ram": 5.5764314973389553e-08, "gpu": 1.8152673591452916e-07, "total": 3.3928032082376575e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5894830.549393612 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1056.21504, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 57, "total": 0.5124286413192749, "mean": 0.00898997616349605, "stdev": 0.0003353435192255441, "p50": 0.009137184143066406, "p90": 0.009392422485351562, "p95": 0.009467046165466309, "p99": 0.009708334999084472, "values": [ 0.009922335624694825, 0.00945315170288086, 0.009435296058654785, 0.009178400039672852, 0.009153792381286621, 0.009148192405700684, 0.009213824272155762, 0.009215680122375489, 0.009211168289184571, 0.00922713565826416, 0.00922486400604248, 0.009347071647644043, 0.00917846393585205, 0.009144479751586915, 0.009540191650390625, 0.009444512367248536, 0.00925209617614746, 0.009178175926208496, 0.009363840103149414, 0.009150400161743164, 0.009140000343322754, 0.009184351921081543, 0.009177824020385743, 0.009110943794250488, 0.009137184143066406, 0.009522624015808105, 0.00929843235015869, 0.009188672065734864, 0.009169568061828613, 0.008991776466369629, 0.009095775604248046, 0.008758655548095703, 0.009058208465576171, 0.009153087615966797, 0.008902432441711426, 0.008618751525878906, 0.008662976264953614, 0.008632608413696289, 0.00859712028503418, 0.008731167793273925, 0.008585408210754394, 0.008562848091125489, 0.00859267234802246, 0.00860700798034668, 0.008561951637268066, 0.008575903892517089, 0.008501695632934571, 0.008601375579833984, 0.008680895805358886, 0.008675711631774902, 0.008646559715270997, 0.008584416389465332, 0.00861564826965332, 0.008687359809875488, 0.008607680320739747, 0.008613632202148438, 0.008612640380859375 ] }, "throughput": { "unit": "tokens/s", "value": 111.23500016168195 }, "energy": { "unit": "kWh", "cpu": 9.895048381118425e-08, "ram": 5.409786038038164e-08, "gpu": 1.7632194961089187e-07, "total": 3.2937029380245794e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3036096.5114836884 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 56, "total": 0.9879142379760746, "mean": 0.017641325678144183, "stdev": 0.0005813381669504582, "p50": 0.01784883213043213, "p90": 0.01832907199859619, "p95": 0.018397463321685792, "p99": 0.018665164375305177, "values": [ 0.018736127853393555, 0.01860710334777832, 0.01806540870666504, 0.01803468894958496, 0.017880096435546874, 0.01807151985168457, 0.018147327423095702, 0.018066432952880858, 0.018123775482177733, 0.01820979118347168, 0.018136064529418947, 0.018075647354125975, 0.01784217643737793, 0.018367488861083983, 0.01844121551513672, 0.018331647872924805, 0.018304000854492186, 0.018111488342285157, 0.01798963165283203, 0.017855487823486327, 0.018039840698242188, 0.018108383178710937, 0.01806438446044922, 0.017910783767700195, 0.01838287925720215, 0.018326496124267577, 0.01807155227661133, 0.01804595184326172, 0.017764352798461915, 0.01775923156738281, 0.017367040634155274, 0.0176312313079834, 0.017932287216186525, 0.017803264617919923, 0.017086463928222655, 0.016991231918334963, 0.0170199031829834, 0.016957439422607423, 0.017054719924926756, 0.016935935974121095, 0.016924671173095703, 0.016949247360229493, 0.016969728469848632, 0.016912384033203123, 0.016903167724609376, 0.016748544692993163, 0.016857088088989256, 0.01698099136352539, 0.01704652786254883, 0.016983039855957033, 0.01701068878173828, 0.01697593688964844, 0.017049535751342774, 0.01699225616455078, 0.0169881591796875, 0.01697177505493164 ] }, "throughput": { "unit": "tokens/s", "value": 56.685082416391126 }, "energy": null, "efficiency": null } } }