IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2ebaaf0
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": "76a02351fb822bf768d5e23c9b8129d5e0d491b2", | |
"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, | |
"llama_cpp_version": null, | |
"llama_cpp_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 901.103616, | |
"max_global_vram": 2717.241344, | |
"max_process_vram": 46180.139008, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.3255947265625, | |
"mean": 7.3255947265625, | |
"stdev": 0.0, | |
"p50": 7.3255947265625, | |
"p90": 7.3255947265625, | |
"p95": 7.3255947265625, | |
"p99": 7.3255947265625, | |
"values": [ | |
7.3255947265625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1055.68256, | |
"max_global_vram": 2811.625472, | |
"max_process_vram": 276582.449152, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.5066794443130495, | |
"mean": 0.009559989515340553, | |
"stdev": 0.00035553736117096576, | |
"p50": 0.00946595573425293, | |
"p90": 0.01002838077545166, | |
"p95": 0.010276313018798828, | |
"p99": 0.01068426300048828, | |
"values": [ | |
0.009499075889587403, | |
0.009702913284301758, | |
0.00946595573425293, | |
0.009383076667785645, | |
0.009284358024597168, | |
0.009312997817993164, | |
0.009488676071166992, | |
0.00926979923248291, | |
0.009363556861877441, | |
0.009558915138244629, | |
0.009767071723937988, | |
0.00950323486328125, | |
0.009354117393493653, | |
0.00954963493347168, | |
0.009333638191223145, | |
0.009513956069946289, | |
0.010344183921813965, | |
0.009733951568603516, | |
0.009995869636535645, | |
0.009593475341796874, | |
0.009451875686645508, | |
0.009919070243835449, | |
0.009614913940429688, | |
0.009536516189575196, | |
0.01023106575012207, | |
0.010594100952148437, | |
0.010036508560180664, | |
0.009837631225585938, | |
0.010781938552856446, | |
0.009880511283874512, | |
0.009646114349365234, | |
0.009451395988464355, | |
0.009340197563171386, | |
0.009456995964050294, | |
0.009520195007324218, | |
0.00953699493408203, | |
0.010154586791992187, | |
0.009668193817138671, | |
0.009371077537536621, | |
0.009332198143005371, | |
0.00924915885925293, | |
0.009220840454101563, | |
0.009275078773498535, | |
0.009236839294433594, | |
0.009217318534851074, | |
0.00938211727142334, | |
0.0094195556640625, | |
0.009309477806091308, | |
0.009228678703308105, | |
0.009259239196777343, | |
0.009206759452819823, | |
0.009152999877929687, | |
0.009140839576721191 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 209.2052503604398 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1055.68256, | |
"max_global_vram": 2813.00992, | |
"max_process_vram": 268476.289024, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.4923546733856202, | |
"mean": 0.009289710818596607, | |
"stdev": 0.0002889370821726901, | |
"p50": 0.009208518981933594, | |
"p90": 0.009735264587402344, | |
"p95": 0.00981084690093994, | |
"p99": 0.010007894477844236, | |
"values": [ | |
0.00931379795074463, | |
0.009388997077941894, | |
0.009186440467834473, | |
0.009227719306945801, | |
0.009094600677490234, | |
0.009201000213623047, | |
0.009154120445251464, | |
0.009169320106506347, | |
0.009200360298156738, | |
0.009735552787780762, | |
0.009452035903930664, | |
0.009208518981933594, | |
0.009135400772094727, | |
0.009171560287475585, | |
0.009240839004516601, | |
0.009707873344421386, | |
0.009665634155273438, | |
0.00978275203704834, | |
0.009442596435546876, | |
0.009182438850402833, | |
0.009802910804748535, | |
0.00935923671722412, | |
0.009337797164916992, | |
0.009234119415283203, | |
0.010109148025512694, | |
0.00982275104522705, | |
0.009508034706115723, | |
0.009914429664611816, | |
0.009707552909851074, | |
0.009327557563781739, | |
0.009255397796630859, | |
0.009086920738220214, | |
0.009322757720947266, | |
0.00944947624206543, | |
0.0090176420211792, | |
0.009318278312683106, | |
0.009734111785888672, | |
0.009234599113464356, | |
0.008907723426818847, | |
0.009046601295471192, | |
0.008982122421264649, | |
0.008990442276000977, | |
0.008961803436279297, | |
0.008917323112487793, | |
0.00892292308807373, | |
0.009108521461486817, | |
0.009040681838989258, | |
0.009150760650634766, | |
0.009130440711975097, | |
0.008995402336120605, | |
0.008921004295349122, | |
0.009042120933532715, | |
0.00903252124786377 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 107.64597731052619 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.4519804801940917, | |
"mean": 0.008527933588567769, | |
"stdev": 0.00025555714399127036, | |
"p50": 0.008425490379333496, | |
"p90": 0.008943050956726074, | |
"p95": 0.008983722114562987, | |
"p99": 0.009138734397888183, | |
"values": [ | |
0.008535087585449219, | |
0.008575407028198243, | |
0.008424050331115722, | |
0.008358610153198243, | |
0.008328371047973633, | |
0.008385650634765625, | |
0.008384530067443847, | |
0.008302611351013183, | |
0.008361491203308105, | |
0.008923083305358888, | |
0.008645326614379882, | |
0.008425490379333496, | |
0.00834757137298584, | |
0.00835461139678955, | |
0.008353330612182618, | |
0.008841644287109375, | |
0.00887588405609131, | |
0.008900044441223144, | |
0.008714445114135742, | |
0.008473488807678222, | |
0.00894804286956787, | |
0.008617486953735352, | |
0.008639245986938477, | |
0.008493167877197266, | |
0.00923715877532959, | |
0.008959242820739746, | |
0.008746125221252442, | |
0.009047881126403808, | |
0.008977002143859863, | |
0.00859572696685791, | |
0.00854644775390625, | |
0.0083883695602417, | |
0.008636366844177247, | |
0.008720206260681153, | |
0.008340210914611816, | |
0.008593008041381836, | |
0.008993802070617675, | |
0.00847732925415039, | |
0.008258451461791992, | |
0.008364529609680175, | |
0.008318611145019531, | |
0.00832085132598877, | |
0.008265811920166016, | |
0.008258131980895997, | |
0.008284372329711914, | |
0.008421489715576172, | |
0.008343570709228516, | |
0.00834437084197998, | |
0.008448849678039551, | |
0.008254772186279296, | |
0.008182453155517579, | |
0.008204212188720703, | |
0.008242450714111327 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 117.26170116293622 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |