Commit 68b5ef7
docs: document the two pip indexes and pin Python to 3.10 (#107)
* docs: document the two pip indexes and pin Python to 3.10
The source install told users to run
pip install -r requirements/build.txt -r requirements/musa.txt
with pip's default index. requirements/musa.txt pulls in
requirements/musa_private.txt, whose MUSA wheels are published on the Moore
Threads index, so 12 of its 14 pins cannot resolve and the install dies with
No matching distribution found for torch==2.9.1.post1+musa5.2.0s5000
Document the two indexes and mirror docker/musa.Dockerfile's three-pass install
in both READMEs: the MUSA wheels first from the Moore Threads index alone and
with --no-deps, then the ordinary wheels from public PyPI, then the MUSA wheels'
own dependencies. The indexes stay in separate invocations because triton and
torch_c_dlpack_ext exist on both at the same version with different contents,
and pip has no index priority.
Pin Python to 3.10. The pinned MUSA wheels ship cp310 for x86_64 only, so
requires-python = ">=3.9" let pip start an install on 3.9/3.11/3.12 that could
only fail in dependency resolution; ==3.10.* makes it a clear error instead.
Also correct the docs against the code: the patch section described the
build-time series as runtime patching, the project structure omitted the
directories the install steps reference, docker/README.md redacted the wheel
index and claimed 3.12 support that these pins do not have, and README_CN.md was
missing the ccache section and its environment variables.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: scope the merged-index warning to MUSA wheel resolution
The warning said not to merge the indexes with --extra-index-url, while pass 3
of the same instructions passes both, which reads as a contradiction. State the
rule the passes actually follow: MUSA wheels must be resolved with the Moore
Threads index alone, and a merged index is only safe once pass 1 has installed
them, because nothing MUSA is re-resolved afterwards.
Name the mechanism while here. pip ranks candidates by wheel tag, and the public
triton (manylinux_2_17_x86_64) outranks the Moore Threads one (linux_x86_64), so
a merged resolve does not just risk the public build, it selects it.
Correct the index description in requirements/musa_private.txt: the index is not
MT-network-internal, and it carries ordinary packages too — it simply lacks
torchada and mirrors the rest at versions that miss the common.txt pins, which is
the actual reason an index directive in this file would break the install.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: state that index order does not decide the MUSA wheel
--extra-index-url reads like the right tool for a vendor index alongside PyPI,
so say why it is not: pip pools candidates from every index and has no index
priority. Passing the Moore Threads index as --index-url and public PyPI as
--extra-index-url resolves triton to the public build exactly as the reverse
order does, because the choice is made on wheel tag.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: drop the --extra-index-url explanation from the index section
The rule the install follows is already stated: MUSA wheels resolve with the
Moore Threads index as the sole --index-url. The rationale for why a merged
index misresolves them does not need to live in the README.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs: match the documented Mooncake default to build_image.sh
The configuration table describes docker/build_image.sh, which defaults
BUILD_MOONCAKE to 1, but documented 0. Correct the row and the two places that
only made sense while the documented default was 0: the worked example now shows
how to skip Mooncake rather than how to ask for what is already on, and the image
contents list names it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* build: build Mooncake by default in the Dockerfile
docker/build_image.sh already passes BUILD_MOONCAKE=1, so a bare docker build
was the only path that produced an image without Mooncake. Default the ARG to 1
so both paths agree, and state in the stage list that the stage builds unless
BUILD_MOONCAKE=0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Xiaodong Ye <yexiaodong60@mthreads.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 363ad88 commit 68b5ef7
7 files changed
Lines changed: 208 additions & 51 deletions
File tree
- docker
- requirements
- third_party
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
51 | 86 | | |
52 | 87 | | |
53 | 88 | | |
| |||
57 | 92 | | |
58 | 93 | | |
59 | 94 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
63 | 103 | | |
64 | 104 | | |
65 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
66 | 122 | | |
67 | 123 | | |
68 | | - | |
| 124 | + | |
| 125 | + | |
69 | 126 | | |
70 | 127 | | |
| 128 | + | |
| 129 | + | |
71 | 130 | | |
72 | 131 | | |
73 | 132 | | |
74 | 133 | | |
75 | 134 | | |
76 | 135 | | |
77 | 136 | | |
78 | | - | |
| 137 | + | |
79 | 138 | | |
80 | 139 | | |
81 | 140 | | |
| |||
113 | 172 | | |
114 | 173 | | |
115 | 174 | | |
116 | | - | |
117 | 175 | | |
118 | 176 | | |
119 | 177 | | |
| |||
176 | 234 | | |
177 | 235 | | |
178 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
179 | 242 | | |
180 | 243 | | |
181 | 244 | | |
182 | 245 | | |
183 | 246 | | |
184 | 247 | | |
185 | | - | |
| 248 | + | |
186 | 249 | | |
187 | | - | |
| 250 | + | |
| 251 | + | |
188 | 252 | | |
189 | 253 | | |
190 | 254 | | |
191 | 255 | | |
192 | 256 | | |
193 | 257 | | |
194 | | - | |
| 258 | + | |
195 | 259 | | |
196 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
197 | 267 | | |
198 | 268 | | |
199 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
51 | 83 | | |
52 | 84 | | |
53 | 85 | | |
| |||
57 | 89 | | |
58 | 90 | | |
59 | 91 | | |
60 | | - | |
61 | | - | |
| 92 | + | |
62 | 93 | | |
63 | 94 | | |
64 | | - | |
| 95 | + | |
| 96 | + | |
65 | 97 | | |
66 | 98 | | |
67 | | - | |
| 99 | + | |
68 | 100 | | |
69 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
70 | 125 | | |
71 | 126 | | |
72 | 127 | | |
73 | 128 | | |
74 | 129 | | |
75 | 130 | | |
76 | 131 | | |
77 | | - | |
| 132 | + | |
78 | 133 | | |
79 | 134 | | |
80 | 135 | | |
| |||
92 | 147 | | |
93 | 148 | | |
94 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
95 | 172 | | |
96 | 173 | | |
97 | 174 | | |
| |||
151 | 228 | | |
152 | 229 | | |
153 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
154 | 236 | | |
155 | 237 | | |
156 | 238 | | |
157 | 239 | | |
158 | 240 | | |
159 | 241 | | |
160 | | - | |
| 242 | + | |
161 | 243 | | |
162 | | - | |
| 244 | + | |
| 245 | + | |
163 | 246 | | |
164 | 247 | | |
165 | 248 | | |
166 | 249 | | |
167 | 250 | | |
168 | 251 | | |
169 | | - | |
| 252 | + | |
170 | 253 | | |
171 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
172 | 260 | | |
173 | 261 | | |
174 | 262 | | |
| |||
0 commit comments