{ "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.572416, "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.17030712890625, "mean": 7.17030712890625, "stdev": 0.0, "p50": 7.17030712890625, "p90": 7.17030712890625, "p95": 7.17030712890625, "p99": 7.17030712890625, "values": [ 7.17030712890625 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.852477245860632e-07, "ram": 5.241425939023732e-07, "gpu": 1.5930568300001613e-06, "total": 3.102447148488598e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1036.484608, "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.4868608002662658, "mean": 0.006579200003598187, "stdev": 0.0003342242183384058, "p50": 0.0066690719127655024, "p90": 0.0069072704315185545, "p95": 0.006945011067390441, "p99": 0.007412319011688231, "values": [ 0.007301631927490234, 0.006800447940826416, 0.006848383903503418, 0.006799808025360107, 0.00665331220626831, 0.006668863773345947, 0.006827487945556641, 0.006845312118530273, 0.006756576061248779, 0.0068187198638916015, 0.006929728031158447, 0.006807551860809326, 0.006800479888916015, 0.006853439807891846, 0.006757311820983887, 0.006596928119659424, 0.006719391822814941, 0.006778687953948975, 0.006830336093902588, 0.006885216236114502, 0.006915008068084717, 0.0066089282035827635, 0.006876255989074707, 0.006755008220672608, 0.0067257280349731444, 0.006690944194793701, 0.006878143787384034, 0.006669280052185059, 0.006717887878417969, 0.0066943359375, 0.006791488170623779, 0.006941023826599121, 0.00688921594619751, 0.007711584091186523, 0.006952415943145752, 0.007003583908081055, 0.0068098239898681644, 0.006880896091461182, 0.006653567790985107, 0.006549024105072022, 0.006643455982208252, 0.006782495975494384, 0.0069344320297241215, 0.006746111869812011, 0.0066109437942504885, 0.006637728214263916, 0.006447360038757324, 0.006174335956573487, 0.0061931519508361815, 0.006207871913909912, 0.00620300817489624, 0.006188928127288818, 0.006182144165039063, 0.006166111946105957, 0.006208896160125732, 0.006193568229675293, 0.00621401596069336, 0.006165472030639649, 0.0061693120002746585, 0.006173312187194824, 0.006204671859741211, 0.006223487854003906, 0.006215519905090332, 0.006171455860137939, 0.006172895908355713, 0.006202847957611084, 0.00619155216217041, 0.006196928024291992, 0.0061643519401550296, 0.0061636481285095215, 0.00616534423828125, 0.006177472114562988, 0.006194079875946045, 0.0061801280975341795 ] }, "throughput": { "unit": "tokens/s", "value": 303.98832668199674 }, "energy": { "unit": "kWh", "cpu": 7.68884446627822e-08, "ram": 4.203744004638393e-08, "gpu": 1.4851202357141979e-07, "total": 2.674379082805859e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7478371.382944239 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1052.127232, "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.5133037757873536, "mean": 0.006936537510639913, "stdev": 0.0003576956831313161, "p50": 0.0070324640274047855, "p90": 0.0072825631141662595, "p95": 0.007374327945709228, "p99": 0.007755034270286559, "values": [ 0.007501183986663818, 0.0071649918556213376, 0.00711027193069458, 0.00715667200088501, 0.006916096210479736, 0.007111551761627197, 0.007243264198303223, 0.007244063854217529, 0.007216415882110596, 0.007262944221496582, 0.007234911918640136, 0.007219264030456543, 0.007245759963989257, 0.007162432193756104, 0.007023551940917969, 0.0070348801612854, 0.0070057277679443355, 0.007166016101837158, 0.0072854719161987306, 0.007275775909423828, 0.007148960113525391, 0.007249567985534668, 0.00719920015335083, 0.007198592185974121, 0.006962431907653809, 0.0071107840538024904, 0.007204319953918457, 0.007135392189025879, 0.007074368000030517, 0.007110879898071289, 0.007298111915588379, 0.007271647930145264, 0.007291039943695068, 0.008043904304504395, 0.0076481919288635255, 0.0073350720405578615, 0.00703004789352417, 0.007223104000091553, 0.006802464008331299, 0.007090752124786377, 0.007128352165222168, 0.007171743869781494, 0.007447231769561768, 0.006954527854919433, 0.006949376106262207, 0.006923679828643799, 0.006558080196380615, 0.006654208183288574, 0.00652396821975708, 0.006500063896179199, 0.006489759922027588, 0.006534111976623535, 0.006519552230834961, 0.006510975837707519, 0.0064932479858398435, 0.006480671882629394, 0.006528223991394043, 0.006535232067108154, 0.006524415969848632, 0.006507840156555176, 0.006567327976226806, 0.006479519844055176, 0.006551936149597168, 0.006530943870544433, 0.006519423961639404, 0.006508831977844238, 0.006490911960601807, 0.006541215896606446, 0.006519807815551758, 0.006517568111419678, 0.00652243185043335, 0.0065062718391418455, 0.006482016086578369, 0.0066202239990234375 ] }, "throughput": { "unit": "tokens/s", "value": 144.16414507470134 }, "energy": { "unit": "kWh", "cpu": 7.201508004729019e-08, "ram": 3.9368842240283014e-08, "gpu": 1.3671042682858475e-07, "total": 2.4809434911615786e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 4030724.615705776 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 74, "total": 0.4793222060203553, "mean": 0.006477327108383178, "stdev": 0.0002999966109935336, "p50": 0.006548991918563843, "p90": 0.0067531775951385495, "p95": 0.006890985631942749, "p99": 0.007207290930747985, "values": [ 0.006988800048828125, 0.006658048152923584, 0.006614016056060791, 0.006656000137329102, 0.0064430079460144046, 0.006618112087249756, 0.0066744318008422855, 0.0067348480224609375, 0.006716415882110595, 0.006739967823028564, 0.00672051191329956, 0.006710271835327148, 0.006722559928894043, 0.006653984069824218, 0.006549503803253174, 0.006535168170928955, 0.006482944011688232, 0.006647808074951172, 0.00669593620300293, 0.006759488105773926, 0.006647808074951172, 0.006740992069244385, 0.006692863941192627, 0.006686719894409179, 0.006470655918121338, 0.006612991809844971, 0.0066979842185974124, 0.0066406397819519045, 0.0065484800338745115, 0.0066109437942504885, 0.006711296081542969, 0.0067358717918396, 0.006758399963378906, 0.00745472002029419, 0.0071157760620117185, 0.00684441614151001, 0.006565951824188233, 0.006762495994567871, 0.006398975849151611, 0.006627327919006347, 0.006654975891113281, 0.006646783828735352, 0.006977471828460693, 0.006510591983795166, 0.006527999877929688, 0.0064839677810668945, 0.006170623779296875, 0.006271999835968017, 0.006139904022216797, 0.006115327835083008, 0.006104063987731933, 0.006138879776000977, 0.006136832237243653, 0.006127615928649902, 0.006106112003326416, 0.006097919940948486, 0.006123519897460937, 0.006149119853973388, 0.006139904022216797, 0.0061265921592712404, 0.0061859841346740725, 0.006094848155975342, 0.006141952037811279, 0.006147071838378906, 0.006136832237243653, 0.00612556791305542, 0.006107135772705078, 0.006135807991027832, 0.006131711959838867, 0.0061337599754333495, 0.006139904022216797, 0.0061224961280822755, 0.006094848155975342, 0.0062269439697265625 ] }, "throughput": { "unit": "tokens/s", "value": 154.38466874797257 }, "energy": null, "efficiency": null } } }