Skip to content

[test] Fix offline AutoModel unit test - #975

Merged
research4pan merged 1 commit into
mainfrom
lmflow-cicd-update
Aug 7, 2026
Merged

[test] Fix offline AutoModel unit test#975
research4pan merged 1 commit into
mainfrom
lmflow-cicd-update

Conversation

@wheresmyhair

@wheresmyhair wheresmyhair commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fix AutoModelTest failing in offline CI when gpt2 is unavailable in the Hugging Face cache (caused by #974 )

The test now mocks HFDecoderModel initialization and verifies only the factory mapping and argument forwarding, without downloading or loading a model.

Useful especially for github CI/CD workflow.

Testing

26 passed, 3 skipped, 22 deselected

@research4pan
research4pan merged commit ea19450 into main Aug 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants