
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
dca4ff4
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_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": "c45aecda12da41e3b6f6ac9537d2f41a72709a5a", | |
"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.373952, | |
"max_global_vram": 2717.237248, | |
"max_process_vram": 46537.0112, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.84107861328125, | |
"mean": 7.84107861328125, | |
"stdev": 0.0, | |
"p50": 7.84107861328125, | |
"p90": 7.84107861328125, | |
"p95": 7.84107861328125, | |
"p99": 7.84107861328125, | |
"values": [ | |
7.84107861328125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.006144, | |
"max_global_vram": 2811.621376, | |
"max_process_vram": 291456.2048, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5075136780738829, | |
"mean": 0.00818570448506263, | |
"stdev": 0.0004704314940470481, | |
"p50": 0.008011538028717041, | |
"p90": 0.008848571681976319, | |
"p95": 0.009106465339660644, | |
"p99": 0.009752889251708984, | |
"values": [ | |
0.008856891632080078, | |
0.00953592586517334, | |
0.009309847831726075, | |
0.009107289314270019, | |
0.00909080982208252, | |
0.009020570755004884, | |
0.010092242240905762, | |
0.008244256973266601, | |
0.008274016380310058, | |
0.00821705722808838, | |
0.008596573829650879, | |
0.008288415908813476, | |
0.008262975692749024, | |
0.008672093391418457, | |
0.007992097854614258, | |
0.008008578300476073, | |
0.007972578048706054, | |
0.007792900085449219, | |
0.008014497756958007, | |
0.008062336921691894, | |
0.008092738151550294, | |
0.007876419067382812, | |
0.007850499153137206, | |
0.007831140041351319, | |
0.008067776679992675, | |
0.007823460102081299, | |
0.007805540084838867, | |
0.007864739894866943, | |
0.008070656776428223, | |
0.007835619926452637, | |
0.008053216934204101, | |
0.00801641845703125, | |
0.00784473991394043, | |
0.007862019062042236, | |
0.007828740119934082, | |
0.007829380035400391, | |
0.007831779956817627, | |
0.008020097732543946, | |
0.007920098781585694, | |
0.007918179035186768, | |
0.007962498188018799, | |
0.007973858833312988, | |
0.007893858909606933, | |
0.00783561897277832, | |
0.007934819221496582, | |
0.008047456741333009, | |
0.007926979064941407, | |
0.007965057849884034, | |
0.00829081630706787, | |
0.007923139095306396, | |
0.007817378997802734, | |
0.00782521915435791, | |
0.007927138805389405, | |
0.008258175849914551, | |
0.008743292808532714, | |
0.00877369213104248, | |
0.00824329662322998, | |
0.0081013765335083, | |
0.008354496002197266, | |
0.008205215454101562, | |
0.007956577777862548, | |
0.007898499011993408 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 244.32839026251483 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.006144, | |
"max_global_vram": 2813.001728, | |
"max_process_vram": 260721.3568, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5019026861190796, | |
"mean": 0.008095204614823865, | |
"stdev": 0.00037257715150321977, | |
"p50": 0.007935379028320312, | |
"p90": 0.008677357101440429, | |
"p95": 0.008898170709609984, | |
"p99": 0.009105213842391968, | |
"values": [ | |
0.008900410652160644, | |
0.009038009643554688, | |
0.008793851852416993, | |
0.00885561180114746, | |
0.008938970565795899, | |
0.009210328102111816, | |
0.008678173065185547, | |
0.008240896224975586, | |
0.008118658065795899, | |
0.00833481502532959, | |
0.00830025577545166, | |
0.008222017288208008, | |
0.008297375679016113, | |
0.007890978813171386, | |
0.007932098865509033, | |
0.008166816711425781, | |
0.008411934852600098, | |
0.007880739212036133, | |
0.007710820198059082, | |
0.007862500190734863, | |
0.007793379783630371, | |
0.007923298835754395, | |
0.008250496864318847, | |
0.007905058860778809, | |
0.007782020092010498, | |
0.007775619983673095, | |
0.007907138824462891, | |
0.00788649892807007, | |
0.007890978813171386, | |
0.007863938808441162, | |
0.007998339176177979, | |
0.00790057897567749, | |
0.007725860118865967, | |
0.007868419170379639, | |
0.008108736991882325, | |
0.008014497756958007, | |
0.00808969783782959, | |
0.007718979835510254, | |
0.00801657772064209, | |
0.007949858188629151, | |
0.00769434118270874, | |
0.007798500061035156, | |
0.00794761896133423, | |
0.0076730608940124515, | |
0.007807459831237793, | |
0.007932259082794189, | |
0.007897539138793945, | |
0.007740900039672851, | |
0.007829380035400391, | |
0.007938498973846436, | |
0.008093378067016602, | |
0.00783705997467041, | |
0.007750339984893799, | |
0.008647933959960937, | |
0.008670013427734375, | |
0.008619293212890625, | |
0.00810089683532715, | |
0.008210657119750976, | |
0.008013857841491698, | |
0.007928419113159179, | |
0.007721381187438965, | |
0.007894659042358398 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 123.52992266172112 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.45632704544067376, | |
"mean": 0.007360113636139899, | |
"stdev": 0.0003378504933001624, | |
"p50": 0.007200824022293091, | |
"p90": 0.007926306915283203, | |
"p95": 0.008069129657745361, | |
"p99": 0.008223167037963868, | |
"values": [ | |
0.008171936988830567, | |
0.008303296089172364, | |
0.008069217681884766, | |
0.00808473777770996, | |
0.00806745719909668, | |
0.008045057296752929, | |
0.00792457914352417, | |
0.007532261848449707, | |
0.007421702861785889, | |
0.007648581027984619, | |
0.007691620826721191, | |
0.007557541847229004, | |
0.0076375408172607425, | |
0.007199624061584473, | |
0.0072535438537597655, | |
0.007393063068389893, | |
0.007580902099609375, | |
0.007199143886566162, | |
0.007084744930267334, | |
0.007106346130371094, | |
0.007153224945068359, | |
0.007146665096282959, | |
0.007381382942199707, | |
0.007129545211791992, | |
0.007111945152282715, | |
0.007095465183258057, | |
0.007147144794464111, | |
0.007142505168914795, | |
0.007077866077423096, | |
0.007128583908081055, | |
0.007153385162353516, | |
0.007101386070251465, | |
0.007103304862976074, | |
0.007106184959411621, | |
0.007297224044799805, | |
0.007210343837738037, | |
0.007399143218994141, | |
0.007077704906463623, | |
0.007254983901977539, | |
0.00710458517074585, | |
0.007050345897674561, | |
0.007202023983001709, | |
0.007098666191101074, | |
0.007087465763092041, | |
0.007139464855194092, | |
0.0072393050193786624, | |
0.0072621841430664065, | |
0.0070943450927734375, | |
0.007169865131378174, | |
0.007084266185760498, | |
0.007258024215698242, | |
0.0071346650123596195, | |
0.007079465866088867, | |
0.007872260093688965, | |
0.007926498889923096, | |
0.007889059066772461, | |
0.007315302848815918, | |
0.007456902980804443, | |
0.007240583896636963, | |
0.007109226226806641, | |
0.007124905109405518, | |
0.007196744918823242 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 135.86746746541567 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |