IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
42579b6
verified
{ | |
"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": "1981150adc21fc49153cb832dbc6f0ecca02bc2a", | |
"transformers_version": "4.41.0", | |
"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": 1047.08096, | |
"max_global_vram": 2087.612416, | |
"max_process_vram": 247080.194048, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.83456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.4995989542007446, | |
"mean": 0.009083617349104449, | |
"stdev": 0.0005365157134191187, | |
"p50": 0.008972805023193359, | |
"p90": 0.009414500045776368, | |
"p95": 0.009589076709747315, | |
"p99": 0.01111172338485718, | |
"values": [ | |
0.012113445281982422, | |
0.009782725334167481, | |
0.009374564170837402, | |
0.009506084442138673, | |
0.009161284446716308, | |
0.009283843994140626, | |
0.009279205322265624, | |
0.008593124389648437, | |
0.008794883728027343, | |
0.009173283576965332, | |
0.009441123962402344, | |
0.009287843704223633, | |
0.010258404731750489, | |
0.009289604187011719, | |
0.00949648380279541, | |
0.009282724380493164, | |
0.009307205200195312, | |
0.009323365211486816, | |
0.009266084671020507, | |
0.009277923583984375, | |
0.00900832462310791, | |
0.0089827241897583, | |
0.00897056484222412, | |
0.008960003852844239, | |
0.008972805023193359, | |
0.008955364227294921, | |
0.00899808406829834, | |
0.008962404251098633, | |
0.009005284309387207, | |
0.008941763877868653, | |
0.008974404335021972, | |
0.008941763877868653, | |
0.008943524360656738, | |
0.008928323745727539, | |
0.008909764289855958, | |
0.008946723937988281, | |
0.008976003646850587, | |
0.00896672534942627, | |
0.008957283973693848, | |
0.00896848487854004, | |
0.008973604202270507, | |
0.008972644805908203, | |
0.008987044334411621, | |
0.008963844299316407, | |
0.0089260835647583, | |
0.008951363563537597, | |
0.009053764343261718, | |
0.008958244323730468, | |
0.008929763793945313, | |
0.008532803535461425, | |
0.008438243865966796, | |
0.00823392391204834, | |
0.008192323684692382, | |
0.008634404182434082, | |
0.008287364006042481 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 220.1766018024944 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1047.08096, | |
"max_global_vram": 2087.60832, | |
"max_process_vram": 231577.088, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.058304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.5058322420120239, | |
"mean": 0.009196949854764071, | |
"stdev": 0.0005241640931765316, | |
"p50": 0.008961443901062011, | |
"p90": 0.00996883659362793, | |
"p95": 0.010009317207336426, | |
"p99": 0.0100365358543396, | |
"values": [ | |
0.010040164947509766, | |
0.009972484588623046, | |
0.01000384521484375, | |
0.0096475248336792, | |
0.009777765274047851, | |
0.010022085189819336, | |
0.00952640438079834, | |
0.009648804664611816, | |
0.00982752513885498, | |
0.009705764770507812, | |
0.009795684814453125, | |
0.009780804634094238, | |
0.009889124870300293, | |
0.00985056495666504, | |
0.009907204627990723, | |
0.009963364601135253, | |
0.01003344440460205, | |
0.009974244117736817, | |
0.009813605308532715, | |
0.009012643814086913, | |
0.008958403587341308, | |
0.008986563682556152, | |
0.008995203971862794, | |
0.00893808364868164, | |
0.008920483589172364, | |
0.009061924934387207, | |
0.008959684371948242, | |
0.008912005424499513, | |
0.008919363975524902, | |
0.008928165435791016, | |
0.008901124000549316, | |
0.008942885398864746, | |
0.008920164108276367, | |
0.008904644966125488, | |
0.008961443901062011, | |
0.008928645133972167, | |
0.009003523826599122, | |
0.008942724227905274, | |
0.009120163917541503, | |
0.008949283599853516, | |
0.008979523658752441, | |
0.008947843551635743, | |
0.008936004638671875, | |
0.008900004386901856, | |
0.008956005096435547, | |
0.008957283973693848, | |
0.008942404747009277, | |
0.008944004058837891, | |
0.00897712516784668, | |
0.008562884330749511, | |
0.008534884452819825, | |
0.00832080364227295, | |
0.008341922760009765, | |
0.008067363739013672, | |
0.008116642951965332 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 108.73170081295969 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.9856425132751466, | |
"mean": 0.018252639134724937, | |
"stdev": 0.0008191229173279524, | |
"p50": 0.017991047859191894, | |
"p90": 0.01937797737121582, | |
"p95": 0.019422786235809324, | |
"p99": 0.019960846881866456, | |
"values": [ | |
0.019788488388061524, | |
0.019413770675659178, | |
0.018993288040161132, | |
0.019017288208007813, | |
0.01933104705810547, | |
0.0190355281829834, | |
0.01825664710998535, | |
0.01866976737976074, | |
0.0188444881439209, | |
0.019439529418945313, | |
0.019086408615112304, | |
0.020155208587646484, | |
0.01918496894836426, | |
0.019398090362548828, | |
0.01915408706665039, | |
0.01932992744445801, | |
0.01941200828552246, | |
0.01931136894226074, | |
0.01862000846862793, | |
0.018010887145996093, | |
0.018012807846069335, | |
0.017999368667602537, | |
0.017932327270507812, | |
0.017932167053222658, | |
0.01803392791748047, | |
0.018006568908691407, | |
0.01791360855102539, | |
0.01795968818664551, | |
0.01790928840637207, | |
0.017910568237304688, | |
0.017909608840942382, | |
0.01791120719909668, | |
0.01786912727355957, | |
0.017894567489624022, | |
0.017926567077636717, | |
0.018009927749633788, | |
0.017948488235473632, | |
0.018096967697143553, | |
0.017970087051391602, | |
0.01798272705078125, | |
0.017960168838500976, | |
0.017957767486572265, | |
0.017897607803344727, | |
0.017914087295532226, | |
0.01795248794555664, | |
0.01801856803894043, | |
0.017937448501586913, | |
0.017942567825317383, | |
0.01714240837097168, | |
0.016992807388305664, | |
0.016650407791137696, | |
0.016522247314453124, | |
0.016740806579589845, | |
0.016430728912353514 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 54.78659785135065 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |