IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e5d2872 verified
raw
history blame
13.8 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": "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": 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.2.1",
"optimum_benchmark_commit": "3731aa19b0b76022fb42f78436721c579f50c777",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1048.969216,
"max_global_vram": 1108.054016,
"max_process_vram": 260726.902784,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.5050069293975828,
"mean": 0.008416782156626383,
"stdev": 0.0006576158448118847,
"p50": 0.00840875482559204,
"p90": 0.008822433376312255,
"p95": 0.008910177135467528,
"p99": 0.011221583604812619,
"values": [
0.010713382720947266,
0.008703313827514648,
0.00871307373046875,
0.008828912734985352,
0.008556915283203124,
0.008247956275939942,
0.008213076591491699,
0.008306196212768555,
0.008279315948486328,
0.008315316200256348,
0.008502996444702149,
0.008635154724121094,
0.008482356071472168,
0.008782513618469238,
0.008455474853515626,
0.009219951629638672,
0.00889387321472168,
0.01195289707183838,
0.008679953575134278,
0.008406994819641113,
0.008361716270446778,
0.008465234756469726,
0.008465394973754883,
0.008397235870361328,
0.008522194862365723,
0.008477874755859375,
0.008431474685668945,
0.007880437850952148,
0.007809238910675049,
0.007822999000549316,
0.007822359085083008,
0.008035637855529786,
0.007822359085083008,
0.008417394638061524,
0.008308276176452637,
0.00842251491546631,
0.008411636352539062,
0.007817079067230224,
0.00872347354888916,
0.008496595382690429,
0.008818833351135254,
0.008857713699340821,
0.0088217134475708,
0.008354676246643067,
0.008531794548034669,
0.00864427375793457,
0.008410514831542969,
0.007825879096984864,
0.007862197875976562,
0.00784699821472168,
0.007843799114227295,
0.008208436012268066,
0.00819883632659912,
0.007868597984313965,
0.007852279186248779,
0.007868439197540282,
0.007866038799285888,
0.007842358112335204,
0.00782843780517578,
0.007854358196258545
]
},
"throughput": {
"unit": "tokens/s",
"value": 237.62050184766105
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.969216,
"max_global_vram": 1108.062208,
"max_process_vram": 234557.292544,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.5029402303695679,
"mean": 0.008382337172826132,
"stdev": 0.00031575917916833407,
"p50": 0.008372436046600342,
"p90": 0.008685745811462402,
"p95": 0.008854801654815675,
"p99": 0.009228312520980832,
"values": [
0.009585709571838378,
0.008506196022033691,
0.008571635246276856,
0.008476275444030762,
0.008362516403198243,
0.008188277244567872,
0.008341236114501953,
0.00834523582458496,
0.008137236595153809,
0.008356756210327148,
0.008528915405273438,
0.008516594886779786,
0.008545555114746094,
0.008360916137695313,
0.008753233909606934,
0.008979951858520508,
0.008659153938293458,
0.008972752571105956,
0.008608755111694335,
0.008644755363464356,
0.008285555839538574,
0.00837083625793457,
0.008848593711853028,
0.008478995323181152,
0.00851243495941162,
0.008717714309692383,
0.008374035835266113,
0.008129716873168946,
0.008047957420349122,
0.007971636772155762,
0.008010677337646484,
0.008230356216430664,
0.008622034072875977,
0.00848411464691162,
0.0083922758102417,
0.008289716720581054,
0.008015157699584961,
0.008348276138305664,
0.008682193756103516,
0.00855883502960205,
0.008671314239501952,
0.008635793685913086,
0.008586674690246583,
0.008474035263061524,
0.008432755470275879,
0.008369235992431641,
0.008474196434020996,
0.007951958179473877,
0.007976758003234862,
0.007903159141540527,
0.008330995559692383,
0.00841403579711914,
0.008017877578735351,
0.007897239208221435,
0.007958037853240967,
0.007963158130645753,
0.007921398162841797,
0.008053398132324219,
0.008035317420959472,
0.008060117721557618
]
},
"throughput": {
"unit": "tokens/s",
"value": 119.29847003074524
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 59,
"total": 0.9904659690856934,
"mean": 0.0167875587980626,
"stdev": 0.0008240514790262641,
"p50": 0.016809352874755858,
"p90": 0.01745008430480957,
"p95": 0.01752889995574951,
"p99": 0.019532792968750004,
"values": [
0.01736166763305664,
0.01723830795288086,
0.017307748794555666,
0.016973350524902345,
0.016521673202514648,
0.016530473709106444,
0.01672951126098633,
0.01660135269165039,
0.016572231292724608,
0.017011430740356444,
0.017154949188232422,
0.017142147064208985,
0.017195907592773438,
0.017117509841918944,
0.018368223190307616,
0.017487588882446288,
0.021141008377075197,
0.01731222724914551,
0.01707398796081543,
0.016809352874755858,
0.016763910293579102,
0.0174215087890625,
0.016862472534179686,
0.017095590591430666,
0.0172799072265625,
0.016900390625,
0.01602759552001953,
0.015874316215515136,
0.01591399574279785,
0.015849836349487306,
0.01636871337890625,
0.01644695281982422,
0.016927270889282225,
0.016779752731323243,
0.0167896728515625,
0.016417192459106444,
0.016248395919799805,
0.01752486801147461,
0.017306947708129884,
0.01749222755432129,
0.017565187454223634,
0.01744070816040039,
0.016830791473388673,
0.01684391212463379,
0.017006790161132813,
0.016999589920043946,
0.015840235710144042,
0.015892556190490723,
0.015799277305603026,
0.01622007369995117,
0.016726152420043945,
0.016196393966674806,
0.015873677253723146,
0.015814955711364747,
0.015940075874328614,
0.01587255573272705,
0.015808237075805663,
0.01591367530822754,
0.015938955307006834
]
},
"throughput": {
"unit": "tokens/s",
"value": 59.56792241379413
},
"energy": null,
"efficiency": null
}
}
}