IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f57a6e9 verified
raw
history blame
16.8 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-211.872.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.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"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": 792.276992,
"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.4132294921875,
"mean": 7.4132294921875,
"stdev": 0.0,
"p50": 7.4132294921875,
"p90": 7.4132294921875,
"p95": 7.4132294921875,
"p99": 7.4132294921875,
"values": [
7.4132294921875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.968868000004567e-07,
"ram": 5.306960299503185e-07,
"gpu": 1.693612465999885e-06,
"total": 3.2211952959506604e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1198.702592,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.49326096057891844,
"mean": 0.007046585151127406,
"stdev": 0.0004515256315474825,
"p50": 0.007200848102569581,
"p90": 0.007453727865219116,
"p95": 0.007601012682914733,
"p99": 0.008229204444885254,
"values": [
0.007681407928466797,
0.007306335926055908,
0.00740121603012085,
0.007263872146606445,
0.007337855815887451,
0.007348031997680664,
0.007372352123260498,
0.007379776000976563,
0.007372608184814453,
0.007262400150299072,
0.007366591930389404,
0.007414944171905517,
0.00721014404296875,
0.0073324799537658695,
0.007330719947814941,
0.007116735935211182,
0.007331456184387207,
0.007299583911895752,
0.007278592109680176,
0.007452479839324951,
0.007395840167999267,
0.007182464122772216,
0.0073703680038452145,
0.007297247886657715,
0.007805952072143555,
0.007243328094482422,
0.007366623878479004,
0.007138239860534668,
0.007225823879241943,
0.007243552207946777,
0.00719155216217041,
0.00750275182723999,
0.007489535808563232,
0.00723967981338501,
0.007293407917022705,
0.007464960098266602,
0.007179296016693116,
0.006973311901092529,
0.007066304206848144,
0.00675267219543457,
0.008095135688781738,
0.008527615547180175,
0.007297215938568115,
0.00688595199584961,
0.0066904001235961914,
0.006498976230621338,
0.006560768127441406,
0.006542143821716309,
0.00651475191116333,
0.006519999980926514,
0.0064800319671630855,
0.0064783039093017575,
0.0065177597999572755,
0.006495584011077881,
0.0064793601036071775,
0.006495071887969971,
0.006487872123718262,
0.006488255977630615,
0.006576896190643311,
0.006489664077758789,
0.00651142406463623,
0.006507232189178467,
0.006891168117523193,
0.0064676799774169924,
0.0064769601821899414,
0.0064759359359741215,
0.006491968154907227,
0.00645577621459961,
0.006534111976623535,
0.007044447898864746
]
},
"throughput": {
"unit": "tokens/s",
"value": 283.82542140713554
},
"energy": {
"unit": "kWh",
"cpu": 8.036129019800304e-08,
"ram": 4.393741632639771e-08,
"gpu": 1.5219794458107845e-07,
"total": 2.7649665110547916e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7233360.664599989
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1217.110016,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 70,
"total": 0.5151026878356935,
"mean": 0.007358609826224191,
"stdev": 0.0004355363395218304,
"p50": 0.007537983894348144,
"p90": 0.007757750558853149,
"p95": 0.007785966515541077,
"p99": 0.008177497839927675,
"values": [
0.00772764778137207,
0.0076483521461486815,
0.0075948481559753415,
0.007648416042327881,
0.007458240032196045,
0.007799488067626953,
0.007730815887451172,
0.007768064022064209,
0.007769440174102783,
0.007741759777069092,
0.007707136154174805,
0.007715968132019043,
0.007627423763275147,
0.007708703994750977,
0.007518655776977539,
0.007524735927581787,
0.007578783988952636,
0.007551231861114502,
0.0077378878593444824,
0.0076928319931030276,
0.007650496006011963,
0.007748127937316895,
0.00770527982711792,
0.007727327823638916,
0.007906496047973633,
0.007582143783569336,
0.007756800174713135,
0.007585631847381592,
0.007595903873443603,
0.007698368072509765,
0.007752319812774658,
0.007766304016113282,
0.007743743896484375,
0.007626848220825195,
0.007678431987762451,
0.0075114240646362304,
0.007330624103546143,
0.007516511917114258,
0.007072991847991943,
0.007147200107574463,
0.008730624198913574,
0.007928991794586181,
0.007729343891143799,
0.006958655834197998,
0.006869952201843262,
0.006843232154846192,
0.00680291223526001,
0.006994272232055664,
0.0068551039695739745,
0.006823840141296386,
0.006802175998687744,
0.00682480001449585,
0.006838304042816162,
0.006826399803161621,
0.006818336009979248,
0.006807712078094483,
0.0068347201347351075,
0.006815455913543701,
0.006806272029876709,
0.0068056321144104,
0.006934016227722168,
0.00683289623260498,
0.006830687999725342,
0.0068230400085449215,
0.006841856002807617,
0.006831552028656006,
0.006853439807891846,
0.006835487842559815,
0.007336703777313233,
0.006912864208221435
]
},
"throughput": {
"unit": "tokens/s",
"value": 135.89523342252193
},
"energy": {
"unit": "kWh",
"cpu": 7.751572143161804e-08,
"ram": 4.238074046500571e-08,
"gpu": 1.5035785301892446e-07,
"total": 2.7025431491554823e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3700218.4417018094
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 70,
"total": 0.48148595333099375,
"mean": 0.006878370761871338,
"stdev": 0.00037333795246787183,
"p50": 0.007027679920196534,
"p90": 0.007221510457992554,
"p95": 0.007256268739700317,
"p99": 0.007639674921035768,
"values": [
0.0071792640686035155,
0.007117824077606201,
0.007054336071014404,
0.0071198720932006835,
0.006896639823913574,
0.0072540159225463864,
0.00719155216217041,
0.0072213120460510255,
0.007258111953735351,
0.007164927959442138,
0.007171072006225586,
0.007165952205657959,
0.007105535984039306,
0.007124991893768311,
0.007012351989746094,
0.007014400005340577,
0.007068672180175781,
0.007037888050079346,
0.007188479900360107,
0.007165952205657959,
0.007136256217956543,
0.007166975975036621,
0.007185472011566162,
0.007184383869171143,
0.007392255783081054,
0.007062528133392334,
0.007204864025115967,
0.007064576148986816,
0.007078911781311035,
0.007172095775604248,
0.007208960056304932,
0.007231488227844239,
0.007223296165466309,
0.007102464199066162,
0.007137279987335205,
0.007017471790313721,
0.006879231929779053,
0.006956031799316406,
0.006646783828735352,
0.006651904106140137,
0.008135680198669434,
0.007416831970214844,
0.007218175888061523,
0.006549503803253174,
0.0064440321922302245,
0.006452223777770996,
0.006406144142150879,
0.0066007041931152345,
0.006454336166381836,
0.0064204797744750975,
0.0064102401733398436,
0.00643068790435791,
0.006437888145446777,
0.006432767868041992,
0.006418464183807373,
0.0064174079895019534,
0.00643174409866333,
0.006408192157745361,
0.006416384220123291,
0.0064102401733398436,
0.006543360233306885,
0.00643071985244751,
0.006428671836853027,
0.006425600051879882,
0.006425600051879882,
0.00643993616104126,
0.006458367824554443,
0.00642252779006958,
0.006863872051239014,
0.006518784046173095
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.38326511028882
},
"energy": null,
"efficiency": null
}
}
}