Skip to content

Conversation

@FazeelUsmani
Copy link

Summary

This PR resolves issue #144 by confirming the notebook configuration is synchronized with the library and updating stale documentation links.

Changes

  1. Verified train_nanoVLM.ipynb VLMConfig matches models/config.py (no lm_eos_token_id)
  2. Updated README.md links from nanoVLM.ipynbtrain_nanoVLM.ipynb (lines 5, 42)
  3. Added validation cells to notebook demonstrating model save/load compatibility

Context

Issue #144 was opened on July 9, 2025, reporting that the notebook's VLMConfig included lm_eos_token_id, which had been removed from the library in PR #138 (July 3, 2025).

The field was subsequently removed from the notebook when it was renamed from nanoVLM.ipynb to train_nanoVLM.ipynb in commit 9de5e17 (Sept 10, 2025), but:

  • No PR was created to close the issue formally
  • README.md still referenced the old notebook filename
  • No validation existed to prevent future sync issues

Testing

  • Verified notebook VLMConfig definition matches library (no extra/missing critical fields)
  • Confirmed README links now point to the correct filename
  • Added validation cell to catch future config mismatches
  • All existing tests remain unaffected (no library code modified)

Notes

  • No library code modified (pure documentation fix)
  • No new dependencies added

Closes #144

…e#144)

- Verify train_nanoVLM.ipynb VLMConfig matches models/config.py
- Update README.md links from nanoVLM.ipynb to train_nanoVLM.ipynb
- Add validation cell to demonstrate model save/load compatibility

The lm_eos_token_id field was removed from the library in PR huggingface#138
(July 2025) and subsequently removed from the notebook when it was
renamed from nanoVLM.ipynb to train_nanoVLM.ipynb in commit 9de5e17
(Sept 2025). This PR formally resolves huggingface#144 by confirming the sync
is complete and updating stale documentation references.

Changes:
- README.md: Update Colab badge and interactive notebook links (lines 5, 42)
- train_nanoVLM.ipynb: Add validation cells to verify from_pretrained() works

Fixes huggingface#144
@FazeelUsmani FazeelUsmani marked this pull request as draft November 12, 2025 11:12
@FazeelUsmani FazeelUsmani marked this pull request as ready for review November 12, 2025 11:13
@FazeelUsmani
Copy link
Author

Please review this PR.

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.

nanoVLM.ipynb configuration is out of sync with library, causing TypeError

1 participant