IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2d47d26 verified
raw
history blame
14.4 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+rocm5.7",
"_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": false,
"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 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "3f7b9d2c002cca7024cac52f3c7535f2a03b7b03",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 901.423104,
"max_global_vram": 1011.757056,
"max_process_vram": 47407.906816,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.86658984375,
"mean": 7.86658984375,
"stdev": 0.0,
"p50": 7.86658984375,
"p90": 7.86658984375,
"p95": 7.86658984375,
"p99": 7.86658984375,
"values": [
7.86658984375
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.854592,
"max_global_vram": 1106.141184,
"max_process_vram": 287133.442048,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.5081761326789855,
"mean": 0.008915370748754132,
"stdev": 0.00037885861878261617,
"p50": 0.008941091537475587,
"p90": 0.00922969856262207,
"p95": 0.009358369827270509,
"p99": 0.010023404998779297,
"values": [
0.009294050216674805,
0.009356289863586427,
0.009253411293029786,
0.009366689682006836,
0.009092930793762208,
0.00905629062652588,
0.009213890075683594,
0.010195167541503906,
0.009075011253356934,
0.00903373146057129,
0.00906605052947998,
0.009003171920776367,
0.008876452445983887,
0.009037091255187988,
0.008932771682739258,
0.008906851768493653,
0.008893251419067383,
0.008908931732177734,
0.008940131187438964,
0.009888448715209962,
0.008929410934448241,
0.008929732322692872,
0.009065091133117676,
0.009195651054382324,
0.008977570533752442,
0.00892301082611084,
0.008958050727844238,
0.009197090148925781,
0.009130850791931152,
0.00915981101989746,
0.008941091537475587,
0.008974051475524903,
0.008896612167358398,
0.008944610595703124,
0.008919331550598144,
0.008668452262878419,
0.008631972312927247,
0.008319494247436523,
0.008366212844848633,
0.008180614471435546,
0.008058053970336914,
0.007943974018096924,
0.008056294441223145,
0.008394533157348633,
0.008583332061767578,
0.008866211891174317,
0.008472291946411133,
0.008657571792602538,
0.008948451042175292,
0.008870051383972169,
0.00894525146484375,
0.00891341209411621,
0.008933731079101562,
0.008978371620178222,
0.008963810920715331,
0.008923650741577149,
0.00896781063079834
]
},
"throughput": {
"unit": "tokens/s",
"value": 224.3316690199886
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1056.124928,
"max_global_vram": 1107.525632,
"max_process_vram": 287862.083584,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 57,
"total": 0.4931843523979187,
"mean": 0.00865235705961261,
"stdev": 0.0002900446376191631,
"p50": 0.008725892066955567,
"p90": 0.008891747283935547,
"p95": 0.008919011878967285,
"p99": 0.009150473899841308,
"values": [
0.009002211570739747,
0.008879811286926269,
0.008887651443481446,
0.008733251571655273,
0.008830692291259766,
0.008725892066955567,
0.008831972122192383,
0.008834370613098145,
0.008724931716918946,
0.008905092239379882,
0.008897891044616699,
0.008814531326293945,
0.008665411949157716,
0.008691332817077636,
0.00864717197418213,
0.008759491920471192,
0.008681733131408692,
0.008711172103881835,
0.009339171409606934,
0.008852131843566894,
0.008913251876831054,
0.008689091682434083,
0.008334854125976562,
0.008825411796569824,
0.008787012100219727,
0.008675653457641602,
0.008818692207336425,
0.008942051887512207,
0.008830531120300293,
0.008867172241210938,
0.008798531532287598,
0.00876541233062744,
0.008683332443237305,
0.008744932174682618,
0.008720932006835937,
0.008822052001953126,
0.00833549404144287,
0.008182374000549317,
0.008101413726806641,
0.008163333892822266,
0.007825415134429931,
0.008069415092468262,
0.008115814208984376,
0.008145733833312989,
0.008135494232177734,
0.00825357437133789,
0.008364294052124023,
0.008177413940429687,
0.008869892120361328,
0.008662213325500488,
0.008683972358703614,
0.008698692321777344,
0.00879613208770752,
0.008743331909179688,
0.008703971862792969,
0.008678372383117677,
0.008843172073364257
]
},
"throughput": {
"unit": "tokens/s",
"value": 115.57544298163451
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 57,
"total": 0.4548249464035035,
"mean": 0.007979385024622868,
"stdev": 0.0002841106382367715,
"p50": 0.008061413764953613,
"p90": 0.008212933349609375,
"p95": 0.008257797050476075,
"p99": 0.00846959300994873,
"values": [
0.00830605411529541,
0.008226372718811036,
0.008253092765808106,
0.00810365390777588,
0.008142374038696288,
0.008066373825073242,
0.008139493942260743,
0.008141413688659668,
0.00806429386138916,
0.008247333526611328,
0.008192773818969726,
0.008170212745666504,
0.007974373817443847,
0.007999814987182618,
0.007963974952697754,
0.008079653739929199,
0.007994534969329834,
0.008060934066772461,
0.008677733421325684,
0.008176774024963378,
0.008203973770141601,
0.008038694381713868,
0.007949254989624023,
0.008080134391784668,
0.008090213775634765,
0.008050374984741211,
0.00811501407623291,
0.008276614189147949,
0.008130054473876953,
0.008138854026794434,
0.00811069393157959,
0.008039653778076172,
0.00800749397277832,
0.008061413764953613,
0.008030533790588379,
0.008175173759460449,
0.00768509578704834,
0.007563496112823486,
0.007393735885620117,
0.007468296051025391,
0.007177577018737793,
0.007403817176818848,
0.007459176063537598,
0.007507976055145264,
0.007485095977783203,
0.007571656227111817,
0.007565896034240723,
0.007484295845031738,
0.008147974014282227,
0.007986215114593506,
0.008012934684753418,
0.008034053802490235,
0.008082855224609374,
0.00808397388458252,
0.008044294357299805,
0.00805389404296875,
0.008133254051208495
]
},
"throughput": {
"unit": "tokens/s",
"value": 125.32294116829677
},
"energy": null,
"efficiency": null
}
}
}