Commit 9b3f34b
test(templates): unblock TestTemplateIntegration without HF_TOKEN
The 6 generated-template integration tests were skipped unconditionally
in CI/dev because the template placeholders default to gated
meta-llama/Llama-3.1-* repos that require HF_TOKEN to fetch the
tokenizer.
Substitute TinyLlama/TinyLlama-1.1B-Chat-v1.0 for the model name in
_resolve_template after placeholder expansion. TinyLlama is non-gated
(~1MB tokenizer download), shares the Llama-family tokenizer the
templates were written against, and the echo-server path doesn't care
about model identity — only that AutoTokenizer.from_pretrained
succeeds for the metrics aggregator's ISL/OSL/TPOT triggers.
Drops the @pytest.mark.skipif(not HF_TOKEN) decorator, removes the now-
unused os import.
Effect: integration suite goes from 20 passed / 8 skipped to 26 passed
/ 2 skipped. The remaining 2 skips need real LLM servers (vLLM/SGLang)
which aren't in scope.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 78d2573 commit 9b3f34b
1 file changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
184 | 183 | | |
185 | 184 | | |
186 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
190 | | - | |
191 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
192 | 202 | | |
193 | 203 | | |
194 | 204 | | |
| |||
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
200 | 217 | | |
201 | 218 | | |
202 | 219 | | |
| |||
213 | 230 | | |
214 | 231 | | |
215 | 232 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 233 | | |
221 | 234 | | |
222 | 235 | | |
| |||
0 commit comments