![IlyasMoutawwakil's picture](https://cdn-avatars.huggingface.co/v1/production/uploads/1642598610696-noauth.jpeg)
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
86fc763
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 7643 48-Core Processor", | |
"cpu_count": 96, | |
"cpu_ram_mb": 1082028.982272, | |
"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": "ccbe7aacd086723c172c9fa023acf7472f558e93", | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 901.91872, | |
"max_global_vram": 1011.761152, | |
"max_process_vram": 43020.251136, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.777990234375, | |
"mean": 6.777990234375, | |
"stdev": 0.0, | |
"p50": 6.777990234375, | |
"p90": 6.777990234375, | |
"p95": 6.777990234375, | |
"p99": 6.777990234375, | |
"values": [ | |
6.777990234375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.026624, | |
"max_global_vram": 1106.149376, | |
"max_process_vram": 276339.05664, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.5220614161491394, | |
"mean": 0.007910021456805142, | |
"stdev": 0.0013622740235435795, | |
"p50": 0.007610427379608154, | |
"p90": 0.008046908855438233, | |
"p95": 0.008197150230407714, | |
"p99": 0.013862658929824792, | |
"values": [ | |
0.008219070434570312, | |
0.008213470458984375, | |
0.008118908882141113, | |
0.008148189544677734, | |
0.008087868690490723, | |
0.008005949020385742, | |
0.011571242332458495, | |
0.007748507976531983, | |
0.007721467971801758, | |
0.007576507091522217, | |
0.007630106925964356, | |
0.00758994722366333, | |
0.007534428119659424, | |
0.007703067779541016, | |
0.007550107955932617, | |
0.00757314682006836, | |
0.0075723471641540524, | |
0.0075958681106567385, | |
0.007544188022613525, | |
0.0075936279296875, | |
0.007569787979125976, | |
0.018118146896362305, | |
0.007728507995605469, | |
0.007590747833251953, | |
0.007672987937927246, | |
0.007589626789093018, | |
0.007532506942749023, | |
0.007591386795043945, | |
0.007791707992553711, | |
0.007680188179016114, | |
0.007692028045654297, | |
0.007688988208770752, | |
0.007701307773590088, | |
0.007581468105316162, | |
0.007580667972564697, | |
0.0075493078231811525, | |
0.0075941081047058104, | |
0.007628828048706055, | |
0.007583227157592774, | |
0.007554108142852783, | |
0.007593307971954346, | |
0.007784987926483154, | |
0.007976988792419433, | |
0.007782107830047608, | |
0.007758907794952393, | |
0.007923869132995606, | |
0.007593467235565186, | |
0.007618748188018799, | |
0.00760450792312622, | |
0.007605147838592529, | |
0.007605788230895996, | |
0.007608828067779541, | |
0.007609626770019531, | |
0.007596346855163574, | |
0.0076094670295715336, | |
0.007571227073669433, | |
0.007611227989196777, | |
0.007602427959442139, | |
0.0075667471885681155, | |
0.007586747169494629, | |
0.007804187774658203, | |
0.0079078688621521, | |
0.007698907852172852, | |
0.007723867893218994, | |
0.007737467765808106, | |
0.007660987854003906 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 252.84381476353164 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.27648, | |
"max_global_vram": 1107.542016, | |
"max_process_vram": 271387.451392, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.4819158291816712, | |
"mean": 0.007301754987601079, | |
"stdev": 0.00014069974996124351, | |
"p50": 0.007264986038208007, | |
"p90": 0.007464267015457153, | |
"p95": 0.007644628047943115, | |
"p99": 0.0076939798831939694, | |
"values": [ | |
0.00769730806350708, | |
0.007692187786102295, | |
0.007653627872467041, | |
0.0076029071807861325, | |
0.0076509079933166505, | |
0.007317146778106689, | |
0.007465627193450928, | |
0.007417147159576416, | |
0.007156665802001953, | |
0.007194106101989746, | |
0.007184505939483643, | |
0.00717426586151123, | |
0.007188665866851807, | |
0.0071710658073425295, | |
0.007350426197052002, | |
0.007277307033538819, | |
0.007169146060943604, | |
0.007194746017456055, | |
0.0071785860061645505, | |
0.007262906074523926, | |
0.007202745914459229, | |
0.007442586898803711, | |
0.007230906009674072, | |
0.007189465999603272, | |
0.007275227069854736, | |
0.0072499470710754394, | |
0.007197145938873291, | |
0.007389946937561035, | |
0.007376986980438233, | |
0.007191545963287353, | |
0.007287546157836914, | |
0.007235546112060547, | |
0.007075544834136963, | |
0.007237626075744629, | |
0.007170105934143066, | |
0.00721026611328125, | |
0.0072728261947631835, | |
0.007276346206665039, | |
0.007188985824584961, | |
0.007213625907897949, | |
0.007168025970458985, | |
0.00762578821182251, | |
0.007460987091064453, | |
0.007414426803588867, | |
0.0074417867660522465, | |
0.007306587219238281, | |
0.007244186878204346, | |
0.00726706600189209, | |
0.007196345806121826, | |
0.007280985832214356, | |
0.007208186149597168, | |
0.007310747146606445, | |
0.007162586212158203, | |
0.007234267234802246, | |
0.007225787162780762, | |
0.007302106857299805, | |
0.0072893061637878415, | |
0.0072581062316894535, | |
0.007250105857849121, | |
0.007284506797790528, | |
0.007462906837463379, | |
0.007376026153564453, | |
0.007297146797180176, | |
0.007391547203063965, | |
0.007311707019805908, | |
0.0072304258346557616 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.95337650990402 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 66, | |
"total": 0.44761955308914186, | |
"mean": 0.006782114440744574, | |
"stdev": 0.0001392970472779416, | |
"p50": 0.00672154450416565, | |
"p90": 0.006969305992126465, | |
"p95": 0.00710926616191864, | |
"p99": 0.0071742100715637205, | |
"values": [ | |
0.0071664261817932125, | |
0.007188665866851807, | |
0.007112346172332764, | |
0.00710002613067627, | |
0.007131546020507812, | |
0.006792825222015381, | |
0.006914744853973389, | |
0.0068936262130737305, | |
0.006652344226837159, | |
0.006659544944763183, | |
0.006669145107269287, | |
0.006656343936920166, | |
0.00666050386428833, | |
0.006675384044647217, | |
0.006852025032043457, | |
0.006765625, | |
0.006659383773803711, | |
0.006663064002990723, | |
0.0066773037910461425, | |
0.006727863788604736, | |
0.006664184093475342, | |
0.00689442491531372, | |
0.006722744941711426, | |
0.006670423984527588, | |
0.0067493047714233395, | |
0.006693465232849121, | |
0.006682425022125244, | |
0.006919064998626709, | |
0.006933626174926758, | |
0.006726745128631592, | |
0.00683458423614502, | |
0.00676946496963501, | |
0.006653304100036621, | |
0.006720344066619873, | |
0.006678584098815918, | |
0.006715384006500244, | |
0.00672978401184082, | |
0.006757305145263672, | |
0.006690104007720948, | |
0.0066859440803527835, | |
0.006683224201202392, | |
0.007054746150970459, | |
0.006922424793243408, | |
0.006879384994506836, | |
0.006896665096282959, | |
0.006723865032196045, | |
0.006701304912567139, | |
0.006710584163665771, | |
0.006698423862457275, | |
0.006718743801116944, | |
0.0066627440452575685, | |
0.006766264915466309, | |
0.006678744792938233, | |
0.006668505191802979, | |
0.006691545009613037, | |
0.006718265056610107, | |
0.006735864162445068, | |
0.006689144134521484, | |
0.006704184055328369, | |
0.0067016248703002925, | |
0.007004985809326172, | |
0.00691410493850708, | |
0.006828185081481934, | |
0.006834585189819336, | |
0.006813624858856201, | |
0.006707863807678223 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 147.44664200774162 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |