IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b9df2ad
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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": "6", | |
"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": "warn", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082014.482432, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-122-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.13.0", | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1106.530304, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 4046.80704, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0789727783203125 | |
], | |
"count": 1, | |
"total": 0.0789727783203125, | |
"mean": 0.0789727783203125, | |
"p50": 0.0789727783203125, | |
"p90": 0.0789727783203125, | |
"p95": 0.0789727783203125, | |
"p99": 0.0789727783203125, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1272.860672, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 279109.9392, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.235456 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.00820721435546875, | |
0.007986093044281006, | |
0.008289294242858887, | |
0.008511533737182617, | |
0.008578575134277344, | |
0.00889537525177002, | |
0.008885455131530762, | |
0.008450413703918457, | |
0.008628334045410156, | |
0.00827169418334961, | |
0.008036013603210448, | |
0.007937294006347656, | |
0.007867692947387695, | |
0.008000013351440429, | |
0.008050574302673339, | |
0.007982573032379151, | |
0.008083213806152343, | |
0.008059372901916504, | |
0.008101932525634766, | |
0.007947373867034912, | |
0.008075053215026856, | |
0.00787889289855957, | |
0.00792785406112671, | |
0.00807809352874756, | |
0.00810401439666748, | |
0.008069933891296387, | |
0.008359535217285156, | |
0.00884193515777588, | |
0.008905295372009278, | |
0.008801135063171386, | |
0.008252654075622558, | |
0.008918576240539551, | |
0.008952335357666015, | |
0.008963855743408203, | |
0.008673134803771973, | |
0.008283853530883789, | |
0.007909133911132812, | |
0.007899373054504395, | |
0.007906894207000732, | |
0.007918414115905761, | |
0.007869293212890625, | |
0.007889132976531982, | |
0.007961773872375488, | |
0.007904813766479493, | |
0.00790513277053833, | |
0.007989933967590332, | |
0.008029932975769044, | |
0.007874733924865722, | |
0.007903693199157714, | |
0.007918572902679444, | |
0.007901134014129639, | |
0.008266894340515137, | |
0.007877613067626953, | |
0.00788193416595459, | |
0.007896974086761474, | |
0.007888493061065673, | |
0.007917452812194824, | |
0.007905454158782958, | |
0.007875693798065185, | |
0.007910734176635742, | |
0.007867053031921386, | |
0.007905932903289795, | |
0.00789473295211792, | |
0.007914574146270751 | |
], | |
"count": 64, | |
"total": 0.5216416893005371, | |
"mean": 0.008150651395320892, | |
"p50": 0.007988013505935669, | |
"p90": 0.008829695129394532, | |
"p95": 0.00890380735397339, | |
"p99": 0.008956597900390625, | |
"stdev": 0.00034308913119886485, | |
"stdev_": 4.209346156011833 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 245.37916087886614 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1272.860672, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 295874.400256, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.257984 | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0073702530860900875, | |
0.007841773986816406, | |
0.007957454204559327, | |
0.008033933639526368, | |
0.007929293155670166, | |
0.008351215362548828, | |
0.007731372833251953, | |
0.007759213924407959, | |
0.007916654109954834, | |
0.007474092960357666, | |
0.007480331897735596, | |
0.00740673303604126, | |
0.007356812953948974, | |
0.007541132926940918, | |
0.0074203329086303714, | |
0.007816654205322265, | |
0.007658573150634765, | |
0.007710413932800293, | |
0.007434573173522949, | |
0.007552332878112793, | |
0.007608492851257324, | |
0.007591692924499511, | |
0.00737361192703247, | |
0.007563212871551514, | |
0.007611692905426026, | |
0.008074413299560547, | |
0.007833773136138917, | |
0.00820993423461914, | |
0.008307854652404785, | |
0.007857452869415284, | |
0.007651692867279053, | |
0.008369773864746093, | |
0.008353934288024903, | |
0.008333133697509766, | |
0.007970413208007813, | |
0.007409132003784179, | |
0.007410731792449951, | |
0.007667852878570557, | |
0.0074134521484375, | |
0.007456653118133545, | |
0.007392013072967529, | |
0.007516333103179932, | |
0.007425292015075684, | |
0.0075817728042602535, | |
0.00755905294418335, | |
0.007421933174133301, | |
0.0074460930824279785, | |
0.0076020932197570805, | |
0.00742529296875, | |
0.007435052871704101, | |
0.007933932781219483, | |
0.007481293201446533, | |
0.007410412788391114, | |
0.007466732025146484, | |
0.0075200128555297854, | |
0.007366252899169922, | |
0.007392013072967529, | |
0.00747409200668335, | |
0.007416491985321045, | |
0.007435691833496094, | |
0.0073396930694580075, | |
0.0074387331008911135, | |
0.007576653003692627, | |
0.007456812858581543 | |
], | |
"count": 64, | |
"total": 0.4893257966041566, | |
"mean": 0.007645715571939946, | |
"p50": 0.007546732902526856, | |
"p90": 0.008062269401550293, | |
"p95": 0.008329341840744018, | |
"p99": 0.008359794931411743, | |
"stdev": 0.0002871508674106882, | |
"stdev_": 3.7557095174262347 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 130.79220520183046 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.006809452056884766, | |
0.007196332931518555, | |
0.007381292819976806, | |
0.0074374527931213375, | |
0.007406571865081787, | |
0.007773454189300537, | |
0.0071985721588134766, | |
0.007202252864837646, | |
0.007307212829589843, | |
0.0069080119132995605, | |
0.006923851013183594, | |
0.006835852146148682, | |
0.006826412200927734, | |
0.0069648118019104005, | |
0.006846092224121094, | |
0.007273932933807373, | |
0.007060011863708496, | |
0.007137292861938476, | |
0.006865451812744141, | |
0.00697457218170166, | |
0.007028652191162109, | |
0.00700353193283081, | |
0.006817290782928467, | |
0.007021131992340088, | |
0.007058412075042725, | |
0.007571211814880371, | |
0.007324172019958496, | |
0.00768785285949707, | |
0.007804014205932617, | |
0.007347692012786866, | |
0.007151691913604736, | |
0.007793773174285889, | |
0.007758573055267334, | |
0.00773809289932251, | |
0.007363852024078369, | |
0.006853930950164795, | |
0.006840171813964843, | |
0.007045291900634766, | |
0.006823050975799561, | |
0.006818090915679932, | |
0.006835532188415527, | |
0.006944811820983886, | |
0.006855690956115722, | |
0.007034572124481201, | |
0.00696641206741333, | |
0.006833931922912598, | |
0.006882252216339112, | |
0.007046092033386231, | |
0.006833611965179443, | |
0.006822092056274414, | |
0.0073104119300842286, | |
0.006853452205657959, | |
0.006835691928863526, | |
0.006877450942993164, | |
0.006942572116851807, | |
0.006823051929473877, | |
0.0068579320907592774, | |
0.006858730792999267, | |
0.006855531215667725, | |
0.006825292110443115, | |
0.0068248119354248045, | |
0.006831212043762207, | |
0.006917771816253662, | |
0.006859052181243897 | |
], | |
"count": 64, | |
"total": 0.45270733356475834, | |
"mean": 0.007073552086949348, | |
"p50": 0.006954811811447144, | |
"p90": 0.0075310841083526614, | |
"p95": 0.00775550103187561, | |
"p99": 0.007797562355995179, | |
"stdev": 0.00029243072444636546, | |
"stdev_": 4.134142519228748 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.37168818548642 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |