IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
86e62fd verified
raw
history blame
17.3 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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": 791.191552,
"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.434853515625,
"mean": 7.434853515625,
"stdev": 0.0,
"p50": 7.434853515625,
"p90": 7.434853515625,
"p95": 7.434853515625,
"p99": 7.434853515625,
"values": [
7.434853515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.899456291659842e-07,
"ram": 5.270306161424697e-07,
"gpu": 1.6436124260002776e-06,
"total": 3.1605886713087316e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1199.49312,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.4899820494651793,
"mean": 0.006621379046826748,
"stdev": 0.0002442244002565591,
"p50": 0.006600687980651856,
"p90": 0.0068260383129119875,
"p95": 0.0070900094509124744,
"p99": 0.007534546699523925,
"values": [
0.007720352172851563,
0.007382239818572998,
0.007465824127197266,
0.0072341117858886715,
0.007012415885925293,
0.006555488109588623,
0.006449312210083008,
0.006724736213684082,
0.00666806411743164,
0.006729472160339356,
0.006639520168304444,
0.006687007904052735,
0.0066590080261230465,
0.006871520042419433,
0.006479008197784424,
0.006675104141235352,
0.006653439998626709,
0.006449376106262207,
0.006450079917907715,
0.006561439990997314,
0.00678278398513794,
0.006723680019378662,
0.006694719791412353,
0.006619328022003173,
0.006677343845367432,
0.006579840183258056,
0.006725376129150391,
0.0064083199501037596,
0.006396128177642822,
0.006451200008392334,
0.0065354881286621095,
0.006620736122131348,
0.006659359931945801,
0.006450399875640869,
0.006418399810791016,
0.006452864170074463,
0.006450240135192871,
0.006488287925720215,
0.006431615829467773,
0.006691999912261963,
0.006577663898468018,
0.00664243221282959,
0.0065783681869506835,
0.006633376121520996,
0.006406527996063232,
0.006419968128204345,
0.0066977920532226565,
0.006454432010650634,
0.006382976055145264,
0.0068689918518066405,
0.0066631040573120115,
0.006694047927856445,
0.006612768173217773,
0.0067010560035705566,
0.006691840171813965,
0.0066641921997070315,
0.006444352149963379,
0.006430272102355957,
0.006418464183807373,
0.006432608127593994,
0.00660259199142456,
0.006665664196014404,
0.006515007972717285,
0.006379903793334961,
0.006420447826385498,
0.006414783954620361,
0.0065987839698791505,
0.006610623836517334,
0.006522463798522949,
0.006844575881958008,
0.006428544044494629,
0.006371903896331787,
0.006428671836853027,
0.006437215805053711
]
},
"throughput": {
"unit": "tokens/s",
"value": 302.0518816179972
},
"energy": {
"unit": "kWh",
"cpu": 8.106078189248417e-08,
"ram": 4.428387582543152e-08,
"gpu": 1.5036860102040746e-07,
"total": 2.7571325873832314e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7253913.02961669
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1218.441216,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.516297661304474,
"mean": 0.00697699542303343,
"stdev": 0.0003048312319062124,
"p50": 0.006939136028289794,
"p90": 0.007412073516845704,
"p95": 0.007779294395446778,
"p99": 0.00795105894088745,
"values": [
0.0079137601852417,
0.007808544158935547,
0.007773183822631836,
0.00805190372467041,
0.006812064170837402,
0.006805439949035644,
0.006950431823730468,
0.006921504020690918,
0.007780896186828613,
0.006988671779632569,
0.007011328220367432,
0.006947135925292969,
0.0070239357948303225,
0.00693452787399292,
0.006939519882202148,
0.006968287944793701,
0.006955264091491699,
0.006717279911041259,
0.007134111881256103,
0.006706463813781738,
0.007030272006988526,
0.007011263847351074,
0.006974976062774658,
0.006952032089233399,
0.006954944133758545,
0.006966207981109619,
0.00695139217376709,
0.006726719856262207,
0.006725791931152344,
0.006699103832244873,
0.006940415859222412,
0.006965695858001709,
0.006902368068695069,
0.006743231773376465,
0.006789760112762451,
0.006689695835113525,
0.006769023895263672,
0.0067617278099060055,
0.006898272037506104,
0.006952703952789307,
0.006967423915863037,
0.006943871974945068,
0.00695420789718628,
0.006938752174377442,
0.006775008201599121,
0.00671721601486206,
0.0069333758354187015,
0.006821375846862793,
0.007531199932098389,
0.007014495849609375,
0.006972928047180176,
0.00761897611618042,
0.007013055801391601,
0.0069855360984802245,
0.006938208103179932,
0.006910783767700195,
0.00676803207397461,
0.006716032028198243,
0.006866943836212158,
0.006682271957397461,
0.007036448001861572,
0.006878015995025635,
0.006729152202606201,
0.006737343788146973,
0.006786240100860596,
0.006941055774688721,
0.007015999794006348,
0.006931903839111328,
0.00777843189239502,
0.006923520088195801,
0.0067214398384094235,
0.006726240158081055,
0.006652063846588134,
0.006820256233215332
]
},
"throughput": {
"unit": "tokens/s",
"value": 143.32817199487627
},
"energy": {
"unit": "kWh",
"cpu": 7.468360822995832e-08,
"ram": 4.0867426933202676e-08,
"gpu": 1.3656145308485267e-07,
"total": 2.5211248824801376e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3966483.401711769
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.48584726381301874,
"mean": 0.006565503565040795,
"stdev": 0.0002670676728981437,
"p50": 0.00653107213973999,
"p90": 0.00695900149345398,
"p95": 0.007268721699714661,
"p99": 0.007380121703147888,
"values": [
0.007346176147460938,
0.007269408226013184,
0.007255040168762207,
0.007413760185241699,
0.006423552036285401,
0.006397952079772949,
0.006554624080657959,
0.0065136637687683106,
0.007367680072784424,
0.006553599834442139,
0.006603775978088379,
0.0065413122177124024,
0.00662937593460083,
0.006540287971496582,
0.006524928092956543,
0.00653926420211792,
0.006533120155334473,
0.006330368041992188,
0.006710271835327148,
0.006311935901641846,
0.006632448196411133,
0.006614016056060791,
0.00658022403717041,
0.006557695865631104,
0.0065382399559021,
0.006569983959197998,
0.0065484800338745115,
0.006341631889343262,
0.006334464073181153,
0.006312960147857666,
0.006529024124145508,
0.006569983959197998,
0.006494207859039307,
0.0063569917678833006,
0.006403071880340576,
0.006303743839263916,
0.006381599903106689,
0.006375423908233643,
0.006502431869506836,
0.006559743881225586,
0.006569983959197998,
0.006529024124145508,
0.006560768127441406,
0.006541376113891602,
0.006384640216827392,
0.006330368041992188,
0.006525951862335205,
0.006423552036285401,
0.007065599918365479,
0.006606912136077881,
0.0065669121742248536,
0.007144447803497315,
0.006609920024871826,
0.00657919979095459,
0.006544447898864746,
0.006517727851867675,
0.006354944229125976,
0.006329343795776367,
0.006471680164337158,
0.006295551776885986,
0.006643712043762207,
0.0064839677810668945,
0.006340608119964599,
0.006351871967315674,
0.006398975849151611,
0.0065146880149841305,
0.0066109437942504885,
0.0065372161865234375,
0.007268352031707764,
0.006520832061767578,
0.006335487842559814,
0.00633955192565918,
0.006268928050994873,
0.0064133119583129885
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.31124164255732
},
"energy": null,
"efficiency": null
}
}
}