IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9224e5e verified
raw
history blame
13.7 kB
{
"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": {},
"hub_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,
"latency": true,
"memory": 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": "73dd36ea04ff1cc8259f4039b6f9d56dfb9eecd1",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1048.866816,
"max_global_vram": 1107.525632,
"max_process_vram": 170584.952832,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.5072636985778808,
"mean": 0.00874592583754967,
"stdev": 0.0012333215948857226,
"p50": 0.00838467025756836,
"p90": 0.009196137714385986,
"p95": 0.011275420665740965,
"p99": 0.013687979145050048,
"values": [
0.015399428367614746,
0.008433710098266602,
0.008220271110534668,
0.008276430130004883,
0.008822827339172364,
0.00841195011138916,
0.008413869857788086,
0.008379630088806152,
0.008389710426330566,
0.008458028793334961,
0.008478829383850098,
0.008427789688110351,
0.008599148750305177,
0.008664108276367188,
0.008186190605163575,
0.008104911804199219,
0.008062992095947265,
0.008182190895080566,
0.008086031913757324,
0.008051312446594239,
0.00805787181854248,
0.008038512229919434,
0.008108112335205078,
0.008040592193603516,
0.008017552375793458,
0.008065871238708496,
0.008056431770324708,
0.008069071769714355,
0.008037391662597657,
0.008893547058105468,
0.009054506301879883,
0.012396885871887206,
0.011802009582519531,
0.011182493209838867,
0.009499302864074707,
0.009181546211242677,
0.009183465957641601,
0.009127466201782227,
0.009074986457824707,
0.009105385780334473,
0.00905690574645996,
0.009085705757141113,
0.0090972261428833,
0.009068105697631836,
0.009061386108398437,
0.00922570514678955,
0.008847468376159668,
0.008094351768493652,
0.008086191177368165,
0.008067312240600586,
0.008079951286315917,
0.008062992095947265,
0.008075311660766601,
0.008058832168579102,
0.008122032165527343,
0.008047311782836915,
0.008036751747131348,
0.008047792434692383
]
},
"throughput": {
"unit": "tokens/s",
"value": 228.6779052496901
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.866816,
"max_global_vram": 1107.525632,
"max_process_vram": 170584.973312,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 58,
"total": 0.4947002468109133,
"mean": 0.008529314600188156,
"stdev": 0.000652485000248165,
"p50": 0.008303549766540528,
"p90": 0.00898777084350586,
"p95": 0.00971590166091919,
"p99": 0.01118845687866211,
"values": [
0.008518508911132813,
0.008301870346069336,
0.008095151901245117,
0.00842506980895996,
0.00840266990661621,
0.008597867965698242,
0.008302989959716798,
0.008319310188293457,
0.008341711044311523,
0.008397870063781739,
0.008520269393920898,
0.008375789642333984,
0.008418668746948242,
0.008279790878295898,
0.008042832374572755,
0.008210830688476563,
0.008026351928710937,
0.008026191711425781,
0.008114831924438477,
0.008076910972595214,
0.008139150619506836,
0.00792827320098877,
0.008136430740356445,
0.008149871826171875,
0.008017071723937988,
0.008315951347351073,
0.008208110809326171,
0.008129871368408204,
0.00817595100402832,
0.008984267234802246,
0.009798181533813477,
0.011388092994689942,
0.011037854194641114,
0.00970138168334961,
0.008879307746887208,
0.008895147323608398,
0.00896458625793457,
0.008846027374267578,
0.008971785545349121,
0.008896587371826171,
0.008944106101989747,
0.008830826759338379,
0.008895787239074707,
0.008995945930480958,
0.008973226547241211,
0.009007626533508301,
0.008136430740356445,
0.008211470603942872,
0.008115152359008788,
0.00808011245727539,
0.008177071571350098,
0.008304109573364258,
0.00810587215423584,
0.008009872436523437,
0.00818699073791504,
0.008060912132263183,
0.008161871910095216,
0.008143470764160157
]
},
"throughput": {
"unit": "tokens/s",
"value": 117.24271490442386
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 58,
"total": 0.4463066182136536,
"mean": 0.0076949416933388545,
"stdev": 0.0006279267553959053,
"p50": 0.00742491602897644,
"p90": 0.008223198699951171,
"p95": 0.008823395681381225,
"p99": 0.010146370029449464,
"values": [
0.007632753849029541,
0.007326196193695069,
0.007319156169891357,
0.007586355209350586,
0.00754027509689331,
0.0077223539352416996,
0.007455475807189941,
0.007426355838775635,
0.0075217151641845705,
0.007607635021209717,
0.007565394878387451,
0.007503634929656983,
0.007558834075927734,
0.007423476219177246,
0.007313716888427735,
0.0073140358924865725,
0.007307796001434326,
0.007287637233734131,
0.007263796806335449,
0.007333876132965088,
0.007276756763458252,
0.007238836765289307,
0.007296115875244141,
0.007283156871795655,
0.007333236217498779,
0.007432755947113037,
0.0073109960556030276,
0.007307796001434326,
0.007293237209320068,
0.008222670555114745,
0.00880426788330078,
0.01029529857635498,
0.010034020423889161,
0.00893178653717041,
0.008202032089233398,
0.008224431037902833,
0.00818459129333496,
0.008145550727844238,
0.008296429634094238,
0.008122671127319335,
0.008070992469787599,
0.008164111137390137,
0.008115152359008788,
0.0081268310546875,
0.008079952239990234,
0.008134991645812988,
0.007261075973510742,
0.007296435832977295,
0.007265397071838379,
0.007250677108764649,
0.007251317024230957,
0.007416114807128906,
0.007286355972290039,
0.007260597229003906,
0.007297555923461914,
0.00725387716293335,
0.007263317108154297,
0.00726475715637207
]
},
"throughput": {
"unit": "tokens/s",
"value": 129.955500620057
},
"energy": null,
"efficiency": null
}
}
}