Commit 6aeda51
authored
Update worker.py for compatibility with upstream TVM (#275)
This commit updates `mlc_llm.cli.worker` to be compatible with
upstream TVM apache/tvm#17180, which adds a
`num_groups` argument to the disco worker function.
To de-couple this compatibility from a general TVM version bump, this
commit has a check on the number of `worker.py` arguments provided, to
determine whether the `num_groups` argument is present. After the TVM
version used by MLC-LLM is updated to include the upstream changes,
this check can be removed.1 parent fb6ec41 commit 6aeda51
1 file changed
+27
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
36 | 56 | | |
37 | 57 | | |
38 | | - | |
39 | | - | |
40 | 58 | | |
41 | 59 | | |
42 | 60 | | |
43 | | - | |
44 | | - | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
46 | | - | |
47 | | - | |
| 64 | + | |
| 65 | + | |
48 | 66 | | |
49 | 67 | | |
50 | | - | |
| 68 | + | |
51 | 69 | | |
52 | 70 | | |
53 | 71 | | |
| |||
0 commit comments