Commit 2ab88f1
qwen3_vl: fetch image URLs and chat_template.jinja from Hub
README examples surfaced two gaps in the port:
- Image inputs passed as https:// URLs (the embedding/reranker README
examples) hit `FileNotFoundError` because `_to_numpy_image` treated
every string as a local path. Detect URLs and fetch via requests.
- `Qwen/Qwen3-VL-Reranker-2B` ships its chat template in
chat_template.jinja, not in tokenizer_config.json. Add a
`_load_qwen_vl_text` helper (local-then-Hub) and fall back to it when
neither processor_config.json nor the tokenizer carries a template.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 26a4936 commit 2ab88f1
1 file changed
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| |||
372 | 379 | | |
373 | 380 | | |
374 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
375 | 397 | | |
376 | 398 | | |
377 | 399 | | |
| |||
639 | 661 | | |
640 | 662 | | |
641 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
642 | 672 | | |
643 | 673 | | |
644 | 674 | | |
| |||
0 commit comments