IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3f5286b verified
raw
history blame
13.7 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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": true,
"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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1086.230528,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.497700605392456,
"mean": 0.009049101916226474,
"stdev": 0.0003546051850359264,
"p50": 0.008977855682373047,
"p90": 0.009435724639892578,
"p95": 0.009883507061004639,
"p99": 0.01029692373275757,
"values": [
0.010236895561218262,
0.009948736190795898,
0.009855551719665527,
0.009278911590576172,
0.008961759567260742,
0.009009119987487792,
0.008991007804870605,
0.009028639793395996,
0.008978015899658203,
0.008638336181640624,
0.008650943756103516,
0.00865891170501709,
0.0089202880859375,
0.01036739158630371,
0.00948419189453125,
0.00906931209564209,
0.008997920036315919,
0.009172991752624511,
0.008964320182800294,
0.00948031997680664,
0.008978272438049316,
0.00896451187133789,
0.008962847709655762,
0.008999232292175294,
0.008982208251953125,
0.00895628833770752,
0.00897923183441162,
0.008960000038146973,
0.008943039894104004,
0.008973631858825683,
0.00912185573577881,
0.0089551362991333,
0.008977855682373047,
0.008973088264465332,
0.008985504150390625,
0.009008831977844238,
0.009109439849853516,
0.009011743545532226,
0.008967904090881348,
0.009368831634521485,
0.009232319831848145,
0.009078944206237793,
0.0089683837890625,
0.00896611213684082,
0.00898953628540039,
0.00893280029296875,
0.008933088302612305,
0.008970303535461426,
0.008950207710266113,
0.008641695976257325,
0.008604543685913086,
0.008652576446533203,
0.008622912406921387,
0.00867420768737793,
0.008609951972961426
]
},
"throughput": {
"unit": "tokens/s",
"value": 221.0164078728833
},
"energy": {
"unit": "kWh",
"cpu": 1.0666343363913689e-07,
"ram": 5.831065451226046e-08,
"gpu": 1.9030295504504476e-07,
"total": 3.552770431964421e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5629409.6066717915
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1086.230528,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.5143298873901367,
"mean": 0.009351452498002486,
"stdev": 0.00034085554928938984,
"p50": 0.009296607971191407,
"p90": 0.009632447814941407,
"p95": 0.010033929634094238,
"p99": 0.010604294509887695,
"values": [
0.01025100803375244,
0.01039129638671875,
0.010854335784912109,
0.009299455642700195,
0.009289376258850098,
0.009326016426086426,
0.009284735679626465,
0.009250271797180175,
0.009307519912719726,
0.008925888061523437,
0.008928544044494629,
0.008950688362121583,
0.009503616333007812,
0.009940896034240723,
0.009379936218261718,
0.009338751792907714,
0.009311424255371094,
0.009275327682495118,
0.009384448051452637,
0.009296607971191407,
0.009255167961120605,
0.009291839599609376,
0.009251680374145508,
0.009325311660766602,
0.009266592025756836,
0.009316320419311524,
0.009381759643554687,
0.009271807670593261,
0.009273792266845703,
0.009300415992736816,
0.00934780788421631,
0.009267775535583497,
0.009275135993957519,
0.009307711601257325,
0.009290719985961914,
0.009551039695739746,
0.009480287551879883,
0.009295519828796386,
0.00968671989440918,
0.009390784263610839,
0.009748767852783204,
0.009328096389770509,
0.009295455932617188,
0.009313952445983887,
0.009245696067810059,
0.009268959999084473,
0.009228256225585938,
0.009266176223754884,
0.009331775665283202,
0.008946335792541504,
0.008924511909484864,
0.008948415756225585,
0.008907808303833007,
0.008948384284973144,
0.0093089599609375
]
},
"throughput": {
"unit": "tokens/s",
"value": 106.9352595453599
},
"energy": {
"unit": "kWh",
"cpu": 1.0063043922151951e-07,
"ram": 5.503258709395833e-08,
"gpu": 1.7535825702392337e-07,
"total": 3.310212833394014e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3020953.788565565
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.9932625885009766,
"mean": 0.018393751638906976,
"stdev": 0.0006087411691731596,
"p50": 0.01830038356781006,
"p90": 0.01890838375091553,
"p95": 0.019477093887329096,
"p99": 0.020580904922485353,
"values": [
0.020397056579589845,
0.020788223266601562,
0.018724863052368163,
0.018290687561035156,
0.018362367630004883,
0.018300928115844727,
0.018312255859375,
0.018300863265991212,
0.01761075210571289,
0.01760767936706543,
0.01763430404663086,
0.01840025520324707,
0.020179967880249023,
0.019098623275756836,
0.018440191268920898,
0.018333696365356447,
0.018481151580810547,
0.018317312240600587,
0.018868288040161132,
0.018255807876586913,
0.018258943557739257,
0.018276351928710938,
0.018351104736328124,
0.01827123260498047,
0.018299903869628906,
0.01838591957092285,
0.018256895065307616,
0.018231296539306642,
0.018296831130981444,
0.018493440628051756,
0.0182794246673584,
0.018276351928710938,
0.018304000854492186,
0.018306047439575195,
0.018544639587402344,
0.018662399291992187,
0.018335744857788085,
0.018540544509887694,
0.018925567626953126,
0.018963455200195312,
0.018496511459350586,
0.018295808792114256,
0.01828556823730469,
0.01828556823730469,
0.018226175308227538,
0.01818726348876953,
0.01826201629638672,
0.018283519744873047,
0.01765273666381836,
0.017556480407714844,
0.017612800598144532,
0.017560575485229494,
0.01762918472290039,
0.017963008880615236
]
},
"throughput": {
"unit": "tokens/s",
"value": 54.36628805429623
},
"energy": null,
"efficiency": null
}
}
}