{ "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.42.4", "transformers_commit": null, "accelerate_version": "0.32.1", "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": { "load": { "memory": { "unit": "MB", "max_ram": 720.4864, "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.15319287109375, "mean": 7.15319287109375, "stdev": 0.0, "p50": 7.15319287109375, "p90": 7.15319287109375, "p95": 7.15319287109375, "p99": 7.15319287109375, "values": [ 7.15319287109375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.665358397695752e-07, "ram": 5.140364656569811e-07, "gpu": 1.7533347359999403e-06, "total": 3.2339070414264964e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1020.379136, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 74, "total": 0.4869484157562257, "mean": 0.006580383996705751, "stdev": 0.0003519281716430223, "p50": 0.006724047899246216, "p90": 0.0069613247394561765, "p95": 0.007064737629890441, "p99": 0.007236601600646973, "values": [ 0.007321631908416748, 0.007148416042327881, 0.006850080013275146, 0.006825759887695313, 0.006775392055511475, 0.006675648212432861, 0.0067263998985290525, 0.006947199821472168, 0.006817311763763428, 0.006817471981048584, 0.006948895931243896, 0.006857344150543213, 0.006758463859558105, 0.0068726401329040525, 0.006879648208618164, 0.0066154241561889645, 0.006791584014892578, 0.006975071907043457, 0.006792575836181641, 0.00710640001296997, 0.006949535846710205, 0.006857215881347656, 0.006969312191009522, 0.006962111949920654, 0.006711328029632568, 0.006933792114257813, 0.006848320007324219, 0.006723680019378662, 0.0067478718757629395, 0.006738239765167236, 0.006786303997039795, 0.0070423040390014645, 0.006959487915039062, 0.0068336639404296875, 0.006724415779113769, 0.006926112174987793, 0.007205152034759522, 0.0068096318244934085, 0.006459616184234619, 0.006235263824462891, 0.006723135948181152, 0.006848320007324219, 0.006927072048187256, 0.006770944118499756, 0.006331200122833252, 0.006334047794342041, 0.006406623840332032, 0.006333471775054932, 0.0062512001991271975, 0.00617900800704956, 0.0061898880004882815, 0.006169472217559814, 0.006154880046844482, 0.006144544124603271, 0.0061536960601806644, 0.00616483211517334, 0.006159584045410157, 0.0061487040519714355, 0.0061627840995788575, 0.00613267183303833, 0.006123263835906983, 0.006209472179412842, 0.006246528148651123, 0.006164063930511474, 0.006135871887207031, 0.0061662721633911136, 0.006173088073730469, 0.006159008026123047, 0.006165631771087646, 0.0061356801986694335, 0.006171648025512695, 0.00614572811126709, 0.006161407947540283, 0.00617795181274414 ] }, "throughput": { "unit": "tokens/s", "value": 303.9336307731027 }, "energy": { "unit": "kWh", "cpu": 7.728258897731832e-08, "ram": 4.225402698442811e-08, "gpu": 1.4966822940259717e-07, "total": 2.692048453643436e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7429286.784542035 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1036.292096, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 74, "total": 0.5153253121376039, "mean": 0.006963855569427077, "stdev": 0.0004154364911539072, "p50": 0.007117264032363891, "p90": 0.007437823963165283, "p95": 0.0075187824010848996, "p99": 0.007895982584953307, "values": [ 0.0075976958274841305, 0.007245408058166504, 0.007594016075134278, 0.00734822416305542, 0.007298399925231933, 0.007154399871826172, 0.007265215873718262, 0.007302815914154053, 0.0079552001953125, 0.0074651517868042, 0.007265471935272217, 0.0072820158004760745, 0.007229279994964599, 0.00725648021697998, 0.007043615818023681, 0.007092544078826904, 0.007072768211364746, 0.007285823822021484, 0.007340735912322998, 0.007345823764801025, 0.007267839908599853, 0.007478271961212158, 0.007460000038146973, 0.007276895999908447, 0.0071419839859008785, 0.0072009282112121585, 0.007291327953338623, 0.00719209623336792, 0.007159615993499756, 0.0071922879219055175, 0.007386079788208008, 0.0072798080444335935, 0.007267615795135498, 0.007254816055297851, 0.007383008003234864, 0.007874080181121826, 0.007090976238250732, 0.007244128227233887, 0.006539711952209473, 0.006626368045806885, 0.007142335891723633, 0.007254816055297851, 0.007474559783935547, 0.006737023830413818, 0.006666880130767822, 0.006635392189025879, 0.0067786240577697755, 0.006795167922973633, 0.006467455863952636, 0.0064704642295837405, 0.006448351860046387, 0.006468416213989258, 0.006493631839752197, 0.00647814416885376, 0.006476704120635986, 0.006481184005737305, 0.006462175846099854, 0.006481696128845215, 0.006491199970245361, 0.006471839904785157, 0.006583072185516357, 0.006509600162506103, 0.0065064959526062015, 0.006481311798095703, 0.006495520114898682, 0.0064934720993041995, 0.00649455976486206, 0.006510560035705566, 0.006480607986450195, 0.006487008094787598, 0.006510272026062012, 0.00649183988571167, 0.006500256061553955, 0.006555744171142578 ] }, "throughput": { "unit": "tokens/s", "value": 143.59861287046638 }, "energy": { "unit": "kWh", "cpu": 7.271953418979913e-08, "ram": 3.960869717288538e-08, "gpu": 1.423910320224024e-07, "total": 2.54719263385087e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3925890.7501164945 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.4810137934684753, "mean": 0.0065001863982226404, "stdev": 0.0003506041379186515, "p50": 0.006631936073303223, "p90": 0.006875238370895386, "p95": 0.0069849086523056025, "p99": 0.007361720457077027, "values": [ 0.007046144008636474, 0.006685696125030518, 0.007079936027526855, 0.006822944164276123, 0.006802432060241699, 0.0066406397819519045, 0.0067420158386230465, 0.006772736072540283, 0.007387135982513428, 0.006938623905181885, 0.006748159885406494, 0.006772736072540283, 0.006713312149047851, 0.006738944053649902, 0.006536191940307618, 0.006595583915710449, 0.006560768127441406, 0.006766592025756836, 0.006782976150512696, 0.006822912216186523, 0.0067348480224609375, 0.0068853759765625, 0.006937600135803222, 0.006747136116027832, 0.006631423950195312, 0.0066826238632202144, 0.0067870721817016606, 0.0066713600158691405, 0.006651904106140137, 0.006668288230895996, 0.006851583957672119, 0.006760447978973389, 0.0067573761940002445, 0.00673689603805542, 0.006774784088134766, 0.007352320194244385, 0.006632448196411133, 0.006743040084838867, 0.006146048069000244, 0.006202367782592774, 0.006632448196411133, 0.006737919807434082, 0.006951935768127441, 0.006336512088775635, 0.006276095867156982, 0.006245376110076905, 0.006385663986206055, 0.006402048110961914, 0.00608358383178711, 0.006086624145507812, 0.00606822395324707, 0.006085631847381592, 0.006102015972137451, 0.006097919940948486, 0.006093823909759521, 0.006100992202758789, 0.006080512046813965, 0.006098944187164307, 0.006097919940948486, 0.006090752124786377, 0.006197311878204346, 0.006118400096893311, 0.006088704109191895, 0.006089727878570556, 0.006112256050109863, 0.006113279819488526, 0.006114304065704346, 0.006118400096893311, 0.006076416015625, 0.006093823909759521, 0.006127615928649902, 0.006111231803894043, 0.006116352081298828, 0.006169600009918213 ] }, "throughput": { "unit": "tokens/s", "value": 153.8417421804138 }, "energy": null, "efficiency": null } } }