IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3565387 verified
raw
history blame
16.9 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.224-212.876.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.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"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": 800.862208,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.02199853515625,
"mean": 8.02199853515625,
"stdev": 0.0,
"p50": 8.02199853515625,
"p90": 8.02199853515625,
"p95": 8.02199853515625,
"p99": 8.02199853515625,
"values": [
8.02199853515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.414252343613852e-06,
"ram": 1.3041316535276624e-06,
"gpu": 3.4441694219955465e-06,
"total": 7.1625534191370605e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1206.693888,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.4885389761924746,
"mean": 0.006880830650598231,
"stdev": 0.0003597221384561142,
"p50": 0.006912543773651123,
"p90": 0.0072921600341796875,
"p95": 0.007383455991744996,
"p99": 0.007750863790512084,
"values": [
0.0075335679054260255,
0.007284512042999267,
0.007039840221405029,
0.007141856193542481,
0.007063168048858643,
0.006867584228515625,
0.006904064178466797,
0.007026112079620362,
0.0071038718223571775,
0.007048511981964111,
0.0068884482383728025,
0.007049952030181885,
0.007074240207672119,
0.007108128070831299,
0.007188735961914062,
0.0070065598487854,
0.0069872641563415525,
0.00682316780090332,
0.006912543773651123,
0.00691651201248169,
0.00691651201248169,
0.007108575820922851,
0.007135968208312988,
0.007038784027099609,
0.006808800220489502,
0.007074272155761719,
0.006891808032989502,
0.0073751997947692875,
0.00689404821395874,
0.006888832092285156,
0.00802246379852295,
0.007274335861206055,
0.007634463787078857,
0.0072211198806762696,
0.007134367942810058,
0.007391712188720703,
0.00732863998413086,
0.0072921600341796875,
0.006968800067901611,
0.006830656051635743,
0.006801472187042236,
0.006822271823883057,
0.006802303791046143,
0.006594272136688233,
0.0064783358573913576,
0.0070947837829589844,
0.007134751796722412,
0.007324512004852295,
0.007002175807952881,
0.006701151847839356,
0.006621407985687256,
0.006632895946502686,
0.0065763840675354,
0.006647776126861573,
0.0065692801475524904,
0.006378464221954346,
0.006377344131469727,
0.006416160106658936,
0.006341536045074463,
0.006366591930389404,
0.006353151798248291,
0.006375840187072754,
0.00692303991317749,
0.0064347200393676755,
0.0063426241874694825,
0.006386047840118409,
0.00638047981262207,
0.00636025619506836,
0.0063528637886047365,
0.0063613119125366215,
0.006384607791900635
]
},
"throughput": {
"unit": "tokens/s",
"value": 290.6625815338322
},
"energy": {
"unit": "kWh",
"cpu": 7.845821025162112e-08,
"ram": 4.287037804660793e-08,
"gpu": 1.5773743303248622e-07,
"total": 2.790660213307152e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7166762.870173443
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1225.039872,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5125828504562379,
"mean": 0.0072194767669892645,
"stdev": 0.000363054993961356,
"p50": 0.007310304164886474,
"p90": 0.00762988805770874,
"p95": 0.0077724320888519285,
"p99": 0.007841385507583617,
"values": [
0.0075335679054260255,
0.007491007804870605,
0.007342720031738281,
0.00727891206741333,
0.0073816637992858885,
0.007152192115783692,
0.007574656009674072,
0.00762988805770874,
0.007584735870361328,
0.007299488067626953,
0.007352704048156738,
0.007422016143798828,
0.00736191987991333,
0.007439487934112548,
0.007429215908050537,
0.00732860803604126,
0.007121024131774903,
0.007196288108825683,
0.007260992050170899,
0.007310272216796875,
0.007398431777954102,
0.007575679779052735,
0.007468512058258056,
0.007293344020843506,
0.007324863910675048,
0.007363776206970215,
0.00761513614654541,
0.007560800075531006,
0.007350304126739502,
0.007473472118377685,
0.00781987190246582,
0.007891583919525146,
0.007597792148590088,
0.007543583869934082,
0.007796160221099854,
0.0077487039566040035,
0.007707136154174805,
0.007639232158660888,
0.007310304164886474,
0.007326432228088379,
0.007153728008270264,
0.006913343906402588,
0.007237919807434082,
0.006682496070861816,
0.006996352195739746,
0.007430624008178711,
0.007589983940124512,
0.007812128067016601,
0.007012928009033203,
0.006971136093139648,
0.006959680080413818,
0.006997568130493164,
0.006984608173370361,
0.00693228816986084,
0.0069043197631835935,
0.006679872035980225,
0.006652768135070801,
0.006682400226593018,
0.006662112236022949,
0.006704736232757569,
0.006767327785491943,
0.0074356160163879395,
0.006751776218414307,
0.0066763520240783695,
0.006665503978729248,
0.00669868803024292,
0.006670783996582031,
0.006666975975036621,
0.006659264087677002,
0.006657311916351319,
0.00667577600479126
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.51419324076994
},
"energy": {
"unit": "kWh",
"cpu": 7.48832533328709e-08,
"ram": 4.092397341434279e-08,
"gpu": 1.4401494512186623e-07,
"total": 2.5982217186907994e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3848786.240243898
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.47861055898666377,
"mean": 0.006740993788544563,
"stdev": 0.000309347536732983,
"p50": 0.0067983360290527345,
"p90": 0.0070891518592834475,
"p95": 0.007238671779632569,
"p99": 0.00732620792388916,
"values": [
0.006987775802612305,
0.006979584217071533,
0.00683622407913208,
0.0067717118263244626,
0.006864895820617676,
0.0066406397819519045,
0.00704204797744751,
0.007102464199066162,
0.0070225920677185055,
0.006774784088134766,
0.006815743923187256,
0.00689356803894043,
0.006850560188293457,
0.0068577280044555666,
0.006918144226074219,
0.006815743923187256,
0.006642687797546387,
0.0067010560035705566,
0.006760447978973389,
0.0067983360290527345,
0.006825984001159668,
0.0070563840866088865,
0.006946879863739014,
0.0067686400413513184,
0.0067983360290527345,
0.006858751773834228,
0.0070891518592834475,
0.007050240039825439,
0.006802495956420899,
0.006939648151397705,
0.007309311866760254,
0.007365632057189942,
0.0070860800743103025,
0.006996992111206054,
0.00727350378036499,
0.007203839778900147,
0.007177216053009033,
0.007069695949554444,
0.006810624122619629,
0.006821887969970703,
0.006671328067779541,
0.00648089599609375,
0.006751232147216797,
0.006295551776885986,
0.006534143924713135,
0.006924287796020508,
0.007069695949554444,
0.00729702377319336,
0.006609920024871826,
0.006565887928009034,
0.006554624080657959,
0.006593535900115967,
0.006558720111846924,
0.006516736030578613,
0.0065075201988220215,
0.006296576023101807,
0.006268928050994873,
0.006296576023101807,
0.006278143882751465,
0.006306816101074219,
0.0063610877990722655,
0.006974463939666748,
0.006345727920532227,
0.0062873601913452145,
0.00628223991394043,
0.006315008163452148,
0.00626585578918457,
0.006281216144561768,
0.00626585578918457,
0.0062638077735900875,
0.006261760234832763
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.34607943110245
},
"energy": null,
"efficiency": null
}
}
}