This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ============================================================ | |
| BENCHMARK SUMMARY | |
| ============================================================ | |
| Model: hamishivi/qwen2_5_openthoughts2 | |
| Total batches: 5 | |
| Batch size: 256 | |
| Unique prompts per batch: 32 | |
| Num rollouts: 8 | |
| Max tokens: 32000 | |
| ------------------------------------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def calculate_model_usage_per_token(model_path: str) -> int: | |
| """ | |
| Calculate actual FLOPs per token for a transformer model using torch FlopCounterMode. | |
| Args: | |
| model_path: Path to the actual model for precise measurement | |
| Returns: | |
| FLOPs per token as integer. | |
| """ |
OlderNewer