IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
95f9f9a
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_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": false, | |
"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 7643 48-Core Processor", | |
"cpu_count": 96, | |
"cpu_ram_mb": 1082028.982272, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "8d3ce5d99bc670ee9136c4d65ae8c25ef9d8beae", | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 902.049792, | |
"max_global_vram": 1011.761152, | |
"max_process_vram": 42183.016448, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.78688134765625, | |
"mean": 6.78688134765625, | |
"stdev": 0.0, | |
"p50": 6.78688134765625, | |
"p90": 6.78688134765625, | |
"p95": 6.78688134765625, | |
"p99": 6.78688134765625, | |
"values": [ | |
6.78688134765625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.342016, | |
"max_global_vram": 1106.153472, | |
"max_process_vram": 276402.388992, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.5086651239395141, | |
"mean": 0.008074049586341494, | |
"stdev": 0.00042526726051411295, | |
"p50": 0.008044037818908691, | |
"p90": 0.00825888729095459, | |
"p95": 0.008673689270019531, | |
"p99": 0.009678614978790289, | |
"values": [ | |
0.008835882186889648, | |
0.00870116138458252, | |
0.008965002059936524, | |
0.008426440238952638, | |
0.008348360061645507, | |
0.008264199256896972, | |
0.010842930793762208, | |
0.008076197624206543, | |
0.008098278045654297, | |
0.008026118278503419, | |
0.008044037818908691, | |
0.008052997589111328, | |
0.008028038024902344, | |
0.00819667911529541, | |
0.008070597648620606, | |
0.008036518096923828, | |
0.008061637878417969, | |
0.008024838447570801, | |
0.008058438301086426, | |
0.008021318435668945, | |
0.007980358123779297, | |
0.007797476768493653, | |
0.007987717151641845, | |
0.008053957939147949, | |
0.008237639427185058, | |
0.008017638206481933, | |
0.008030597686767577, | |
0.008034757614135742, | |
0.008022438049316407, | |
0.008063557624816895, | |
0.008046598434448242, | |
0.00807907772064209, | |
0.008039398193359375, | |
0.008062277793884277, | |
0.00807907772064209, | |
0.008051238059997558, | |
0.00808067798614502, | |
0.008085957527160645, | |
0.008083558082580567, | |
0.007699555873870849, | |
0.00778499698638916, | |
0.0076936368942260745, | |
0.007857956886291505, | |
0.007802277088165283, | |
0.008062758445739747, | |
0.008125638008117676, | |
0.008106118202209472, | |
0.008077637672424316, | |
0.00806099796295166, | |
0.007881156921386719, | |
0.007885797023773193, | |
0.007789796829223633, | |
0.007848036766052247, | |
0.007817636966705323, | |
0.007807877063751221, | |
0.007749156951904297, | |
0.007757476806640625, | |
0.00769107723236084, | |
0.0077995572090148926, | |
0.0077053170204162596, | |
0.007740676879882813, | |
0.008064997673034669, | |
0.007841317176818848 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 247.70717328554804 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.39936, | |
"max_global_vram": 1107.542016, | |
"max_process_vram": 252002.63168, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.4898839054107666, | |
"mean": 0.007775935006520105, | |
"stdev": 0.0019397278096981421, | |
"p50": 0.007549955844879151, | |
"p90": 0.007664804077148438, | |
"p95": 0.007855461025238037, | |
"p99": 0.013843846988678018, | |
"values": [ | |
0.008236357688903809, | |
0.022992908477783205, | |
0.007926597118377685, | |
0.007794116973876953, | |
0.007736515998840332, | |
0.007862277030944824, | |
0.007646275997161865, | |
0.007588194847106934, | |
0.007617956161499024, | |
0.007534595012664795, | |
0.007537315845489502, | |
0.007541475772857666, | |
0.00763123607635498, | |
0.007589634895324707, | |
0.00753539514541626, | |
0.007637475967407227, | |
0.007570274829864502, | |
0.007575876235961914, | |
0.007569315910339355, | |
0.007590916156768799, | |
0.007444994926452637, | |
0.0073773150444030764, | |
0.0075765161514282225, | |
0.007564196109771729, | |
0.0076198759078979494, | |
0.0075464358329772946, | |
0.007574755191802979, | |
0.007527874946594238, | |
0.007568675994873047, | |
0.007549955844879151, | |
0.007591236114501953, | |
0.007611715793609619, | |
0.007555875778198242, | |
0.007654436111450195, | |
0.007543876171112061, | |
0.00754883623123169, | |
0.007554275035858154, | |
0.007540514945983887, | |
0.007427074909210205, | |
0.007303715229034424, | |
0.007348514080047607, | |
0.0073077139854431155, | |
0.007294915199279785, | |
0.007454754829406739, | |
0.007667396068572998, | |
0.007540676116943359, | |
0.007572515964508057, | |
0.007588995933532715, | |
0.007561635971069336, | |
0.0073656349182128905, | |
0.007402595043182373, | |
0.0073584351539611815, | |
0.007340034008026123, | |
0.007458755016326904, | |
0.0073366742134094234, | |
0.0073864350318908695, | |
0.007302114009857178, | |
0.007347074031829834, | |
0.007216673851013183, | |
0.007292833805084229, | |
0.007513955116271973, | |
0.007598755836486816, | |
0.007229952812194824 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 128.6018979275807 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.459174639225006, | |
"mean": 0.007288486336904859, | |
"stdev": 0.0019091812416086632, | |
"p50": 0.007080352783203125, | |
"p90": 0.00719520206451416, | |
"p95": 0.007286610794067383, | |
"p99": 0.013198132419586218, | |
"values": [ | |
0.007634116172790527, | |
0.022276264190673828, | |
0.007401474952697754, | |
0.00729363489151001, | |
0.00722067403793335, | |
0.00722339391708374, | |
0.007153473854064942, | |
0.007116672992706299, | |
0.007115073204040527, | |
0.007068993091583252, | |
0.007069474220275879, | |
0.007081954002380371, | |
0.007124352931976319, | |
0.007090753078460694, | |
0.007035872936248779, | |
0.007168834209442139, | |
0.007069472789764404, | |
0.007091874122619629, | |
0.007105154037475586, | |
0.007097633838653564, | |
0.006967712879180908, | |
0.006914752006530762, | |
0.007087873935699463, | |
0.00708531379699707, | |
0.007126274108886718, | |
0.007087553024291992, | |
0.007097632884979248, | |
0.007066432952880859, | |
0.007080352783203125, | |
0.007079233169555664, | |
0.007114593029022217, | |
0.007106593132019043, | |
0.007097632884979248, | |
0.0071989140510559085, | |
0.0070808339118957515, | |
0.007072672843933105, | |
0.00706915283203125, | |
0.007066593170166015, | |
0.006944032192230225, | |
0.006846433162689209, | |
0.00687443208694458, | |
0.00683955192565918, | |
0.006822272777557373, | |
0.006988512992858887, | |
0.007180354118347168, | |
0.0070541129112243655, | |
0.007095713138580323, | |
0.007111874103546143, | |
0.0070939531326293945, | |
0.006880352020263672, | |
0.0068998727798461916, | |
0.006859871864318847, | |
0.006875552177429199, | |
0.006976992130279541, | |
0.006895391941070556, | |
0.006899713039398193, | |
0.006832831859588623, | |
0.006875072002410889, | |
0.006756671905517578, | |
0.006815392017364502, | |
0.007025153160095215, | |
0.007106113910675049, | |
0.00678515100479126 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 137.2026994050265 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |