IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4f83f6b
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cpu", | |
"device_ids": null, | |
"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": false, | |
"device_isolation_action": "error", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.346304, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "4aa72a2fd35e7d46a674935ffaf335b1c0795600", | |
"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": 957.812736, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6580085320000535, | |
"mean": 0.050616040923081036, | |
"stdev": 0.0023559578406043015, | |
"p50": 0.05069884900001398, | |
"p90": 0.053306832799989934, | |
"p95": 0.05341897359999166, | |
"p99": 0.05348859231999995, | |
"values": [ | |
0.05336095799998475, | |
0.053090332000010676, | |
0.05185537700003806, | |
0.05229695099995979, | |
0.053505997000002026, | |
0.05069884900001398, | |
0.05124372500000618, | |
0.04970707699999366, | |
0.049815289999969536, | |
0.04983589800002619, | |
0.050217190000012124, | |
0.047600986000020384, | |
0.044779902000016136 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.51316546150482 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.8260501249872073e-06, | |
"ram": 7.631311822887562e-08, | |
"gpu": 0.0, | |
"total": 1.902363243216083e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1051323.9293978657 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.812736, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.40871284799993646, | |
"mean": 0.03143944984614896, | |
"stdev": 0.001646574104563207, | |
"p50": 0.03165663999999424, | |
"p90": 0.03257306839998364, | |
"p95": 0.0332971220000104, | |
"p99": 0.034156029200037206, | |
"values": [ | |
0.03253987799996594, | |
0.03165663999999424, | |
0.032125304999965465, | |
0.03437075600004391, | |
0.0319686429999706, | |
0.03151532700002235, | |
0.03098480699998163, | |
0.03126001100002895, | |
0.03221382999998923, | |
0.0309185639999896, | |
0.032581365999988066, | |
0.027199703000007958, | |
0.029378017999988515 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 31.807172354909728 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0228075162328861e-06, | |
"ram": 4.2745326538123824e-08, | |
"gpu": 0.0, | |
"total": 1.0655528427710092e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 938479.9700777517 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9811909270000001, | |
"mean": 0.08176591058333334, | |
"stdev": 0.003647772942514842, | |
"p50": 0.08224923100002002, | |
"p90": 0.08543192549997798, | |
"p95": 0.08603007224998863, | |
"p99": 0.08654759364999734, | |
"values": [ | |
0.08481215399996245, | |
0.08398271700002624, | |
0.08667697399999952, | |
0.0855007889999797, | |
0.08222244099999898, | |
0.08227602100004106, | |
0.0810179129999824, | |
0.08198570899998003, | |
0.08082351000001609, | |
0.08278069300001789, | |
0.07503213199998982, | |
0.07407987400000593 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.23003563301396 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |