IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5763ebe verified
raw
history blame
17.1 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+cu124",
"_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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 803.139584,
"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.8283427734375,
"mean": 7.8283427734375,
"stdev": 0.0,
"p50": 7.8283427734375,
"p90": 7.8283427734375,
"p95": 7.8283427734375,
"p99": 7.8283427734375,
"values": [
7.8283427734375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.373735305559925e-07,
"ram": 4.981030858901684e-07,
"gpu": 1.543890124000016e-06,
"total": 2.979366740446177e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1211.486208,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.4889602856636047,
"mean": 0.006791115078661177,
"stdev": 0.0003721633760366103,
"p50": 0.006861520051956177,
"p90": 0.007185081720352172,
"p95": 0.007356015944480896,
"p99": 0.00764087030410767,
"values": [
0.007370272159576416,
0.007344351768493652,
0.007187744140625,
0.007463808059692383,
0.007151936054229736,
0.007042751789093017,
0.006946591854095459,
0.006863776206970215,
0.007051648139953614,
0.007049983978271485,
0.006796864032745362,
0.0069235520362854,
0.006972928047180176,
0.007035103797912598,
0.006940864086151123,
0.006944672107696533,
0.006991424083709717,
0.006705247879028321,
0.0068897919654846195,
0.006809855937957764,
0.006871263980865478,
0.006900832176208496,
0.007440447807312012,
0.007161119937896729,
0.006854207992553711,
0.006989632129669189,
0.006993887901306152,
0.006963456153869629,
0.00678169584274292,
0.006859263896942139,
0.007046751976013184,
0.0067935681343078615,
0.006870687961578369,
0.0068544321060180664,
0.006866943836212158,
0.007091616153717041,
0.0070373439788818356,
0.0070564160346984865,
0.0069212160110473635,
0.0068423042297363285,
0.007067103862762451,
0.00677942419052124,
0.0065625920295715335,
0.006796671867370606,
0.006447135925292969,
0.007112576007843018,
0.007227903842926026,
0.007265567779541016,
0.008074367523193359,
0.006683328151702881,
0.0064031357765197755,
0.006432640075683594,
0.006390495777130127,
0.006346911907196045,
0.006307040214538574,
0.006344511985778809,
0.006310495853424072,
0.006295743942260742,
0.006313471794128418,
0.0063201279640197755,
0.006336415767669678,
0.006322368144989014,
0.006286623954772949,
0.006299871921539307,
0.006383743762969971,
0.006307487964630127,
0.006296671867370605,
0.006332223892211914,
0.006298143863677979,
0.006317791938781739,
0.006315839767456055,
0.006301599979400635
]
},
"throughput": {
"unit": "tokens/s",
"value": 294.5024457447843
},
"energy": {
"unit": "kWh",
"cpu": 7.844935772626948e-08,
"ram": 4.289147380196013e-08,
"gpu": 1.4526317728476795e-07,
"total": 2.666040088129976e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7501762.66630277
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1229.832192,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.5138149461746215,
"mean": 0.007136318696869743,
"stdev": 0.00040730305106302363,
"p50": 0.007225584030151368,
"p90": 0.0075439745903015136,
"p95": 0.007805777621269226,
"p99": 0.008098915271759037,
"values": [
0.0076993279457092285,
0.007538847923278809,
0.007915264129638671,
0.007817728042602539,
0.007445343971252441,
0.00730463981628418,
0.007412320137023926,
0.007257215976715088,
0.0075277118682861325,
0.007318528175354004,
0.0072486081123352055,
0.007381152153015136,
0.0073376321792602535,
0.007323808193206787,
0.007284416198730469,
0.007291935920715332,
0.007189151763916016,
0.007095712184906006,
0.007224287986755371,
0.007231967926025391,
0.007240672111511231,
0.007469088077545166,
0.007796000003814698,
0.007399775981903076,
0.00719375991821289,
0.0073814082145690916,
0.007264768123626709,
0.007287040233612061,
0.007138432025909424,
0.007194687843322754,
0.0073489599227905275,
0.0071955199241638184,
0.0072288641929626465,
0.007226880073547363,
0.007414400100708008,
0.0073985280990600585,
0.007396224021911621,
0.007283999919891358,
0.007301407814025879,
0.007162176132202149,
0.007176352024078369,
0.007052063941955566,
0.007135456085205078,
0.006818272113800049,
0.007104383945465088,
0.007544544219970703,
0.0076258878707885745,
0.007877344131469727,
0.008548543930053712,
0.006700255870819092,
0.006671008110046387,
0.006682079792022705,
0.0066975998878479005,
0.006714560031890869,
0.006624320030212402,
0.006603839874267578,
0.00662556791305542,
0.006648223876953125,
0.00661513614654541,
0.006626815795898438,
0.00672540807723999,
0.006610112190246582,
0.006611680030822754,
0.00661900806427002,
0.006603519916534423,
0.006620736122131348,
0.006678143978118897,
0.006610688209533692,
0.006612800121307373,
0.0066386241912841796,
0.00662278413772583,
0.006600992202758789
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.12827095833563
},
"energy": {
"unit": "kWh",
"cpu": 7.486888629972907e-08,
"ram": 4.093670179234755e-08,
"gpu": 1.3745428535625751e-07,
"total": 2.5325987344833416e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3948513.384233382
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.4793485460281372,
"mean": 0.006657618694835239,
"stdev": 0.0003490717878811318,
"p50": 0.006706176042556763,
"p90": 0.007019974327087402,
"p95": 0.007268048048019409,
"p99": 0.007533957076072697,
"values": [
0.0070522880554199216,
0.007006207942962647,
0.007349247932434082,
0.0072713918685913086,
0.0069253120422363285,
0.006774784088134766,
0.0069027838706970214,
0.00672870397567749,
0.006999040126800537,
0.006811647891998291,
0.006719488143920899,
0.006848512172698974,
0.006825984001159668,
0.006812672138214112,
0.006739967823028564,
0.006761472225189209,
0.006703104019165039,
0.006595583915710449,
0.0066744318008422855,
0.006725632190704346,
0.006732800006866455,
0.006947840213775635,
0.007265312194824219,
0.006884352207183838,
0.006677504062652588,
0.006866943836212158,
0.00675328016281128,
0.006778880119323731,
0.006614016056060791,
0.00669593620300293,
0.006842368125915528,
0.006694911956787109,
0.006731776237487793,
0.006709248065948486,
0.00689356803894043,
0.006873087882995605,
0.006870016098022461,
0.00672051191329956,
0.006767615795135498,
0.006647808074951172,
0.006690815925598144,
0.0066007041931152345,
0.006619135856628418,
0.006391808032989502,
0.006663167953491211,
0.007021503925323486,
0.007088128089904785,
0.007323647975921631,
0.007986176013946533,
0.006313983917236328,
0.0062863359451293946,
0.006284224033355713,
0.006268928050994873,
0.006329343795776367,
0.00624128007888794,
0.006211552143096924,
0.006223872184753418,
0.006255616188049316,
0.0062228479385375976,
0.006237184047698975,
0.006312960147857666,
0.006227968215942382,
0.006220799922943115,
0.0062269439697265625,
0.006222815990447998,
0.006239232063293457,
0.0062975997924804685,
0.006209536075592041,
0.00623308801651001,
0.0062566399574279785,
0.006243328094482422,
0.006201344013214111
]
},
"throughput": {
"unit": "tokens/s",
"value": 150.20385603876156
},
"energy": null,
"efficiency": null
}
}
}