|
1 | 1 | # How to use
|
2 | 2 |
|
3 |
| -1. git clone this repository. |
| 3 | +## ✅ Summary |
4 | 4 |
|
5 |
| -2. Run the following command: (replace the GITHUB_TOKEN with your GITHUB token) |
| 5 | +| Mode | Description | Config Field | |
| 6 | +|:----|:------------|:-------------| |
| 7 | +| 1 | Continuous monitoring | None | |
| 8 | +| 2 | Process a list of commits | `commit_list` | |
| 9 | +| 3 | Compare two commits | `compare_pair` | |
| 10 | + |
| 11 | + |
| 12 | +## Type of Usage: |
| 13 | +1. Monitor all commits since `start_commit`: |
| 14 | +2. Specify a list of aiter commits to check in order. After finishing the list, it will continue normal monitoring. |
| 15 | +```json |
| 16 | +... |
| 17 | +"commit_list": [ |
| 18 | + "commit_hash1", |
| 19 | + "commit_hash2", |
| 20 | + "commit_hash3" |
| 21 | +] |
| 22 | +... |
| 23 | +``` |
| 24 | +3. Compare two specific commits only. Script will exit after comparison. |
| 25 | +```json |
| 26 | +... |
| 27 | +"compare_pair": [ |
| 28 | + "old_commit_hash", |
| 29 | + "new_commit_hash" |
| 30 | +] |
| 31 | +... |
| 32 | +``` |
| 33 | + |
| 34 | + |
| 35 | +## Usage Method 1: |
| 36 | + |
| 37 | +1. Fork this repository. Then git clone the repository. |
| 38 | + |
| 39 | +2. Create a file named `aiter_api_watcher_config.json` using `template_to_initialize_aiter_api_watcher_config.json`. |
| 40 | + |
| 41 | +3. Run the following command: (replace the GITHUB_TOKEN with your GITHUB token) |
6 | 42 | ```
|
7 | 43 | docker run -it \
|
8 | 44 | --network=host \
|
|
19 | 55 | ```
|
20 | 56 |
|
21 | 57 |
|
22 |
| -3. The aiter_api_watcher.py will generates a log to `aiter_api_watcher.log`. |
| 58 | +4. The aiter_api_watcher.py will generates a log to `aiter_api_watcher.log`. |
23 | 59 |
|
24 | 60 | Example content of the `aiter_api_watcher.log`:
|
25 | 61 |
|
26 |
| -```console |
| 62 | +```text |
27 | 63 | 2025-04-26 17:41:54,547 - aiter_api_watcher - INFO - Starting aiter API watcher
|
28 | 64 | 2025-04-26 17:41:54,547 - aiter_api_watcher - INFO - Monitoring 4 functions
|
29 | 65 | 2025-04-26 17:41:54,547 - aiter_api_watcher - INFO - Check interval: 3600 seconds
|
@@ -78,4 +114,54 @@ Example content of the `aiter_api_watcher.log`:
|
78 | 114 | 2025-04-26 17:47:32,088 - aiter_api_watcher - INFO - No API change for fmoe_fp8_blockscale_g1u1
|
79 | 115 | 2025-04-26 17:47:45,163 - aiter_api_watcher - INFO - No API change for rocm_aiter_asm_fmoe.moe_sorting_ck
|
80 | 116 | 2025-04-26 17:47:58,255 - aiter_api_watcher - INFO - No API change for rocm_aiter_asm_fmoe.asm_moe
|
81 |
| -``` |
| 117 | +``` |
| 118 | + |
| 119 | +## Usage Method 2: |
| 120 | +Follow the steps in Usage Method 1, with the following changes: |
| 121 | + |
| 122 | +1. Specify a list of aiter commits to check in order. After finishing the list, it will continue normal monitoring. |
| 123 | +```json |
| 124 | +... |
| 125 | +"commit_list": [ |
| 126 | + "commit_hash1", |
| 127 | + "commit_hash2", |
| 128 | + "commit_hash3" |
| 129 | +] |
| 130 | +... |
| 131 | +``` |
| 132 | + |
| 133 | +Run the command as in Usage Method 1. |
| 134 | + |
| 135 | +## Usage Method 2: |
| 136 | +Follow the steps in Usage Method 1, with the following changes: |
| 137 | + |
| 138 | +1. Specify a list of aiter commits to check in order. After finishing the list, it will continue normal monitoring. |
| 139 | +```json |
| 140 | +... |
| 141 | +"compare_pair": [ |
| 142 | + "old_commit_hash", |
| 143 | + "new_commit_hash" |
| 144 | +] |
| 145 | +... |
| 146 | +``` |
| 147 | + |
| 148 | +Example console logs: |
| 149 | +```console |
| 150 | +... |
| 151 | +2025-04-27 15:23:42,995 - aiter_api_watcher - INFO - No API change for gemm_a8w8_CK between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb |
| 152 | +2025-04-27 15:23:56,000 - aiter_api_watcher - INFO - No API change for shuffle_weight between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb |
| 153 | +2025-04-27 15:23:56,449 - aiter_api_watcher - INFO - Exiting after comparing two commits |
| 154 | +``` |
| 155 | + |
| 156 | +Example logs: |
| 157 | +```text |
| 158 | +2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Starting aiter API watcher |
| 159 | +2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Monitoring 2 functions |
| 160 | +2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Check interval: 3600 seconds |
| 161 | +2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Checking for API changes... |
| 162 | +2025-04-27 15:22:28,295 - aiter_api_watcher - INFO - Comparing two commits: 365bd25a3f97673b291bc42f1459fbb51bf1c634 -> 28ceb1e2299c904229af0e45c38dde0efa7d14fb |
| 163 | +2025-04-27 15:23:42,995 - aiter_api_watcher - INFO - No API change for gemm_a8w8_CK between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb |
| 164 | +2025-04-27 15:23:56,000 - aiter_api_watcher - INFO - No API change for shuffle_weight between 365bd25a3f97673b291bc42f1459fbb51bf1c634 and 28ceb1e2299c904229af0e45c38dde0efa7d14fb |
| 165 | +2025-04-27 15:23:56,449 - aiter_api_watcher - INFO - Exiting after comparing two commits |
| 166 | +``` |
| 167 | + |
0 commit comments