IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
959a8d2 verified
raw
history blame
16 kB
{
"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.3.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": 1041.154048,
"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.49276252985000607,
"mean": 0.006843924025694529,
"stdev": 0.0003969095832147207,
"p50": 0.006861055850982666,
"p90": 0.0073406720161437984,
"p95": 0.007367353773117065,
"p99": 0.007604247846603396,
"values": [
0.007833856105804443,
0.007364992141723633,
0.007353216171264648,
0.007305215835571289,
0.006989183902740478,
0.007207520008087158,
0.007102496147155761,
0.007418240070343017,
0.0072576961517333985,
0.007152544021606445,
0.007307295799255371,
0.007238783836364746,
0.007322239875793457,
0.0068504638671875,
0.006959712028503418,
0.007200223922729492,
0.007015200138092041,
0.007370240211486816,
0.0071776962280273434,
0.0073142719268798825,
0.0072334718704223635,
0.0071036162376403806,
0.0073649601936340335,
0.007141600131988526,
0.007152256011962891,
0.007168735980987549,
0.0072394881248474124,
0.007342720031738281,
0.007035232067108154,
0.007510464191436767,
0.007040480136871338,
0.007013760089874268,
0.006844192028045654,
0.006729983806610108,
0.0067717118263244626,
0.007074304103851318,
0.007137279987335205,
0.007134943962097168,
0.006871647834777832,
0.006591807842254638,
0.006632319927215576,
0.006581888198852539,
0.006377056121826172,
0.006373888015747071,
0.00639631986618042,
0.0063515520095825196,
0.006367519855499267,
0.006379392147064209,
0.006363167762756348,
0.006368256092071533,
0.006378208160400391,
0.006511839866638183,
0.006395008087158203,
0.006369152069091797,
0.006400415897369385,
0.006353184223175049,
0.0063439679145812986,
0.006411935806274414,
0.006386079788208008,
0.006350912094116211,
0.006358399868011475,
0.006369887828826904,
0.006370175838470459,
0.006457888126373291,
0.006919328212738037,
0.006529312133789062,
0.006654208183288574,
0.0064704642295837405,
0.006613024234771728,
0.006568352222442627,
0.006578464031219483,
0.0065372161865234375
]
},
"throughput": {
"unit": "tokens/s",
"value": 292.23001197723516
},
"energy": {
"unit": "kWh",
"cpu": 8.038324122135345e-08,
"ram": 4.3949714568368605e-08,
"gpu": 1.580331594594579e-07,
"total": 2.8236611524917994e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7083002.853352492
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1041.154048,
"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.5175344328880309,
"mean": 0.007187978234555987,
"stdev": 0.0003998527368265948,
"p50": 0.007128175973892212,
"p90": 0.007686444711685181,
"p95": 0.007717015862464905,
"p99": 0.0077956398916244505,
"values": [
0.007611839771270752,
0.007681375980377198,
0.0076409921646118165,
0.007498784065246582,
0.00769974422454834,
0.007493184089660644,
0.007616256237030029,
0.007704063892364502,
0.007602079868316651,
0.00784278392791748,
0.007729951858520508,
0.007747456073760987,
0.007649407863616943,
0.007219103813171387,
0.007466239929199219,
0.0075775041580200195,
0.007687007904052735,
0.007647615909576416,
0.007409120082855224,
0.007625088214874267,
0.007534976005554199,
0.007425600051879882,
0.007603104114532471,
0.007706431865692138,
0.007776383876800537,
0.007472544193267822,
0.007652639865875244,
0.0076212477684021,
0.00731328010559082,
0.007528480052947998,
0.0071766400337219234,
0.007242368221282959,
0.006984320163726807,
0.0070797119140625,
0.007529920101165772,
0.0074481282234191894,
0.007628159999847412,
0.007477375984191894,
0.007015359878540039,
0.007046976089477539,
0.006946432113647461,
0.006933887958526611,
0.006757631778717041,
0.006710239887237549,
0.0066979842185974124,
0.0067629761695861814,
0.006717984199523926,
0.006695199966430664,
0.0067424001693725585,
0.0067064957618713375,
0.006790495872497558,
0.006709983825683594,
0.006701183795928955,
0.006694431781768799,
0.0067060160636901855,
0.006709504127502442,
0.006690624237060547,
0.0067374401092529295,
0.00670576000213623,
0.0067259202003479,
0.00672156810760498,
0.006730463981628418,
0.006738527774810791,
0.006829567909240723,
0.006807168006896972,
0.006937983989715576,
0.006901567935943604,
0.0068652482032775875,
0.0069508800506591795,
0.006900256156921387,
0.006919136047363281,
0.0069762239456176755
]
},
"throughput": {
"unit": "tokens/s",
"value": 139.1211780793284
},
"energy": {
"unit": "kWh",
"cpu": 7.683802605080384e-08,
"ram": 4.201327097082315e-08,
"gpu": 1.5091080114580694e-07,
"total": 2.69762098167434e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3706969.981303034
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.48408553504943846,
"mean": 0.006723410209019979,
"stdev": 0.00033713561471991263,
"p50": 0.0066826238632202144,
"p90": 0.00714956784248352,
"p95": 0.007186329483985901,
"p99": 0.007233628334999085,
"values": [
0.007038976192474365,
0.00714035177230835,
0.007104512214660645,
0.00698367977142334,
0.0071526398658752445,
0.006965248107910156,
0.007076863765716553,
0.007170015811920166,
0.007083968162536621,
0.007227392196655274,
0.007198719978332519,
0.0072120318412780765,
0.007132160186767578,
0.0067214398384094235,
0.00695091199874878,
0.007030720233917236,
0.007150591850280762,
0.007108607769012451,
0.006883327960968018,
0.007080959796905518,
0.007032832145690918,
0.006906879901885986,
0.007067647933959961,
0.007176191806793213,
0.00724889612197876,
0.006939648151397705,
0.007108607769012451,
0.00709939193725586,
0.006782976150512696,
0.007004159927368164,
0.00672051191329956,
0.006762495994567871,
0.0065771198272705075,
0.0066304001808166506,
0.007035903930664063,
0.006957056045532227,
0.007046144008636474,
0.007024640083312988,
0.006605823993682861,
0.0066447358131408694,
0.00653926420211792,
0.00652288007736206,
0.006367231845855713,
0.006323200225830078,
0.006307839870452881,
0.006359039783477783,
0.0063272957801818845,
0.006284287929534912,
0.006341631889343262,
0.006319104194641113,
0.006395904064178467,
0.0063201279640197755,
0.006312960147857666,
0.006299647808074951,
0.006271999835968017,
0.006308864116668702,
0.006300672054290772,
0.006346752166748047,
0.006313024044036865,
0.006333439826965332,
0.00633241605758667,
0.006323200225830078,
0.006347775936126709,
0.006434815883636475,
0.006372352123260498,
0.006535168170928955,
0.006501376152038574,
0.006459392070770263,
0.006527999877929688,
0.006500351905822754,
0.006496255874633789,
0.006574079990386963
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.7340455083972
},
"energy": null,
"efficiency": null
}
}
}