IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
22fc50b verified
raw
history blame
17.3 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.225-213.878.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.5.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": "1.22.0",
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 804.876288,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.339328
},
"latency": {
"unit": "s",
"values": [
8.291576171875
],
"count": 1,
"total": 8.291576171875,
"mean": 8.291576171875,
"p50": 8.291576171875,
"p90": 8.291576171875,
"p95": 8.291576171875,
"p99": 8.291576171875,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.961784194445045e-07,
"ram": 5.185421991828078e-07,
"gpu": 1.7233347119997855e-06,
"total": 3.2380553306270982e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1227.624448,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"values": [
0.006989984035491943,
0.006893087863922119,
0.006935167789459229,
0.006929215908050537,
0.007030496120452881,
0.007078464031219482,
0.007037759780883789,
0.006869599819183349,
0.0070902080535888675,
0.006910592079162598,
0.007029695987701416,
0.007272799968719482,
0.007289440155029297,
0.00734822416305542,
0.006815231800079345,
0.006903584003448486,
0.006863584041595459,
0.006839680194854736,
0.007112031936645508,
0.007602848052978515,
0.007430463790893555,
0.0073122239112854,
0.007132160186767578,
0.006855264186859131,
0.007147935867309571,
0.00719212818145752,
0.006901088237762451,
0.006916351795196533,
0.007261119842529297,
0.007258495807647705,
0.007489280223846435,
0.006684095859527588,
0.006384928226470948,
0.00641209602355957,
0.006411680221557617,
0.0063771200180053715,
0.0063976640701293944,
0.006336287975311279,
0.006464128017425537,
0.00632476806640625,
0.006336639881134034,
0.006313248157501221,
0.006337408065795898,
0.00640067195892334,
0.006332736015319824,
0.0063229122161865235,
0.006302271842956543,
0.006918144226074219,
0.006692480087280273,
0.006983520030975342,
0.006629759788513183,
0.006649280071258545,
0.006630144119262695,
0.006645567893981933,
0.006611104011535644,
0.0066003198623657226,
0.006606207847595215,
0.00656387186050415,
0.0065927357673645015,
0.006601823806762695,
0.006574079990386963,
0.006343552112579346,
0.006322559833526612,
0.006303296089172363,
0.006288959980010987,
0.006324992179870605,
0.006603456020355224,
0.006598080158233642,
0.006325600147247315,
0.00631766414642334,
0.006303775787353516,
0.006356192111968994,
0.006595295906066894
],
"count": 73,
"total": 0.4918593282699584,
"mean": 0.006737799017396692,
"p50": 0.006645567893981933,
"p90": 0.007260595035552979,
"p95": 0.0073266240119934075,
"p99": 0.007521079216003418,
"stdev": 0.00035477870259618076,
"stdev_": 5.265498446601899
},
"throughput": {
"unit": "tokens/s",
"value": 296.83283737554217
},
"energy": {
"unit": "kWh",
"cpu": 7.962909126118629e-08,
"ram": 4.351171361892711e-08,
"gpu": 1.589169802281845e-07,
"total": 2.820577851082979e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7090745.604600444
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1227.624448,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"values": [
0.007290783882141113,
0.007379968166351319,
0.007331744194030761,
0.007357024192810059,
0.0074646401405334475,
0.007391679763793946,
0.007267776012420654,
0.007380127906799316,
0.007385759830474853,
0.007421887874603271,
0.007618207931518555,
0.007753536224365234,
0.007829760074615479,
0.00714902400970459,
0.007364223957061768,
0.0072278399467468266,
0.007258656024932861,
0.007334112167358398,
0.007404672145843506,
0.00786627197265625,
0.007710527896881103,
0.007694399833679199,
0.007632927894592285,
0.007415647983551025,
0.007339871883392334,
0.007628191947937011,
0.0070862717628479,
0.007556320190429688,
0.007563168048858642,
0.007720160007476807,
0.008109760284423829,
0.006747104167938232,
0.006719423770904541,
0.006676864147186279,
0.006730400085449219,
0.00669977617263794,
0.006646175861358642,
0.006753471851348877,
0.006775775909423828,
0.0066600642204284665,
0.0071824960708618164,
0.00667299222946167,
0.006658688068389893,
0.00668175983428955,
0.006660831928253174,
0.006659167766571045,
0.006644032001495361,
0.006983359813690185,
0.007872223854064941,
0.007020383834838867,
0.006966207981109619,
0.006927296161651612,
0.006955584049224853,
0.007050144195556641,
0.006937952041625977,
0.006937183856964111,
0.006959392070770264,
0.006890944004058838,
0.006891424179077148,
0.006921440124511719,
0.006923711776733398,
0.006633279800415039,
0.00664518404006958,
0.00663865613937378,
0.006618015766143799,
0.006667935848236084,
0.007030975818634033,
0.006919616222381591,
0.0066267199516296385,
0.006646912097930908,
0.006652383804321289,
0.006690112113952637,
0.006953472137451172
],
"count": 73,
"total": 0.5184644799232482,
"mean": 0.007102253149633538,
"p50": 0.006983359813690185,
"p90": 0.007682105445861816,
"p95": 0.007784025764465331,
"p99": 0.00793873405456543,
"stdev": 0.00039588720733031154,
"stdev_": 5.574107244413535
},
"throughput": {
"unit": "tokens/s",
"value": 140.80038812071885
},
"energy": {
"unit": "kWh",
"cpu": 7.560545279545008e-08,
"ram": 4.110395745195887e-08,
"gpu": 1.481828325510383e-07,
"total": 2.6489224279844737e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3775119.9862839524
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006793216228485107,
0.006880256175994873,
0.0068249602317810056,
0.006795263767242431,
0.0069212160110473635,
0.006876192092895508,
0.006758399963378906,
0.0068618240356445315,
0.006864895820617676,
0.006882304191589355,
0.007094272136688232,
0.007205887794494629,
0.007136256217956543,
0.006671328067779541,
0.0068392958641052244,
0.006719488143920899,
0.00675222396850586,
0.006811647891998291,
0.0068915200233459475,
0.007321599960327148,
0.00714035177230835,
0.007178239822387696,
0.007113728046417236,
0.006914048194885254,
0.006871039867401123,
0.007135231971740722,
0.006674367904663086,
0.007045119762420654,
0.007062528133392334,
0.007135231971740722,
0.007576576232910156,
0.006355967998504639,
0.0063170561790466305,
0.006288383960723877,
0.006340608119964599,
0.006311935901641846,
0.006258687973022461,
0.006314976215362549,
0.006387712001800537,
0.006275072097778321,
0.006772736072540283,
0.00628326416015625,
0.006268928050994873,
0.006293504238128662,
0.006255616188049316,
0.0062638077735900875,
0.006247424125671387,
0.006542335987091064,
0.0073400321006774905,
0.006619135856628418,
0.006567935943603515,
0.006516736030578613,
0.006543360233306885,
0.006642687797546387,
0.006536191940307618,
0.006531040191650391,
0.006519807815551758,
0.006490111827850342,
0.006493184089660644,
0.006518784046173095,
0.006526976108551025,
0.006245376110076905,
0.006236159801483154,
0.006243328094482422,
0.006230016231536865,
0.0062740478515625,
0.0066375679969787596,
0.006509568214416504,
0.006230016231536865,
0.006239232063293457,
0.006255616188049316,
0.006289440155029297,
0.006549503803253174
],
"count": 73,
"total": 0.48531238603591936,
"mean": 0.006648114877204373,
"p50": 0.006567935943603515,
"p90": 0.007135231971740722,
"p95": 0.0071892990112304685,
"p99": 0.007406264457702637,
"stdev": 0.0003367277135278757,
"stdev_": 5.065010454053323
},
"throughput": {
"unit": "tokens/s",
"value": 150.41858007431338
},
"energy": null,
"efficiency": null
}
}
}