IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
87ede93 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.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.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 720.494592,
"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.1412314453125,
"mean": 7.1412314453125,
"stdev": 0.0,
"p50": 7.1412314453125,
"p90": 7.1412314453125,
"p95": 7.1412314453125,
"p99": 7.1412314453125,
"values": [
7.1412314453125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.708394606908162e-07,
"ram": 5.162872428070386e-07,
"gpu": 0.0,
"total": 1.4871267034978547e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1026.289664,
"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.485422142982483,
"mean": 0.006649618397020314,
"stdev": 0.00035799397905417614,
"p50": 0.006753087997436524,
"p90": 0.006970566272735596,
"p95": 0.007036307239532471,
"p99": 0.007694143905639649,
"values": [
0.007531519889831543,
0.007045119762420654,
0.006899424076080322,
0.006876639842987061,
0.006944992065429687,
0.006654911994934082,
0.006786623954772949,
0.006919424057006836,
0.006899295806884765,
0.006897024154663086,
0.0068954238891601564,
0.006932447910308838,
0.006801407814025879,
0.006849984169006348,
0.0069120960235595705,
0.006753087997436524,
0.006754720211029052,
0.006819231986999512,
0.0069119038581848145,
0.007000832080841064,
0.007094079971313476,
0.006773248195648194,
0.006953695774078369,
0.006897503852844238,
0.0066761598587036135,
0.006878655910491943,
0.006974783897399903,
0.006785215854644776,
0.006920896053314209,
0.0068228478431701664,
0.007030432224273682,
0.006934463977813721,
0.006907519817352295,
0.006884223937988281,
0.00683523178100586,
0.006646975994110107,
0.0064824318885803225,
0.006563744068145752,
0.006336512088775635,
0.006423999786376953,
0.006805247783660888,
0.008112319946289063,
0.006992671966552734,
0.006881696224212646,
0.006682432174682617,
0.006651264190673828,
0.0064666237831115725,
0.00646617603302002,
0.006294112205505371,
0.006275551795959473,
0.006230944156646728,
0.00642460823059082,
0.0062650880813598635,
0.0062390718460083,
0.006256959915161133,
0.006221343994140625,
0.006231776237487793,
0.00626691198348999,
0.006257728099822998,
0.006265503883361816,
0.006217567920684814,
0.006290815830230713,
0.0062408638000488285,
0.0062568001747131344,
0.0062390718460083,
0.006246272087097168,
0.006261536121368408,
0.006266496181488037,
0.006218656063079834,
0.0062722558975219726,
0.006275775909423828,
0.006241504192352295,
0.006197760105133057
]
},
"throughput": {
"unit": "tokens/s",
"value": 300.7691390074651
},
"energy": {
"unit": "kWh",
"cpu": 7.815339891185537e-08,
"ram": 4.2730826785088996e-08,
"gpu": 1.5339559055263233e-07,
"total": 2.742798162495767e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7291823.464618814
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1041.661952,
"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.5129073281288149,
"mean": 0.007026127782586504,
"stdev": 0.0004121627169880719,
"p50": 0.007116320133209228,
"p90": 0.007332575798034668,
"p95": 0.007472716712951659,
"p99": 0.008458050231933594,
"values": [
0.0075131521224975585,
0.0073006081581115725,
0.00727020788192749,
0.007307168006896973,
0.007088736057281494,
0.007170944213867187,
0.0073005762100219725,
0.007321951866149902,
0.007906623840332031,
0.007312191963195801,
0.007300352096557617,
0.007290080070495606,
0.007297760009765625,
0.007290463924407959,
0.007256959915161133,
0.007184288024902344,
0.007141056060791015,
0.007223968029022217,
0.007335231781005859,
0.007321311950683594,
0.007175519943237305,
0.007445759773254394,
0.007206463813781738,
0.007232704162597656,
0.007114816188812256,
0.007256063938140869,
0.007122367858886719,
0.007297376155853272,
0.00715993595123291,
0.0072408318519592285,
0.007348320007324219,
0.00737824010848999,
0.007287936210632324,
0.007116320133209228,
0.007278592109680176,
0.006841567993164063,
0.006923456192016602,
0.0067543678283691405,
0.006585472106933594,
0.006715263843536377,
0.008388511657714844,
0.008636863708496093,
0.0072295360565185545,
0.007295360088348388,
0.006998496055603027,
0.006869664192199707,
0.006814176082611084,
0.006727935791015625,
0.006575295925140381,
0.006617440223693848,
0.006619103908538818,
0.006622560024261474,
0.006573344230651855,
0.006583871841430664,
0.006594912052154541,
0.006585311889648437,
0.006619040012359619,
0.006610559940338135,
0.00659222412109375,
0.006610464096069336,
0.006680031776428222,
0.006598495960235596,
0.00681990385055542,
0.006610208034515381,
0.006613024234771728,
0.006587711811065674,
0.006595871925354004,
0.00661411190032959,
0.0066204161643981935,
0.00662063980102539,
0.0065809922218322756,
0.00663753604888916,
0.0065487041473388675
]
},
"throughput": {
"unit": "tokens/s",
"value": 142.32590566860904
},
"energy": {
"unit": "kWh",
"cpu": 7.467418389576705e-08,
"ram": 4.0723259830056633e-08,
"gpu": 1.5020151842172628e-07,
"total": 2.6559896214754995e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3765074.95328413
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 73,
"total": 0.4791983032226563,
"mean": 0.006564360318118578,
"stdev": 0.00035789162436109694,
"p50": 0.0066109437942504885,
"p90": 0.006825958442687988,
"p95": 0.006939443111419677,
"p99": 0.007888714027404787,
"values": [
0.006952960014343262,
0.006790143966674805,
0.0067645440101623535,
0.006796288013458252,
0.00658022403717041,
0.006667263984680176,
0.006758399963378906,
0.006803455829620361,
0.0074035201072692874,
0.006766592025756836,
0.0067870721817016606,
0.006752255916595459,
0.00678604793548584,
0.006751232147216797,
0.006765567779541016,
0.0066826238632202144,
0.006639616012573242,
0.0067123198509216305,
0.006817791938781738,
0.006804480075836182,
0.006656000137329102,
0.006930431842803955,
0.006694911956787109,
0.0067348480224609375,
0.0066109437942504885,
0.006730751991271973,
0.006606847763061524,
0.006797311782836914,
0.006624256134033203,
0.006713344097137451,
0.0068280320167541505,
0.006838272094726563,
0.006773759841918945,
0.0066191678047180175,
0.006789120197296142,
0.006397952079772949,
0.0064737281799316405,
0.0063539199829101565,
0.006184959888458252,
0.0062863359451293946,
0.007830527782440186,
0.008038335800170899,
0.006776832103729248,
0.0068280000686645505,
0.0065669121742248536,
0.006469632148742676,
0.006419487953186035,
0.006340608119964599,
0.006180863857269287,
0.006201344013214111,
0.00623308801651001,
0.006235136032104492,
0.006187007904052734,
0.0061972799301147465,
0.006209536075592041,
0.006198272228240966,
0.006232063770294189,
0.006206463813781738,
0.00618393611907959,
0.006223872184753418,
0.0062904319763183595,
0.006200319766998291,
0.006408192157745361,
0.0062228479385375976,
0.006217728137969971,
0.006187007904052734,
0.00620143985748291,
0.0062269439697265625,
0.006236159801483154,
0.0062341117858886715,
0.006194176197052002,
0.006227968215942382,
0.006164480209350586
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.33776812035381
},
"energy": null,
"efficiency": null
}
}
}