Commit 2b812c0
[test] Fix SFT tokenization tests for VLM changes
- _build_trainer: set is_vlm/processor so _load_and_tokenize (which now
reads them) works on the bare object.__new__ trainer.
- vlm_processor fixture: importorskip torchvision so the VLM tests skip
cleanly under the base dev extra instead of erroring (torchvision ships
via the vllm-bearing extras used in CI).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e8abcde commit 2b812c0
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
874 | 878 | | |
875 | 879 | | |
876 | 880 | | |
| 881 | + | |
| 882 | + | |
877 | 883 | | |
878 | 884 | | |
879 | 885 | | |
| |||
0 commit comments