IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fed81b2 verified
raw
history blame
17.2 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.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.1",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 805.220352,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.07887155151367188
],
"count": 1,
"total": 0.07887155151367188,
"mean": 0.07887155151367188,
"p50": 0.07887155151367188,
"p90": 0.07887155151367188,
"p95": 0.07887155151367188,
"p99": 0.07887155151367188,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1229.918208,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.410496
},
"latency": {
"unit": "s",
"values": [
0.00705456018447876,
0.007127488136291504,
0.007275199890136719,
0.0070076799392700196,
0.007095263957977295,
0.007181344032287598,
0.007177184104919434,
0.007259359836578369,
0.007114496231079102,
0.0071794562339782715,
0.007162720203399658,
0.006947999954223633,
0.007016448020935059,
0.00700054407119751,
0.0070358080863952635,
0.007291808128356934,
0.007243296146392822,
0.007200416088104248,
0.0072674880027771,
0.007249983787536621,
0.007252831935882568,
0.0071066560745239255,
0.007127808094024658,
0.006893375873565674,
0.006916319847106934,
0.007195583820343018,
0.006879839897155762,
0.006688000202178955,
0.008204607963562012,
0.008447168350219726,
0.007064735889434815,
0.0072839040756225585,
0.006887839794158935,
0.006819551944732666,
0.006860479831695556,
0.006875455856323242,
0.006613152027130127,
0.006651487827301026,
0.006532415866851806,
0.006453983783721924,
0.00643891191482544,
0.006423136234283447,
0.006520063877105713,
0.006433440208435059,
0.006459455966949463,
0.006420639991760254,
0.00639631986618042,
0.006416831970214844,
0.006425759792327881,
0.006426047801971435,
0.006395423889160156,
0.006447391986846924,
0.006410880088806152,
0.006424992084503174,
0.006449632167816162,
0.006441823959350586,
0.006444672107696533,
0.006402656078338623,
0.006419104099273681,
0.006424416065216065,
0.006407072067260742,
0.006425248146057129,
0.0066780481338500975,
0.00657696008682251,
0.006397600173950195,
0.006416128158569336,
0.0064225602149963375,
0.006400608062744141,
0.0064141440391540525,
0.006413887977600097,
0.006455647945404053,
0.006522560119628906,
0.007425727844238281
],
"count": 73,
"total": 0.49722153711318984,
"mean": 0.006811253933057392,
"p50": 0.006688000202178955,
"p90": 0.007258054256439209,
"p95": 0.0072870656967163085,
"p99": 0.008272524871826172,
"stdev": 0.000422461168979208,
"stdev_": 6.202399339846317
},
"throughput": {
"unit": "tokens/s",
"value": 293.63168950335296
},
"energy": {
"unit": "kWh",
"cpu": 8.008890492210744e-08,
"ram": 4.375413045658161e-08,
"gpu": 1.518394608108139e-07,
"total": 2.7568249618950297e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7254722.471118401
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1229.918208,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.458112
},
"latency": {
"unit": "s",
"values": [
0.007211264133453369,
0.007251967906951904,
0.007446080207824707,
0.007241919994354248,
0.0073677759170532224,
0.007337696075439453,
0.007448448181152344,
0.007205952167510987,
0.007322783946990967,
0.007217216014862061,
0.007256959915161133,
0.0070917439460754395,
0.0072212800979614255,
0.0073664641380310055,
0.007140223979949951,
0.0075090560913085936,
0.007435264110565186,
0.007393951892852783,
0.007619616031646729,
0.007318240165710449,
0.007392767906188965,
0.007203807830810547,
0.007218080043792725,
0.0072477121353149414,
0.007095104217529297,
0.006887008190155029,
0.007188064098358154,
0.006969344139099121,
0.008767200469970702,
0.007309120178222656,
0.00717910385131836,
0.007354207992553711,
0.006897791862487793,
0.006962912082672119,
0.007014624118804932,
0.006804543972015381,
0.006953311920166016,
0.006851136207580566,
0.00681603193283081,
0.006597375869750977,
0.0066128320693969725,
0.006699935913085937,
0.006600160121917725,
0.0065773119926452635,
0.00659830379486084,
0.006607295989990235,
0.0065994558334350585,
0.006583295822143555,
0.006598080158233642,
0.006621471881866455,
0.006627103805541992,
0.006599008083343506,
0.006589056015014649,
0.006591263771057129,
0.0066908798217773435,
0.006589759826660156,
0.006608223915100098,
0.006609695911407471,
0.006579840183258056,
0.006588223934173584,
0.00663702392578125,
0.006610559940338135,
0.0068297281265258785,
0.0066631040573120115,
0.006600063800811767,
0.006568160057067871,
0.0065734081268310545,
0.0069755840301513675,
0.00669052791595459,
0.006577280044555664,
0.007126304149627685,
0.006849120140075684,
0.007348320007324219
],
"count": 73,
"total": 0.5093335371017456,
"mean": 0.0069771717411198034,
"p50": 0.006953311920166016,
"p90": 0.007387769508361816,
"p95": 0.0074470273971557616,
"p99": 0.007940939674377442,
"stdev": 0.000385020004438086,
"stdev_": 5.518281887329493
},
"throughput": {
"unit": "tokens/s",
"value": 143.32454999015184
},
"energy": {
"unit": "kWh",
"cpu": 7.4467110382707e-08,
"ram": 4.0676539926044925e-08,
"gpu": 1.760323743580129e-07,
"total": 2.911760246667649e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3434348.693868067
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006703104019165039,
0.006686719894409179,
0.0068884482383728025,
0.006737919807434082,
0.006852608203887939,
0.006819839954376221,
0.006924287796020508,
0.0067010560035705566,
0.006800384044647217,
0.006702079772949219,
0.006740992069244385,
0.006589439868927002,
0.00667955207824707,
0.006830080032348633,
0.006650879859924317,
0.007003136157989502,
0.0069253120422363285,
0.006894591808319092,
0.00704307222366333,
0.006807551860809326,
0.006864895820617676,
0.0067051520347595215,
0.006729728221893311,
0.00669593620300293,
0.006615039825439453,
0.006435840129852295,
0.0067051520347595215,
0.006456319808959961,
0.008179712295532226,
0.006831103801727295,
0.00667852783203125,
0.006903808116912841,
0.0064849920272827145,
0.00652288007736206,
0.0065812478065490725,
0.006405119895935059,
0.006556608200073242,
0.006409215927124024,
0.006421504020690918,
0.006210559844970703,
0.0062259202003479,
0.006316031932830811,
0.006209536075592041,
0.006188096046447754,
0.006174719810485839,
0.006200319766998291,
0.006211584091186524,
0.00619212818145752,
0.0062044157981872555,
0.006211616039276123,
0.0062341117858886715,
0.006203392028808594,
0.006203392028808594,
0.006207488059997559,
0.006305791854858398,
0.006203392028808594,
0.0062239041328430176,
0.006214655876159668,
0.0061849279403686525,
0.006172671794891358,
0.006247424125671387,
0.006221824169158936,
0.006427648067474365,
0.0062791681289672855,
0.00621776008605957,
0.006173696041107178,
0.006170623779296875,
0.00657097578048706,
0.006291456222534179,
0.006182911872863769,
0.0067041277885437015,
0.006418367862701416,
0.0069212160110473635
],
"count": 73,
"total": 0.4764896950721741,
"mean": 0.006527256096879096,
"p50": 0.0064849920272827145,
"p90": 0.0068933630943298334,
"p95": 0.006924697494506836,
"p99": 0.0073613314437866225,
"stdev": 0.00033330280668544284,
"stdev_": 5.106323418883568
},
"throughput": {
"unit": "tokens/s",
"value": 153.2037329557414
},
"energy": null,
"efficiency": null
}
}
}