IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e8ecae1 verified
raw
history blame
13.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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.14",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.0",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1056.256,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 56,
"total": 0.4905064668655395,
"mean": 0.00875904405117035,
"stdev": 0.0006498056077037847,
"p50": 0.008667392253875732,
"p90": 0.009025647640228271,
"p95": 0.009791008234024049,
"p99": 0.011332766389846809,
"values": [
0.012414303779602051,
0.009398271560668945,
0.009042207717895507,
0.008915583610534667,
0.008702719688415527,
0.008596672058105468,
0.008683456420898437,
0.00885148811340332,
0.00873363208770752,
0.008635552406311035,
0.008763263702392578,
0.008834815979003907,
0.008715392112731934,
0.008706336021423339,
0.008650208473205566,
0.00865283203125,
0.008673215866088867,
0.008845024108886719,
0.008875967979431153,
0.008653471946716309,
0.008764575958251954,
0.008607616424560547,
0.008851008415222168,
0.009009087562561035,
0.008662816047668456,
0.008684320449829102,
0.008671968460083009,
0.008895711898803711,
0.008887743949890137,
0.009651552200317383,
0.008937984466552735,
0.0088090238571167,
0.008833472251892089,
0.008460160255432128,
0.010447872161865235,
0.010209376335144044,
0.008460415840148925,
0.008332736015319824,
0.008272000312805176,
0.008198975563049316,
0.00827939224243164,
0.008385184288024903,
0.008310336112976074,
0.00839900779724121,
0.008403103828430175,
0.008360544204711913,
0.008378560066223145,
0.008244383811950683,
0.008345888137817383,
0.008397695541381835,
0.008390368461608887,
0.008356639862060547,
0.00831100845336914,
0.008335840225219727,
0.00833737564086914,
0.008278304100036622
]
},
"throughput": {
"unit": "tokens/s",
"value": 228.33541974626417
},
"energy": {
"unit": "kWh",
"cpu": 1.022633108028507e-07,
"ram": 5.590844393736915e-08,
"gpu": 1.8248817281003812e-07,
"total": 3.4065992755025794e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5870957.627397891
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1056.256,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 56,
"total": 0.5088112640380859,
"mean": 0.009085915429251535,
"stdev": 0.0005851218924527333,
"p50": 0.009076448440551759,
"p90": 0.009467487812042236,
"p95": 0.010211672067642213,
"p99": 0.011301918077468873,
"values": [
0.011725567817687988,
0.009559647560119629,
0.00934995174407959,
0.009023712158203126,
0.009114784240722656,
0.008970720291137695,
0.009081151962280274,
0.009142144203186035,
0.009055520057678223,
0.009125280380249023,
0.009098591804504395,
0.009165599822998046,
0.009139360427856446,
0.008937151908874511,
0.009041728019714356,
0.00908892822265625,
0.009102399826049806,
0.00925068759918213,
0.009014816284179687,
0.009227775573730468,
0.009102144241333009,
0.009312064170837402,
0.00902451229095459,
0.009077343940734863,
0.009077312469482422,
0.009138591766357422,
0.009075584411621094,
0.009282815933227538,
0.009259903907775879,
0.010623680114746094,
0.009375328063964844,
0.009085184097290038,
0.009137408256530762,
0.00962883186340332,
0.01095529556274414,
0.010074336051940918,
0.008596447944641114,
0.008589856147766113,
0.008501631736755371,
0.008610527992248535,
0.00870035171508789,
0.008619104385375977,
0.008651647567749023,
0.00867142391204834,
0.008664128303527831,
0.008540127754211426,
0.008615296363830566,
0.008599103927612305,
0.008623680114746094,
0.008642047882080077,
0.008611040115356445,
0.008668895721435546,
0.008635775566101074,
0.00876806354522705,
0.008583104133605957,
0.008473152160644532
]
},
"throughput": {
"unit": "tokens/s",
"value": 110.06045651498832
},
"energy": {
"unit": "kWh",
"cpu": 9.719844788579345e-08,
"ram": 5.315081752087282e-08,
"gpu": 1.7097970255727377e-07,
"total": 3.213289679639399e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3112075.4731089845
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 55,
"total": 0.9769625549316405,
"mean": 0.017762955544211645,
"stdev": 0.0008756054954022426,
"p50": 0.017787904739379884,
"p90": 0.018300927734375,
"p95": 0.01939292182922363,
"p99": 0.02083975166320801,
"values": [
0.019006464004516603,
0.018428928375244142,
0.01799577522277832,
0.01783500862121582,
0.017622016906738282,
0.017768447875976562,
0.01804902458190918,
0.01781657600402832,
0.01778483200073242,
0.017893375396728514,
0.018041856765747072,
0.017886207580566405,
0.017674240112304687,
0.017738752365112305,
0.01774284744262695,
0.017794111251831054,
0.01810527992248535,
0.01799782371520996,
0.01784320068359375,
0.01795689582824707,
0.017713119506835937,
0.018125823974609375,
0.018100223541259765,
0.01781350326538086,
0.01782476806640625,
0.017787904739379884,
0.018189311981201172,
0.01822412872314453,
0.02029465675354004,
0.01835212707519531,
0.017954816818237306,
0.01800499153137207,
0.018036735534667968,
0.021360639572143555,
0.020396032333374024,
0.017245183944702147,
0.01695644760131836,
0.016799711227416993,
0.01680793571472168,
0.017035263061523438,
0.01703628730773926,
0.0169881591796875,
0.017067007064819336,
0.017119232177734374,
0.016906240463256835,
0.017037343978881837,
0.01684886360168457,
0.01701478385925293,
0.017068031311035157,
0.01702911949157715,
0.01701375961303711,
0.016995328903198242,
0.017125375747680666,
0.01696051216125488,
0.016747520446777343
]
},
"throughput": {
"unit": "tokens/s",
"value": 56.29693760765317
},
"energy": null,
"efficiency": null
}
}
}