IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1a486ee
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": "5", | |
"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": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"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.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1043.357696, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 43329.826816, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.65046875, | |
"mean": 8.65046875, | |
"stdev": 0.0, | |
"p50": 8.65046875, | |
"p90": 8.65046875, | |
"p95": 8.65046875, | |
"p99": 8.65046875, | |
"values": [ | |
8.65046875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1212.690432, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 295724.4416, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5143852987289429, | |
"mean": 0.008573088312149051, | |
"stdev": 0.0005199808271603416, | |
"p50": 0.008599178791046143, | |
"p90": 0.009150344753265382, | |
"p95": 0.009278977346420287, | |
"p99": 0.010114330692291257, | |
"values": [ | |
0.008517258644104004, | |
0.008708779335021972, | |
0.00867405891418457, | |
0.008683338165283203, | |
0.008735658645629883, | |
0.009100936889648437, | |
0.009082057952880859, | |
0.009191818237304687, | |
0.00917885684967041, | |
0.009124937057495118, | |
0.008546058654785155, | |
0.008476140022277832, | |
0.00850701904296875, | |
0.00865229892730713, | |
0.008371978759765626, | |
0.00832461929321289, | |
0.008324938774108887, | |
0.00825133991241455, | |
0.008044300079345703, | |
0.00802925968170166, | |
0.00804557991027832, | |
0.008070219993591308, | |
0.008054540634155274, | |
0.008079500198364257, | |
0.008079339981079101, | |
0.008065420150756836, | |
0.00806365966796875, | |
0.008073740005493164, | |
0.008093259811401366, | |
0.008044300079345703, | |
0.008081899642944337, | |
0.008065581321716309, | |
0.008089420318603515, | |
0.008070699691772461, | |
0.008089420318603515, | |
0.008077899932861328, | |
0.008095980644226074, | |
0.008059341430664063, | |
0.00817885971069336, | |
0.009118218421936036, | |
0.009147176742553711, | |
0.009081578254699707, | |
0.009545736312866211, | |
0.010566694259643555, | |
0.009799976348876954, | |
0.009264937400817871, | |
0.00880493927001953, | |
0.008789578437805175, | |
0.008765579223632813, | |
0.008777578353881836, | |
0.008748297691345214, | |
0.008791659355163574, | |
0.008769577980041503, | |
0.008777578353881836, | |
0.008794539451599121, | |
0.008777419090270995, | |
0.008793098449707031, | |
0.008796777725219727, | |
0.008722859382629395, | |
0.007747180938720703 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 233.28816024976322 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1212.74368, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 292912.45568, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.48825112628936757, | |
"mean": 0.00813751877148946, | |
"stdev": 0.0004233854123171433, | |
"p50": 0.008014540672302246, | |
"p90": 0.008831946754455566, | |
"p95": 0.008944290256500243, | |
"p99": 0.009149925088882446, | |
"values": [ | |
0.008363499641418456, | |
0.008382860183715821, | |
0.008259980201721192, | |
0.008308939933776856, | |
0.008551499366760255, | |
0.008818859100341797, | |
0.008939018249511719, | |
0.008837417602539062, | |
0.008831338882446289, | |
0.009044458389282226, | |
0.008336939811706544, | |
0.00827293872833252, | |
0.008147180557250977, | |
0.007849101066589356, | |
0.008010540962219238, | |
0.007907180786132813, | |
0.007828300952911376, | |
0.007796141147613525, | |
0.007716940879821777, | |
0.007955660820007324, | |
0.007824780941009522, | |
0.007881259918212891, | |
0.007968460083007813, | |
0.007854220867156982, | |
0.007800460815429688, | |
0.007830060958862305, | |
0.007839661121368408, | |
0.007869260787963867, | |
0.007782540798187256, | |
0.007845100879669189, | |
0.007890059947967529, | |
0.007827179908752441, | |
0.007870541095733643, | |
0.007889420986175536, | |
0.007782861232757569, | |
0.007973421096801757, | |
0.00782446002960205, | |
0.007855979919433594, | |
0.008634538650512695, | |
0.008798538208007812, | |
0.008155980110168458, | |
0.008207500457763672, | |
0.009140937805175782, | |
0.009162858009338378, | |
0.008667179107666016, | |
0.008192139625549317, | |
0.008070219993591308, | |
0.008076939582824707, | |
0.008882537841796875, | |
0.008035181045532226, | |
0.008058859825134277, | |
0.008047340393066406, | |
0.008007341384887696, | |
0.008015501022338866, | |
0.008019499778747559, | |
0.008013580322265625, | |
0.008054221153259277, | |
0.008005900382995606, | |
0.007332942008972168, | |
0.007102860927581787 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.88758134771882 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.4540593609809875, | |
"mean": 0.007567656016349791, | |
"stdev": 0.00040704375460890563, | |
"p50": 0.007574620962142944, | |
"p90": 0.008170684337615966, | |
"p95": 0.008377355575561523, | |
"p99": 0.008561929426193236, | |
"values": [ | |
0.007758861064910889, | |
0.0076324610710144045, | |
0.007570221900939942, | |
0.0076564621925354, | |
0.007878699779510497, | |
0.008153900146484375, | |
0.008226539611816406, | |
0.00819357967376709, | |
0.008147339820861816, | |
0.00837261962890625, | |
0.007575820922851562, | |
0.007573421001434326, | |
0.0074817419052124025, | |
0.007274702072143555, | |
0.0072947020530700684, | |
0.0072683019638061525, | |
0.007195023059844971, | |
0.007172142028808594, | |
0.007152942180633545, | |
0.007375021934509277, | |
0.007217741966247558, | |
0.007230062007904053, | |
0.007354541778564453, | |
0.007247342109680176, | |
0.007200302124023438, | |
0.0072255821228027345, | |
0.00721438217163086, | |
0.0072683019638061525, | |
0.007196621894836426, | |
0.007224301815032959, | |
0.007227342128753662, | |
0.007196621894836426, | |
0.007252303123474121, | |
0.007298861980438233, | |
0.007212461948394776, | |
0.007368462085723877, | |
0.007226702213287354, | |
0.007193421840667725, | |
0.008027819633483887, | |
0.008153900146484375, | |
0.007757581233978271, | |
0.007783660888671875, | |
0.008595819473266602, | |
0.008538378715515136, | |
0.008168140411376952, | |
0.007738380908966064, | |
0.0076361408233642574, | |
0.007638541221618653, | |
0.008467338562011718, | |
0.007627021789550781, | |
0.007647661209106446, | |
0.007636620998382569, | |
0.007583181858062744, | |
0.007607662200927735, | |
0.007612781047821045, | |
0.007605101108551025, | |
0.007634861946105957, | |
0.007588460922241211, | |
0.006963822841644287, | |
0.006736621856689453 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.1413126917393 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |