IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e45a32b verified
raw
history blame
17.2 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_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.285632,
"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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.203776,
"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.20553759765625,
"mean": 7.20553759765625,
"stdev": 0.0,
"p50": 7.20553759765625,
"p90": 7.20553759765625,
"p95": 7.20553759765625,
"p99": 7.20553759765625,
"values": [
7.20553759765625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.958815243509081e-07,
"ram": 5.299445664147128e-07,
"gpu": 1.6925013540114442e-06,
"total": 3.218327444777065e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1025.048576,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.488556444644928,
"mean": 0.006692554036231891,
"stdev": 0.00024284958906360877,
"p50": 0.006729824066162109,
"p90": 0.006964192199707031,
"p95": 0.007018950271606445,
"p99": 0.00722445291519165,
"values": [
0.00730847978591919,
0.007031775951385498,
0.006933152198791504,
0.006943071842193603,
0.00683628797531128,
0.006859968185424805,
0.006795199871063232,
0.006928703784942627,
0.006834784030914307,
0.006794496059417725,
0.006866623878479004,
0.0069062399864196775,
0.00676582384109497,
0.006866015911102295,
0.006817024230957031,
0.0067042880058288574,
0.0067265920639038084,
0.006745728015899658,
0.006810400009155273,
0.0069352960586547855,
0.006877567768096924,
0.006723936080932617,
0.00701039981842041,
0.006840415954589844,
0.006642111778259277,
0.006783167839050293,
0.006949600219726563,
0.006758815765380859,
0.006741759777069092,
0.006778175830841064,
0.00692742395401001,
0.006987328052520752,
0.006968992233276367,
0.007169407844543457,
0.006938464164733886,
0.006967840194702149,
0.006729824066162109,
0.006947328090667724,
0.006607135772705078,
0.006594175815582275,
0.006756991863250733,
0.00675491189956665,
0.007191775798797607,
0.006671711921691894,
0.006581056118011475,
0.006683648109436035,
0.006614783763885498,
0.006448991775512695,
0.006423391819000244,
0.006543039798736572,
0.006412191867828369,
0.0064263038635253905,
0.006458879947662354,
0.006428415775299072,
0.006427584171295166,
0.0064570879936218266,
0.00643609619140625,
0.0061931519508361815,
0.006524511814117432,
0.006614687919616699,
0.006428415775299072,
0.0064810881614685055,
0.006448063850402832,
0.006409023761749268,
0.006410048007965088,
0.006416512012481689,
0.006407072067260742,
0.00617628812789917,
0.006204031944274903,
0.006463647842407227,
0.006448256015777588,
0.006424543857574463,
0.006436416149139404
]
},
"throughput": {
"unit": "tokens/s",
"value": 298.8395744244241
},
"energy": {
"unit": "kWh",
"cpu": 7.778003259941385e-08,
"ram": 4.2513161843371985e-08,
"gpu": 1.701853213333059e-07,
"total": 2.9047851577609177e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 6885190.784786476
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1040.420864,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5091820487976074,
"mean": 0.006975096558871335,
"stdev": 0.00024223163231314342,
"p50": 0.007035583972930908,
"p90": 0.007253830528259278,
"p95": 0.007307084846496581,
"p99": 0.007472203559875488,
"values": [
0.007400352001190186,
0.007215807914733887,
0.007113664150238037,
0.00719385576248169,
0.006965216159820557,
0.007128672122955322,
0.00725932788848877,
0.007202112197875977,
0.00706883192062378,
0.007193024158477783,
0.0071717119216918946,
0.007196415901184082,
0.0071056318283081055,
0.007214208126068115,
0.007041088104248047,
0.007035583972930908,
0.0069690561294555664,
0.007089407920837403,
0.007182464122772216,
0.007208672046661377,
0.007109087944030762,
0.007136960029602051,
0.007183328151702881,
0.007245471954345703,
0.007053311824798584,
0.007073344230651856,
0.006999551773071289,
0.007073823928833008,
0.007071680068969727,
0.007075295925140381,
0.0072626562118530275,
0.00725977611541748,
0.007564064025878906,
0.0074364800453186036,
0.007373727798461914,
0.007246560096740723,
0.007061823844909668,
0.007017151832580566,
0.006723167896270752,
0.006928351879119873,
0.0070544958114624025,
0.007255648136138916,
0.006983551979064941,
0.0068090238571167,
0.006844831943511963,
0.00680185604095459,
0.006748672008514404,
0.00666534423828125,
0.006688576221466064,
0.006725855827331543,
0.006793216228485107,
0.006680799961090088,
0.006730271816253662,
0.0066936960220336916,
0.006707583904266358,
0.006688704013824463,
0.006675968170166016,
0.006673344135284424,
0.007203872203826904,
0.006850399971008301,
0.006766528129577637,
0.006715616226196289,
0.006732480049133301,
0.006734303951263428,
0.006688255786895752,
0.006674240112304688,
0.006723072052001953,
0.0064737281799316405,
0.006522240161895752,
0.006887616157531739,
0.006716159820556641,
0.006729631900787353,
0.0066917438507080075
]
},
"throughput": {
"unit": "tokens/s",
"value": 143.36719091410163
},
"energy": {
"unit": "kWh",
"cpu": 7.166753143624022e-08,
"ram": 3.91964408098478e-08,
"gpu": 1.3385658856682645e-07,
"total": 2.447205608129144e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4086293.3489453983
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4757449579238891,
"mean": 0.006517054218135468,
"stdev": 0.00019371390286349974,
"p50": 0.006543360233306885,
"p90": 0.006747545719146729,
"p95": 0.006813081550598144,
"p99": 0.006952509593963623,
"values": [
0.006871039867401123,
0.006650879859924317,
0.006614016056060791,
0.006685696125030518,
0.006498303890228272,
0.006623231887817383,
0.006737919807434082,
0.006688767910003662,
0.006589439868927002,
0.006684671878814697,
0.006665215969085693,
0.00669593620300293,
0.006602752208709717,
0.006702079772949219,
0.00657203197479248,
0.006534143924713135,
0.0064849920272827145,
0.0065688958168029785,
0.006672383785247803,
0.006659071922302246,
0.006617087841033936,
0.006594560146331787,
0.006686719894409179,
0.006749184131622315,
0.006566847801208496,
0.006536191940307618,
0.006529024124145508,
0.006543360233306885,
0.0065771517753601075,
0.006573056221008301,
0.006740992069244385,
0.006706175804138184,
0.007046144008636474,
0.006916096210479736,
0.006859776020050049,
0.006749184131622315,
0.006545407772064209,
0.006598688125610351,
0.00632316780090332,
0.0064174079895019534,
0.006614016056060791,
0.006763519763946534,
0.0065669121742248536,
0.006391808032989502,
0.006426623821258545,
0.006398943901062012,
0.0063569917678833006,
0.006271967887878418,
0.006299647808074951,
0.006329343795776367,
0.006400000095367431,
0.006288383960723877,
0.006307839870452881,
0.006305791854858398,
0.0063170561790466305,
0.006294464111328125,
0.0062791681289672855,
0.006268928050994873,
0.006781951904296875,
0.006457344055175781,
0.00637440013885498,
0.006325247764587402,
0.006340608119964599,
0.0063272957801818845,
0.006296576023101807,
0.00628223991394043,
0.006323200225830078,
0.006089727878570556,
0.006137856006622314,
0.006497280120849609,
0.006324160099029541,
0.006337535858154297,
0.0062904319763183595
]
},
"throughput": {
"unit": "tokens/s",
"value": 153.4435600086354
},
"energy": null,
"efficiency": null
}
}
}