{ "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": "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": {}, "hub_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, "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", "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.2.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1050.60352, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 72, "total": 0.4875520944595336, "mean": 0.006771556867493523, "stdev": 0.00039162730110518763, "p50": 0.006757776021957398, "p90": 0.0071927901744842536, "p95": 0.007350521492958069, "p99": 0.007787397289276127, "values": [ 0.007586912155151367, 0.0073101439476013184, 0.0073019199371337894, 0.007536543846130371, 0.0070150399208068846, 0.007077119827270508, 0.00683955192565918, 0.007019296169281006, 0.007140128135681152, 0.006948991775512696, 0.0071970877647399905, 0.007109087944030762, 0.00696454381942749, 0.0070862717628479, 0.0067992000579833985, 0.006921504020690918, 0.006959136009216309, 0.0070548801422119145, 0.007152095794677734, 0.0070059518814086915, 0.007105440139770508, 0.007070335865020752, 0.0068731198310852054, 0.007017248153686524, 0.0068624639511108395, 0.006939743995666504, 0.006928063869476318, 0.007154111862182617, 0.007197152137756348, 0.00698521614074707, 0.006841087818145752, 0.00688640022277832, 0.006615295886993409, 0.00700275182723999, 0.006512608051300049, 0.006470816135406494, 0.006561056137084961, 0.007094240188598633, 0.007399871826171875, 0.008278240203857421, 0.006716351985931396, 0.006685279846191407, 0.006602975845336914, 0.006547359943389892, 0.00656112003326416, 0.006620704174041748, 0.006642464160919189, 0.006290592193603515, 0.006288191795349121, 0.006295104026794434, 0.006299456119537353, 0.006288127899169922, 0.006276319980621338, 0.006284927845001221, 0.00634822416305542, 0.006355519771575928, 0.006412032127380371, 0.006385824203491211, 0.006373055934906006, 0.006397791862487793, 0.006377344131469727, 0.006447135925292969, 0.006438176155090332, 0.006379519939422608, 0.0063851199150085445, 0.0063528637886047365, 0.006356063842773437, 0.006346208095550537, 0.006539775848388672, 0.00645849609375, 0.006642399787902832, 0.006336895942687988 ] }, "throughput": { "unit": "tokens/s", "value": 295.3530538303366 }, "energy": { "unit": "kWh", "cpu": 7.881133147598278e-08, "ram": 4.3091498322468234e-08, "gpu": 1.5108915692715315e-07, "total": 2.7299198672560417e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7326222.370073759 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1050.60352, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 72, "total": 0.515131872177124, "mean": 0.00715460933579339, "stdev": 0.00040683300573563435, "p50": 0.007144223928451538, "p90": 0.007555100774765015, "p95": 0.0076660558462142946, "p99": 0.008349288206100468, "values": [ 0.0075803837776184085, 0.00769324779510498, 0.007643807888031006, 0.007466400146484375, 0.007429632186889648, 0.007313375949859619, 0.007368319988250732, 0.0075281281471252445, 0.007455615997314453, 0.007343327999114991, 0.007520607948303223, 0.007570047855377197, 0.007394815921783447, 0.007380640029907227, 0.007269375801086426, 0.007253759860992431, 0.0074273920059204105, 0.007557919979095459, 0.007484928131103515, 0.007366208076477051, 0.007395264148712158, 0.007323520183563232, 0.007308703899383545, 0.007517983913421631, 0.007529727935791016, 0.007335552215576172, 0.0073359041213989255, 0.0075170879364013675, 0.007527391910552978, 0.007426400184631348, 0.007377535820007324, 0.007252255916595459, 0.007000832080841064, 0.007036191940307617, 0.006799776077270508, 0.00685103988647461, 0.0074683518409729005, 0.0077144641876220705, 0.00880355167388916, 0.00816374397277832, 0.006960800170898437, 0.006999104022979736, 0.006990911960601806, 0.006969312191009522, 0.006969376087188721, 0.00692467212677002, 0.006991487979888916, 0.006666944026947021, 0.006647808074951172, 0.006654560089111328, 0.0067331199645996095, 0.006656991958618164, 0.006646527767181397, 0.006652448177337646, 0.006714303970336914, 0.0067783999443054195, 0.006772704124450683, 0.0067272639274597165, 0.00673199987411499, 0.006737184047698974, 0.006783520221710205, 0.006722432136535644, 0.006844351768493653, 0.006788415908813477, 0.006710495948791504, 0.006736927986145019, 0.006702688217163086, 0.006906208038330078, 0.006968448162078858, 0.006753376007080078, 0.006827455997467041, 0.006728415966033936 ] }, "throughput": { "unit": "tokens/s", "value": 139.77003538084975 }, "energy": { "unit": "kWh", "cpu": 7.584336740852158e-08, "ram": 4.146351737644445e-08, "gpu": 1.5062464865726253e-07, "total": 2.679315334422286e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3732296.781765779 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 71, "total": 0.9898844175338749, "mean": 0.013942034049772881, "stdev": 0.0007778813376299401, "p50": 0.014010368347167968, "p90": 0.014748671531677245, "p95": 0.015001599788665772, "p99": 0.016331263732910155, "values": [ 0.015047679901123047, 0.014955519676208496, 0.015088640213012695, 0.014477343559265136, 0.01443836784362793, 0.014215167999267577, 0.014599167823791503, 0.014640128135681153, 0.014314496040344238, 0.014732288360595704, 0.014748671531677245, 0.014382080078125, 0.014516223907470703, 0.01408614444732666, 0.014236672401428223, 0.014397439956665039, 0.014638079643249511, 0.01466982364654541, 0.014360575675964356, 0.014586879730224609, 0.014450688362121582, 0.014211071968078613, 0.014558208465576173, 0.014418944358825684, 0.014315520286560059, 0.014297087669372559, 0.01468723201751709, 0.01480191993713379, 0.01444863986968994, 0.01425715160369873, 0.0141844482421875, 0.013666303634643554, 0.014138367652893067, 0.013369343757629394, 0.013303808212280274, 0.014010368347167968, 0.014783488273620606, 0.01620377540588379, 0.01662873649597168, 0.013739007949829102, 0.013713408470153808, 0.013618207931518555, 0.013511648178100586, 0.013583359718322753, 0.013578240394592284, 0.013668383598327637, 0.0129965763092041, 0.012953599929809571, 0.012980223655700684, 0.013074432373046875, 0.012973088264465332, 0.012946399688720703, 0.012951552391052246, 0.013101056098937988, 0.01314406394958496, 0.013223936080932617, 0.013137920379638672, 0.013123583793640137, 0.013167615890502929, 0.013120512008666992, 0.013261823654174805, 0.013304832458496094, 0.013195263862609862, 0.013118464469909668, 0.013114368438720703, 0.013079551696777344, 0.013241344451904297, 0.013545472145080567, 0.013262847900390624, 0.013505536079406738, 0.013081600189208984 ] }, "throughput": { "unit": "tokens/s", "value": 71.72554567217473 }, "energy": null, "efficiency": null } } }