IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b4e7b96 verified
raw
history blame
13.4 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"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": {},
"hub_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,
"latency": true,
"memory": 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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1073.340416,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 53,
"total": 0.49266819190979005,
"mean": 0.00929562626244887,
"stdev": 0.0007435922412542118,
"p50": 0.009099776268005372,
"p90": 0.009656141090393066,
"p95": 0.009758291053771974,
"p99": 0.01274051963806152,
"values": [
0.013041088104248047,
0.012463071823120116,
0.00980675220489502,
0.009724991798400879,
0.009497152328491212,
0.00961241626739502,
0.009667072296142578,
0.009532192230224609,
0.00904524803161621,
0.009480959892272949,
0.009581888198852539,
0.009375743865966797,
0.009403072357177734,
0.009053759574890137,
0.009106016159057618,
0.009226783752441407,
0.009252415657043458,
0.009061152458190919,
0.00916800022125244,
0.009115679740905762,
0.009070079803466797,
0.009107968330383302,
0.009022944450378418,
0.009052767753601074,
0.009003392219543457,
0.009257184028625489,
0.009292256355285645,
0.009096991539001465,
0.009231136322021485,
0.008837311744689942,
0.008973535537719726,
0.008735103607177734,
0.00904793643951416,
0.009556256294250488,
0.009376768112182618,
0.009725983619689942,
0.009207712173461915,
0.008989312171936036,
0.008991135597229003,
0.00900879955291748,
0.008921759605407715,
0.008963135719299317,
0.008963871955871582,
0.00856611156463623,
0.009024895668029786,
0.00855568027496338,
0.00851750373840332,
0.009098272323608398,
0.009099776268005372,
0.009178720474243163,
0.008977824211120606,
0.008976703643798828,
0.009023903846740722
]
},
"throughput": {
"unit": "tokens/s",
"value": 215.15494960025572
},
"energy": {
"unit": "kWh",
"cpu": 1.0612456068869622e-07,
"ram": 5.801796913829094e-08,
"gpu": 1.842412188214287e-07,
"total": 3.4838374864841583e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5740795.9118620455
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1073.340416,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 53,
"total": 0.5084744634628294,
"mean": 0.009593857801185466,
"stdev": 0.0005811049527047143,
"p50": 0.009444992065429687,
"p90": 0.010021798133850098,
"p95": 0.010278342819213868,
"p99": 0.011661825485229484,
"values": [
0.012965120315551758,
0.010458784103393555,
0.010298944473266602,
0.009984224319458009,
0.009867136001586913,
0.009905311584472656,
0.010012864112854004,
0.009533344268798828,
0.009506272315979005,
0.010024031639099122,
0.009928576469421387,
0.009971296310424805,
0.009477984428405762,
0.009375200271606446,
0.009756095886230469,
0.009559103965759277,
0.009471136093139649,
0.009531135559082032,
0.009419743537902831,
0.009373087882995606,
0.009490495681762695,
0.00944048023223877,
0.00940614414215088,
0.009400608062744141,
0.009444543838500977,
0.00958732795715332,
0.00961631965637207,
0.009444992065429687,
0.009298144340515136,
0.009283359527587891,
0.008986623764038085,
0.008984767913818359,
0.009803839683532715,
0.01004412841796875,
0.009691167831420898,
0.00966659164428711,
0.009318047523498536,
0.0093023681640625,
0.009403583526611328,
0.009298015594482421,
0.00941158390045166,
0.009309535980224609,
0.00937241554260254,
0.00908950424194336,
0.009276864051818847,
0.008814144134521484,
0.00880732822418213,
0.009335103988647462,
0.01026460838317871,
0.009562272071838379,
0.009270112037658691,
0.009266176223754884,
0.009363871574401855
]
},
"throughput": {
"unit": "tokens/s",
"value": 104.2333564581742
},
"energy": {
"unit": "kWh",
"cpu": 1.0386659102153893e-07,
"ram": 5.6777085493601915e-08,
"gpu": 1.7716745237155528e-07,
"total": 3.378111288866961e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2960234.0316485134
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 52,
"total": 0.9769994583129882,
"mean": 0.01878845112140362,
"stdev": 0.0008332727032720804,
"p50": 0.018596863746643065,
"p90": 0.01955993537902832,
"p95": 0.01972408275604248,
"p99": 0.02159175691604615,
"values": [
0.023069696426391603,
0.020171775817871093,
0.019748863220214845,
0.019422208786010742,
0.019500032424926757,
0.019703807830810546,
0.019183616638183593,
0.018569215774536133,
0.019491840362548828,
0.019566591262817384,
0.019366912841796875,
0.018963455200195312,
0.01846067237854004,
0.01887539291381836,
0.01881292724609375,
0.018774015426635742,
0.01860710334777832,
0.0186296329498291,
0.018524192810058595,
0.018591712951660157,
0.018592767715454102,
0.018413568496704103,
0.018495487213134765,
0.018463743209838866,
0.018880512237548826,
0.018933759689331055,
0.018586624145507814,
0.01860095977783203,
0.018143232345581056,
0.01808896064758301,
0.017736703872680663,
0.018795520782470702,
0.01963007926940918,
0.019137535095214844,
0.019330047607421876,
0.018720767974853517,
0.01830406379699707,
0.018432960510253907,
0.018335744857788085,
0.01835212707519531,
0.018299903869628906,
0.018365440368652345,
0.017682432174682617,
0.018324480056762696,
0.01741414451599121,
0.017350656509399414,
0.018431999206542968,
0.019302400588989257,
0.018852863311767578,
0.018297855377197265,
0.01826304054260254,
0.01840540885925293
]
},
"throughput": {
"unit": "tokens/s",
"value": 53.2241850878708
},
"energy": null,
"efficiency": null
}
}
}