
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
269c65f
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_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": 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.3.1", | |
"optimum_benchmark_commit": null, | |
"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.612864, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.49111113786697386, | |
"mean": 0.006636636998202349, | |
"stdev": 0.0004530238686070174, | |
"p50": 0.006659424066543579, | |
"p90": 0.007003644704818726, | |
"p95": 0.0072669600486755335, | |
"p99": 0.008157050104141236, | |
"values": [ | |
0.008161791801452637, | |
0.007055168151855469, | |
0.007012576103210449, | |
0.006973728179931641, | |
0.00696288013458252, | |
0.006832255840301514, | |
0.006721375942230224, | |
0.006655200004577637, | |
0.007660287857055664, | |
0.007032991886138916, | |
0.007011295795440674, | |
0.006853536128997802, | |
0.006858528137207031, | |
0.0068249602317810056, | |
0.006690591812133789, | |
0.006789984226226807, | |
0.006813663959503174, | |
0.006598527908325195, | |
0.0067125120162963865, | |
0.006692927837371826, | |
0.00668236780166626, | |
0.0069409279823303225, | |
0.0068765439987182615, | |
0.006982272148132324, | |
0.006894527912139892, | |
0.006876255989074707, | |
0.006967328071594238, | |
0.006663648128509522, | |
0.006759232044219971, | |
0.0065848960876464845, | |
0.006691840171813965, | |
0.0066483840942382815, | |
0.006666240215301514, | |
0.00698579216003418, | |
0.006836639881134033, | |
0.006711103916168213, | |
0.006817279815673828, | |
0.006781951904296875, | |
0.006556960105895996, | |
0.0064275522232055664, | |
0.006616127967834473, | |
0.006226399898529053, | |
0.006425920009613037, | |
0.008074496269226074, | |
0.008155296325683594, | |
0.006868768215179444, | |
0.006623167991638184, | |
0.006470623970031738, | |
0.0064832959175109865, | |
0.006475552082061768, | |
0.0064332160949707035, | |
0.006406239986419678, | |
0.006189119815826416, | |
0.006146944046020507, | |
0.006169695854187012, | |
0.0061298561096191405, | |
0.006116576194763183, | |
0.006119775772094727, | |
0.0064642238616943355, | |
0.0064297599792480465, | |
0.006119967937469483, | |
0.006159520149230957, | |
0.0061406722068786624, | |
0.0061420478820800786, | |
0.006148032188415527, | |
0.00610748815536499, | |
0.006113728046417236, | |
0.006106592178344726, | |
0.006120351791381836, | |
0.0061262397766113285, | |
0.0061307201385498045, | |
0.006139776229858398, | |
0.006126304149627685, | |
0.00613811206817627 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 301.35744964531517 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.76437145692331e-08, | |
"ram": 4.245150000388401e-08, | |
"gpu": 1.5006547952934713e-07, | |
"total": 2.701606941024642e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7403001.412342601 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.612864, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.5147864975929259, | |
"mean": 0.006956574291796296, | |
"stdev": 0.0003898088411916546, | |
"p50": 0.006992831945419312, | |
"p90": 0.007353769779205322, | |
"p95": 0.007489262533187866, | |
"p99": 0.007859792780876156, | |
"values": [ | |
0.007327072143554688, | |
0.007335135936737061, | |
0.0073441600799560545, | |
0.007308735847473145, | |
0.0072037439346313474, | |
0.007188479900360107, | |
0.006962143898010254, | |
0.007023231983184814, | |
0.007457824230194092, | |
0.00737500810623169, | |
0.007227200031280518, | |
0.007436960220336914, | |
0.007223968029022217, | |
0.0071580162048339845, | |
0.007109216213226318, | |
0.007176959991455078, | |
0.006982207775115967, | |
0.007003456115722656, | |
0.006979775905609131, | |
0.007088768005371094, | |
0.007207104206085205, | |
0.007228320121765137, | |
0.007211391925811768, | |
0.007177375793457032, | |
0.007550879955291748, | |
0.007357888221740723, | |
0.0069666881561279296, | |
0.007130559921264649, | |
0.007215199947357177, | |
0.0070291199684143066, | |
0.007052864074707031, | |
0.007060863971710205, | |
0.007179423809051514, | |
0.007250016212463379, | |
0.00719046401977539, | |
0.007169151782989502, | |
0.006928639888763428, | |
0.007124576091766357, | |
0.006746560096740723, | |
0.0069658241271972655, | |
0.006626272201538086, | |
0.006519455909729004, | |
0.0075476479530334475, | |
0.008557696342468262, | |
0.007601664066314697, | |
0.007010591983795166, | |
0.006831583976745606, | |
0.0068618240356445315, | |
0.00687388801574707, | |
0.006810815811157227, | |
0.006923808097839356, | |
0.006819200038909912, | |
0.00646457576751709, | |
0.00645577621459961, | |
0.00647651195526123, | |
0.00647654390335083, | |
0.006442815780639649, | |
0.006783904075622559, | |
0.006761023998260498, | |
0.006804768085479736, | |
0.0064807038307189944, | |
0.006442399978637695, | |
0.006437088012695312, | |
0.006549856185913086, | |
0.006476831912994385, | |
0.006481632232666016, | |
0.006467328071594238, | |
0.0064609918594360355, | |
0.006428991794586182, | |
0.006424352169036866, | |
0.006432320117950439, | |
0.006477888107299805, | |
0.006476928234100341, | |
0.0064438400268554685 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 143.7489140566318 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.429718063071029e-08, | |
"ram": 4.039616201595295e-08, | |
"gpu": 1.411724468507406e-07, | |
"total": 2.5586578949740374e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3908298.9639384635 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 74, | |
"total": 0.48046793460845977, | |
"mean": 0.006492809927141345, | |
"stdev": 0.00032944501066763386, | |
"p50": 0.006519295930862427, | |
"p90": 0.006832844924926758, | |
"p95": 0.006935961556434631, | |
"p99": 0.00728509447097778, | |
"values": [ | |
0.006774784088134766, | |
0.006782976150512696, | |
0.0068249602317810056, | |
0.006750207901000976, | |
0.006680575847625733, | |
0.006648831844329834, | |
0.0064849920272827145, | |
0.00652288007736206, | |
0.006913023948669434, | |
0.006849535942077637, | |
0.006726655960083008, | |
0.006913023948669434, | |
0.006680575847625733, | |
0.006658048152923584, | |
0.006585343837738037, | |
0.006666240215301514, | |
0.006508543968200684, | |
0.006518784046173095, | |
0.006490111827850342, | |
0.00657919979095459, | |
0.006669312000274658, | |
0.006694911956787109, | |
0.006675456047058105, | |
0.006665215969085693, | |
0.0070348801612854, | |
0.00683622407913208, | |
0.006466559886932373, | |
0.0066304001808166506, | |
0.006687744140625, | |
0.006533120155334473, | |
0.006550528049468994, | |
0.0065669121742248536, | |
0.0066344962120056155, | |
0.006732800006866455, | |
0.006669312000274658, | |
0.006658048152923584, | |
0.0064471039772033695, | |
0.006646783828735352, | |
0.006325247764587402, | |
0.006482944011688232, | |
0.006230016231536865, | |
0.00612556791305542, | |
0.007012351989746094, | |
0.007961599826812745, | |
0.006978559970855713, | |
0.00657919979095459, | |
0.006428671836853027, | |
0.006468607902526856, | |
0.006479872226715088, | |
0.00640723180770874, | |
0.006519807815551758, | |
0.006427648067474365, | |
0.00607539176940918, | |
0.006076416015625, | |
0.006095871925354004, | |
0.006096896171569824, | |
0.006064127922058105, | |
0.006391808032989502, | |
0.006369215965270996, | |
0.006404096126556396, | |
0.006093823909759521, | |
0.006064127922058105, | |
0.006051807880401611, | |
0.006170623779296875, | |
0.00607539176940918, | |
0.006093823909759521, | |
0.006077439785003662, | |
0.006073344230651856, | |
0.006038527965545654, | |
0.006044672012329101, | |
0.006055935859680176, | |
0.0060999679565429685, | |
0.0060999679565429685, | |
0.00606822395324707 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 154.01652154020164 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |