
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
15c04e5
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+cu121", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"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": 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.293824, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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": 1028.550656, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.4855002865791322, | |
"mean": 0.007469235178140494, | |
"stdev": 0.0006451930903547436, | |
"p50": 0.007394464015960694, | |
"p90": 0.007734304046630859, | |
"p95": 0.007838976192474366, | |
"p99": 0.010668262176513671, | |
"values": [ | |
0.011070079803466797, | |
0.010442239761352539, | |
0.008185215950012207, | |
0.007843776226043701, | |
0.007774144172668457, | |
0.007558784008026123, | |
0.007647007942199707, | |
0.007563551902770996, | |
0.007624383926391602, | |
0.007612415790557861, | |
0.007559167861938477, | |
0.007650559902191162, | |
0.007420928001403809, | |
0.007429823875427246, | |
0.007482143878936767, | |
0.0077181758880615235, | |
0.007507743835449218, | |
0.0076368961334228515, | |
0.007609856128692627, | |
0.007458687782287598, | |
0.007666975975036621, | |
0.00752623987197876, | |
0.0075105600357055664, | |
0.007484511852264404, | |
0.00774505615234375, | |
0.007614240169525146, | |
0.007467167854309082, | |
0.007394464015960694, | |
0.00717571210861206, | |
0.007443808078765869, | |
0.007067135810852051, | |
0.007120672225952148, | |
0.007607840061187744, | |
0.00781977605819702, | |
0.007590432167053223, | |
0.007469920158386231, | |
0.007364384174346924, | |
0.007262144088745117, | |
0.007227647781372071, | |
0.007192831993103027, | |
0.007187039852142334, | |
0.007175583839416504, | |
0.00717795181274414, | |
0.007142848014831543, | |
0.007203231811523438, | |
0.007186783790588379, | |
0.007137824058532715, | |
0.007178431987762452, | |
0.00721398401260376, | |
0.00719820785522461, | |
0.007164192199707031, | |
0.00719379186630249, | |
0.007176608085632324, | |
0.007165120124816894, | |
0.007177440166473389, | |
0.007169888019561767, | |
0.007178688049316406, | |
0.006935232162475586, | |
0.007215775966644287, | |
0.007180799961090088, | |
0.006909215927124023, | |
0.0069192957878112795, | |
0.0069101758003234865, | |
0.006921279907226563, | |
0.006933792114257813 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 267.76503246988545 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.866982797089698e-08, | |
"ram": 4.847364371021263e-08, | |
"gpu": 1.611216048507446e-07, | |
"total": 2.982650765318542e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6705444.778367819 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1028.550656, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.5169155211448668, | |
"mean": 0.0079525464791518, | |
"stdev": 0.0005306543421596652, | |
"p50": 0.007857920169830323, | |
"p90": 0.008286758422851563, | |
"p95": 0.00842536964416504, | |
"p99": 0.010093889122009276, | |
"values": [ | |
0.01116220760345459, | |
0.00949295997619629, | |
0.008585056304931641, | |
0.008414079666137695, | |
0.008254079818725587, | |
0.008116703987121582, | |
0.0081212797164917, | |
0.008044511795043945, | |
0.008156671524047851, | |
0.008123776435852052, | |
0.008114432334899902, | |
0.008066399574279785, | |
0.008039999961853027, | |
0.008042112350463867, | |
0.008194047927856446, | |
0.008235584259033204, | |
0.008061599731445313, | |
0.008097087860107422, | |
0.007997280120849609, | |
0.008000063896179199, | |
0.007926752090454101, | |
0.008048992156982421, | |
0.008049152374267577, | |
0.00824732780456543, | |
0.008308544158935546, | |
0.008174943923950195, | |
0.008121888160705566, | |
0.007903168201446533, | |
0.007914432048797607, | |
0.007843264102935791, | |
0.007517151832580567, | |
0.0076612157821655275, | |
0.008324831962585448, | |
0.008428192138671875, | |
0.008097920417785644, | |
0.007857920169830323, | |
0.0077378878593444824, | |
0.007829440116882325, | |
0.007722527980804444, | |
0.007712384223937988, | |
0.007753568172454834, | |
0.007691520214080811, | |
0.007637695789337158, | |
0.007683775901794434, | |
0.007750912189483643, | |
0.007642367839813233, | |
0.007638175964355468, | |
0.00768236780166626, | |
0.007659232139587403, | |
0.0076332478523254395, | |
0.007774784088134766, | |
0.007660352230072022, | |
0.007656544208526611, | |
0.007632480144500732, | |
0.0076548800468444825, | |
0.0076626877784729, | |
0.007655424118041992, | |
0.007477375984191894, | |
0.0076638078689575196, | |
0.007655488014221191, | |
0.007364895820617676, | |
0.007355008125305176, | |
0.007333824157714844, | |
0.0074769601821899415, | |
0.007370272159576416 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 125.74588562563896 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.763520612348968e-08, | |
"ram": 4.792165239118486e-08, | |
"gpu": 1.5674629650219782e-07, | |
"total": 2.923031550168724e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3421105.735045103 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.9824901123046877, | |
"mean": 0.015351408004760743, | |
"stdev": 0.0008173463339242729, | |
"p50": 0.015260672092437744, | |
"p90": 0.015967753314971925, | |
"p95": 0.01624235429763794, | |
"p99": 0.018058700962066642, | |
"values": [ | |
0.020113407135009767, | |
0.01685196876525879, | |
0.016290815353393554, | |
0.016101375579833984, | |
0.015690752029418945, | |
0.01580953598022461, | |
0.015624223709106445, | |
0.01582896041870117, | |
0.015779840469360353, | |
0.015690752029418945, | |
0.01579315185546875, | |
0.015461376190185547, | |
0.015485952377319336, | |
0.01569382381439209, | |
0.01599078369140625, | |
0.015642623901367187, | |
0.015766528129577635, | |
0.0156692476272583, | |
0.015469568252563477, | |
0.01566412830352783, | |
0.015578111648559571, | |
0.01559654426574707, | |
0.015731712341308594, | |
0.016099327087402342, | |
0.01584537601470947, | |
0.01560985565185547, | |
0.015358976364135742, | |
0.015124480247497558, | |
0.015416319847106934, | |
0.014600192070007324, | |
0.014766079902648926, | |
0.015914015769958496, | |
0.01626723289489746, | |
0.015807488441467284, | |
0.01539583969116211, | |
0.015162367820739747, | |
0.01511526393890381, | |
0.014952447891235352, | |
0.014965760231018066, | |
0.014960639953613282, | |
0.01489408016204834, | |
0.014825471878051758, | |
0.014872639656066895, | |
0.014977984428405762, | |
0.014841856002807617, | |
0.014821375846862793, | |
0.014880767822265625, | |
0.014906368255615234, | |
0.014832639694213867, | |
0.014973952293395995, | |
0.014898176193237305, | |
0.014857215881347656, | |
0.014815232276916505, | |
0.014859264373779296, | |
0.014854144096374512, | |
0.01485209560394287, | |
0.014462976455688477, | |
0.014892031669616699, | |
0.014863360404968261, | |
0.014326784133911133, | |
0.014297087669372559, | |
0.014270463943481445, | |
0.014420991897583007, | |
0.014306303977966308 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 65.14060467221523 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |