IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c2b5854 verified
raw
history blame
13.8 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": 1074.700288,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 56,
"total": 0.4971796474456786,
"mean": 0.008878207990101404,
"stdev": 0.0006397437259482172,
"p50": 0.00883732843399048,
"p90": 0.008961071968078615,
"p95": 0.009397743940353392,
"p99": 0.011561971235275276,
"values": [
0.012994751930236817,
0.01038969612121582,
0.009934720039367675,
0.008633055686950684,
0.008569855690002442,
0.00844268798828125,
0.008513855934143066,
0.008574655532836914,
0.008437567710876465,
0.008569151878356933,
0.008593503952026366,
0.008539327621459961,
0.008519424438476562,
0.008565664291381836,
0.008520832061767578,
0.008407103538513183,
0.008533760070800782,
0.008865056037902832,
0.00886847972869873,
0.008983103752136231,
0.009014880180358887,
0.008869664192199707,
0.008897567749023437,
0.008856736183166503,
0.008531359672546387,
0.008749152183532715,
0.008806591987609863,
0.008939040184020997,
0.008893376350402831,
0.009218751907348633,
0.008538528442382813,
0.0088886079788208,
0.008890591621398925,
0.008802207946777343,
0.008905344009399414,
0.008518815994262696,
0.008935135841369629,
0.008851743698120118,
0.008789152145385741,
0.008893631935119628,
0.008861791610717774,
0.00891318416595459,
0.008885024070739746,
0.008840096473693848,
0.00885702419281006,
0.008872127532958985,
0.008823967933654786,
0.008799296379089355,
0.00886291217803955,
0.008841631889343261,
0.008820672035217286,
0.008808639526367188,
0.00883456039428711,
0.00884812831878662,
0.008510592460632325,
0.00855286407470703
]
},
"throughput": {
"unit": "tokens/s",
"value": 225.27068550656432
},
"energy": {
"unit": "kWh",
"cpu": 1.0468872812291568e-07,
"ram": 5.723631674252254e-08,
"gpu": 1.7941778485964896e-07,
"total": 3.4134282972508715e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5859211.988166773
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1074.700288,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 56,
"total": 0.5100745887756348,
"mean": 0.009108474799564907,
"stdev": 0.0005512803024420598,
"p50": 0.009114319801330567,
"p90": 0.009212735652923583,
"p95": 0.009266271829605103,
"p99": 0.011185385847091684,
"values": [
0.012934016227722169,
0.009754688262939452,
0.009009663581848144,
0.008832799911499023,
0.00878819179534912,
0.00878275203704834,
0.00879964828491211,
0.008695743560791015,
0.008816864013671875,
0.00881056022644043,
0.008806591987609863,
0.008757632255554199,
0.008896991729736329,
0.008837408065795898,
0.008736639976501466,
0.008732959747314454,
0.00918563175201416,
0.009137727737426759,
0.00911631965637207,
0.009168383598327636,
0.00913094425201416,
0.009117664337158203,
0.00914902400970459,
0.009184096336364746,
0.008863360404968261,
0.009179519653320313,
0.009299391746520997,
0.009171551704406738,
0.009147968292236328,
0.009255231857299805,
0.008864768028259277,
0.00916163158416748,
0.009141535758972167,
0.009157792091369629,
0.008804415702819824,
0.008959039688110352,
0.009223584175109864,
0.009007679939270019,
0.009209247589111328,
0.00917148780822754,
0.00921622371673584,
0.009153823852539062,
0.009141535758972167,
0.009137791633605957,
0.009109151840209962,
0.00905465602874756,
0.00915715217590332,
0.00914128017425537,
0.0091112642288208,
0.009137472152709962,
0.009108863830566406,
0.00910972785949707,
0.009112319946289062,
0.008942336082458495,
0.008959327697753906,
0.008680512428283691
]
},
"throughput": {
"unit": "tokens/s",
"value": 109.78786481879138
},
"energy": {
"unit": "kWh",
"cpu": 9.879385967255743e-08,
"ram": 5.4019321443051246e-08,
"gpu": 1.700598958522198e-07,
"total": 3.228730769678286e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3097192.2756496696
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 55,
"total": 0.9831249923706056,
"mean": 0.017874999861283734,
"stdev": 0.0004981587846154776,
"p50": 0.017970176696777345,
"p90": 0.01816719436645508,
"p95": 0.018265189933776856,
"p99": 0.019677695426940922,
"values": [
0.020327423095703127,
0.019124223709106446,
0.017509376525878906,
0.01738355255126953,
0.017250240325927733,
0.017345472335815428,
0.01727804756164551,
0.017298336029052733,
0.01740598487854004,
0.017414112091064454,
0.017332223892211913,
0.017443840026855468,
0.01742438316345215,
0.017287168502807617,
0.017167423248291017,
0.01772947120666504,
0.018031648635864258,
0.018001888275146486,
0.01817804718017578,
0.018177024841308592,
0.018028703689575196,
0.018064224243164062,
0.018052095413208007,
0.017450048446655275,
0.0179486083984375,
0.018114559173583983,
0.018152448654174806,
0.01806540870666504,
0.018463743209838866,
0.017477632522583008,
0.018067455291748045,
0.018063552856445314,
0.01798124885559082,
0.01775209617614746,
0.017489887237548827,
0.01818009567260742,
0.01790771293640137,
0.01798963165283203,
0.018103296279907227,
0.01811564826965332,
0.018090944290161132,
0.018051071166992186,
0.018009088516235353,
0.017992704391479493,
0.01794867134094238,
0.01800601577758789,
0.01796611213684082,
0.018005983352661133,
0.01799577522277832,
0.017957887649536132,
0.017954816818237306,
0.017970176696777345,
0.017842239379882812,
0.01749087905883789,
0.01726464080810547
]
},
"throughput": {
"unit": "tokens/s",
"value": 55.94405637820143
},
"energy": null,
"efficiency": null
}
}
}