You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Tracking issue for this discussion. File-reading should probably be handled in a classmethod so files don't need to be written to construct certain objects.
One example would be the CLIPTokenizer, which currently accepts files. Ideally a user can provide their own merges, but to maintain the convenience of reading from a file, we could use from_pretrained or similar: