
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
51e6617
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_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": 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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-211.872.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.097344, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.3840126953125, | |
"mean": 7.3840126953125, | |
"stdev": 0.0, | |
"p50": 7.3840126953125, | |
"p90": 7.3840126953125, | |
"p95": 7.3840126953125, | |
"p99": 7.3840126953125, | |
"values": [ | |
7.3840126953125 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.823507138886751e-07, | |
"ram": 5.226978105340695e-07, | |
"gpu": 1.6233346319992695e-06, | |
"total": 3.128383156422014e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1219.108864, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4926208949089049, | |
"mean": 0.006841956873734793, | |
"stdev": 0.00031347553553827894, | |
"p50": 0.006926159858703613, | |
"p90": 0.007157670402526856, | |
"p95": 0.007208352160453796, | |
"p99": 0.007472499284744265, | |
"values": [ | |
0.007363552093505859, | |
0.0071151041984558105, | |
0.007075967788696289, | |
0.007035999774932861, | |
0.007109055995941162, | |
0.006879263877868652, | |
0.007040703773498535, | |
0.007139967918395996, | |
0.007158720016479493, | |
0.007052159786224365, | |
0.007170783996582031, | |
0.007739232063293457, | |
0.007331647872924805, | |
0.007096928119659424, | |
0.007086880207061767, | |
0.0069036798477172855, | |
0.007006207942962647, | |
0.006945343971252441, | |
0.007036831855773926, | |
0.007196832180023194, | |
0.0071311678886413574, | |
0.0070555520057678225, | |
0.00709987211227417, | |
0.0069913921356201175, | |
0.007069791793823242, | |
0.006949632167816162, | |
0.0069851517677307125, | |
0.007116320133209228, | |
0.006979423999786377, | |
0.006945856094360351, | |
0.006979360103607178, | |
0.007141920089721679, | |
0.007172800064086914, | |
0.007148223876953125, | |
0.0070899839401245114, | |
0.006911839962005615, | |
0.006918367862701416, | |
0.0067944002151489255, | |
0.00684332799911499, | |
0.006651167869567871, | |
0.006481472015380859, | |
0.00693395185470581, | |
0.007009312152862549, | |
0.007222432136535645, | |
0.006903007984161377, | |
0.006873792171478272, | |
0.006845568180084229, | |
0.0068261117935180665, | |
0.006635807991027832, | |
0.006684607982635498, | |
0.006638527870178223, | |
0.006611616134643555, | |
0.006455008029937744, | |
0.006389408111572265, | |
0.006425536155700683, | |
0.006416831970214844, | |
0.006432479858398438, | |
0.006439839839935303, | |
0.006424960136413574, | |
0.006372191905975342, | |
0.00633894395828247, | |
0.006425600051879882, | |
0.00641161584854126, | |
0.006436863899230957, | |
0.006457791805267334, | |
0.006464767932891846, | |
0.006434336185455323, | |
0.0064130878448486325, | |
0.006437888145446777, | |
0.006447231769561768, | |
0.006418367862701416, | |
0.006451519966125488 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 292.31403192231284 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.976669206282522e-08, | |
"ram": 4.3613259861709025e-08, | |
"gpu": 1.4613359938255105e-07, | |
"total": 2.695135513070853e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7420777.138293832 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1237.516288, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.5175235204696654, | |
"mean": 0.0071878266731897995, | |
"stdev": 0.00034202259687362365, | |
"p50": 0.0073024480342864986, | |
"p90": 0.007527766370773316, | |
"p95": 0.007632031893730164, | |
"p99": 0.007985419387817385, | |
"values": [ | |
0.007533376216888428, | |
0.007443776130676269, | |
0.007406720161437988, | |
0.00745468807220459, | |
0.007266016006469727, | |
0.007349408149719238, | |
0.007427487850189209, | |
0.007457215785980225, | |
0.007646815776824951, | |
0.0075833601951599125, | |
0.008162976264953613, | |
0.007912896156311034, | |
0.0076616001129150395, | |
0.00746560001373291, | |
0.00737337589263916, | |
0.007367231845855713, | |
0.007337823867797851, | |
0.007387872219085693, | |
0.0074496641159057615, | |
0.007497504234313965, | |
0.007463327884674072, | |
0.007472640037536621, | |
0.00749513578414917, | |
0.007431903839111328, | |
0.007284448146820068, | |
0.007339583873748779, | |
0.007472127914428711, | |
0.007247968196868897, | |
0.007335423946380615, | |
0.00732044792175293, | |
0.007343584060668945, | |
0.007528543949127197, | |
0.007446368217468261, | |
0.007394239902496338, | |
0.007520768165588379, | |
0.007359424114227295, | |
0.007276768207550049, | |
0.006911168098449707, | |
0.007224800109863282, | |
0.006753056049346924, | |
0.006841983795166016, | |
0.007325439929962158, | |
0.007345183849334717, | |
0.007619935989379883, | |
0.0071478719711303715, | |
0.007125984191894532, | |
0.007231040000915527, | |
0.007140063762664795, | |
0.007001760005950927, | |
0.006962592124938965, | |
0.0069855680465698245, | |
0.006990752220153809, | |
0.006762688159942627, | |
0.006764671802520752, | |
0.006765024185180664, | |
0.006753983974456787, | |
0.006767295837402344, | |
0.006750207901000976, | |
0.006721504211425781, | |
0.0066967358589172365, | |
0.006779903888702392, | |
0.006664703845977784, | |
0.00673583984375, | |
0.006847231864929199, | |
0.006752927780151367, | |
0.006717343807220459, | |
0.006750304222106934, | |
0.006756864070892334, | |
0.006742591857910156, | |
0.006763967990875244, | |
0.006777152061462403, | |
0.0067272639274597165 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 139.12411156628824 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.445162486539368e-08, | |
"ram": 4.071118119218365e-08, | |
"gpu": 1.7059825573434157e-07, | |
"total": 2.857610617919188e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3499427.0868442003 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.4839248309135439, | |
"mean": 0.006721178207132551, | |
"stdev": 0.000287548210652957, | |
"p50": 0.0067901120185852055, | |
"p90": 0.007002620935440063, | |
"p95": 0.007123660683631897, | |
"p99": 0.007433369688987734, | |
"values": [ | |
0.0070225920677185055, | |
0.006933472156524658, | |
0.00690176010131836, | |
0.006940671920776367, | |
0.00676966381072998, | |
0.006840320110321045, | |
0.006894591808319092, | |
0.006939648151397705, | |
0.007120895862579346, | |
0.006960127830505371, | |
0.00760422420501709, | |
0.007363584041595459, | |
0.007127039909362793, | |
0.006953983783721924, | |
0.006866943836212158, | |
0.006858751773834228, | |
0.0068280320167541505, | |
0.0068853759765625, | |
0.006929408073425293, | |
0.006979551792144776, | |
0.006947840213775635, | |
0.006961152076721191, | |
0.006965248107910156, | |
0.006920191764831543, | |
0.0067717118263244626, | |
0.006838272094726563, | |
0.006940671920776367, | |
0.006754303932189941, | |
0.0068321280479431154, | |
0.006793216228485107, | |
0.006827040195465088, | |
0.007005184173583984, | |
0.006924287796020508, | |
0.006883296012878418, | |
0.007017504215240478, | |
0.006847487926483154, | |
0.006787007808685303, | |
0.0064767999649047855, | |
0.00675328016281128, | |
0.00636518383026123, | |
0.006396927833557129, | |
0.006837247848510742, | |
0.006865920066833496, | |
0.00713318395614624, | |
0.006723584175109864, | |
0.006680543899536133, | |
0.006785024166107178, | |
0.006706175804138184, | |
0.006605823993682861, | |
0.006563839912414551, | |
0.0065812478065490725, | |
0.00658739185333252, | |
0.006366208076477051, | |
0.006378464221954346, | |
0.006368256092071533, | |
0.006367231845855713, | |
0.00638047981262207, | |
0.006358016014099121, | |
0.0063272957801818845, | |
0.0062791681289672855, | |
0.006393856048583985, | |
0.006281216144561768, | |
0.0063498239517211915, | |
0.006446080207824707, | |
0.006364160060882569, | |
0.006330368041992188, | |
0.006359039783477783, | |
0.006362112045288086, | |
0.006345791816711426, | |
0.0063539199829101565, | |
0.006378496170043945, | |
0.006335487842559814 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 148.78343784112056 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |