IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a388992 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.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": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 790.859776,
"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.36936865234375,
"mean": 7.36936865234375,
"stdev": 0.0,
"p50": 7.36936865234375,
"p90": 7.36936865234375,
"p95": 7.36936865234375,
"p99": 7.36936865234375,
"values": [
7.36936865234375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.046021781944262e-06,
"ram": 5.196254879362796e-07,
"gpu": 1.842779251999896e-06,
"total": 3.4084265218804376e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1193.1648,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.4874567027091981,
"mean": 0.00686558736210138,
"stdev": 0.000340392165795292,
"p50": 0.006978240013122559,
"p90": 0.007211711883544922,
"p95": 0.007310847997665406,
"p99": 0.00747279372215271,
"values": [
0.007495327949523926,
0.007299615859985352,
0.007080895900726318,
0.007059167861938476,
0.007151616096496582,
0.006915840148925781,
0.007032832145690918,
0.007073696136474609,
0.007142784118652344,
0.006980959892272949,
0.0071703681945800785,
0.007129759788513184,
0.0071888318061828615,
0.007095583915710449,
0.007193727970123291,
0.007165311813354492,
0.007211711883544922,
0.007463136196136475,
0.0071378879547119144,
0.007346911907196045,
0.007322080135345459,
0.0071571521759033205,
0.007154079914093017,
0.0071181440353393554,
0.00709164810180664,
0.006932640075683593,
0.006948800086975098,
0.007131231784820557,
0.007053152084350586,
0.006978240013122559,
0.007002975940704346,
0.007176799774169922,
0.007298943996429444,
0.007186912059783936,
0.007078495979309082,
0.006865344047546387,
0.0070934720039367676,
0.00695743989944458,
0.007185823917388916,
0.00662063980102539,
0.0065328960418701175,
0.006950047969818116,
0.006889088153839111,
0.007286399841308594,
0.006684224128723145,
0.006663871765136719,
0.006607776165008545,
0.006555391788482666,
0.006606207847595215,
0.006544415950775147,
0.006404448032379151,
0.00641926383972168,
0.006420512199401856,
0.0063987522125244145,
0.006466847896575928,
0.006414015769958496,
0.0063976960182189945,
0.006389791965484619,
0.006400800228118896,
0.00638108777999878,
0.006369887828826904,
0.006423935890197754,
0.006398496150970459,
0.006376095771789551,
0.006378367900848388,
0.0064198079109191895,
0.00642790412902832,
0.006375679969787598,
0.006989632129669189,
0.006603487968444824,
0.006589888095855713
]
},
"throughput": {
"unit": "tokens/s",
"value": 291.3079237823363
},
"energy": {
"unit": "kWh",
"cpu": 8.101627189625899e-08,
"ram": 4.429765875275582e-08,
"gpu": 1.6107722636734766e-07,
"total": 2.8639115701636243e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6983455.8470174195
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1211.510784,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5107981429100036,
"mean": 0.007194340040985968,
"stdev": 0.00037928091330071773,
"p50": 0.007324575901031494,
"p90": 0.00761078405380249,
"p95": 0.007665727853775024,
"p99": 0.008094806671142579,
"values": [
0.007646624088287353,
0.007586688041687012,
0.0074841599464416505,
0.0074468798637390135,
0.007243199825286865,
0.007384607791900635,
0.007416224002838135,
0.007494400024414063,
0.008137344360351562,
0.007446720123291016,
0.007409183979034424,
0.007449535846710205,
0.0074624958038330075,
0.007397088050842285,
0.007333951950073242,
0.007555263996124268,
0.008076576232910157,
0.007535999774932862,
0.007653183937072754,
0.007627679824829102,
0.00761078405380249,
0.007603456020355224,
0.007483391761779785,
0.00737500810623169,
0.007278719902038574,
0.007340191841125488,
0.007481919765472412,
0.0073474240303039555,
0.0073630399703979495,
0.007324575901031494,
0.00740169620513916,
0.007501952171325684,
0.007678271770477295,
0.007424799919128418,
0.007576191902160644,
0.007498976230621338,
0.007681920051574707,
0.007201087951660156,
0.007307583808898926,
0.006757984161376953,
0.007166207790374756,
0.0071909441947937015,
0.0073660798072814945,
0.00718671989440918,
0.006946591854095459,
0.006878719806671142,
0.006895743846893311,
0.007017888069152832,
0.0070535998344421385,
0.006734240055084229,
0.006740640163421631,
0.006681439876556397,
0.006699935913085937,
0.006683328151702881,
0.006679264068603516,
0.006694015979766846,
0.006742911815643311,
0.006698272228240967,
0.006695263862609864,
0.006701536178588867,
0.006805376052856445,
0.00667625617980957,
0.006704512119293213,
0.006699647903442383,
0.006699039936065674,
0.006732992172241211,
0.006700799942016601,
0.006683199882507324,
0.006949632167816162,
0.006881152153015137,
0.006785408020019531
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.99815609257084
},
"energy": {
"unit": "kWh",
"cpu": 7.648521362091531e-08,
"ram": 4.1812953822038706e-08,
"gpu": 1.486488986063356e-07,
"total": 2.6694706604928963e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3746061.0255044275
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.4775639672279357,
"mean": 0.006726253059548392,
"stdev": 0.0003189602694916312,
"p50": 0.0068249602317810056,
"p90": 0.00707583999633789,
"p95": 0.007121919870376588,
"p99": 0.007479398584365844,
"values": [
0.007120895862579346,
0.007024640083312988,
0.006961152076721191,
0.00693555212020874,
0.006763519763946534,
0.006879231929779053,
0.006898752212524414,
0.006980607986450196,
0.0076277761459350585,
0.0069253120422363285,
0.00688643217086792,
0.00693452787399292,
0.006951935768127441,
0.006866943836212158,
0.00683622407913208,
0.007035903930664063,
0.007415808200836181,
0.007027711868286133,
0.007100448131561279,
0.00709939193725586,
0.007054336071014404,
0.00707583999633789,
0.006967296123504638,
0.00682700777053833,
0.006791168212890625,
0.006837247848510742,
0.006957056045532227,
0.006845439910888672,
0.006809599876403808,
0.0068249602317810056,
0.006881279945373535,
0.006978559970855713,
0.007122943878173828,
0.006916096210479736,
0.007047167778015137,
0.006994944095611572,
0.007172095775604248,
0.006716415882110595,
0.006873087882995605,
0.006359039783477783,
0.0066938881874084475,
0.006747136116027832,
0.006858751773834228,
0.006740992069244385,
0.006554624080657959,
0.0064778242111206055,
0.006500351905822754,
0.006622208118438721,
0.006620160102844238,
0.006346752166748047,
0.006337535858154297,
0.0062975997924804685,
0.006307839870452881,
0.006300672054290772,
0.006291456222534179,
0.006288383960723877,
0.006359039783477783,
0.006301695823669433,
0.006301695823669433,
0.006308864116668702,
0.0064204797744750975,
0.006292479991912842,
0.006289408206939697,
0.006305791854858398,
0.006318079948425293,
0.0063405442237854,
0.006307839870452881,
0.0062904319763183595,
0.0065413122177124024,
0.0064880638122558594,
0.006387712001800537
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.6711830712984
},
"energy": null,
"efficiency": null
}
}
}