Convert to HF format
This PR converts the model to HF format, while keeping all compatibility with trust_remote_code=True
(the .py
files uploaded are copies of those in Transformers
, with some additional stuff to ensure retro-compatiblity to at least v4.49.0 included, which was the state of the library when this model was released).
It is self-contained, and adds in one-place everything that is needed, including the model, config and processor, thus superseding all precedent PRs from us!
Hi @cyrilvallez , thank you for your work! may I know if you still plan to merge this PR? Is this branch currently verified working?
Hey! Merging is not up to me, but to the repo owners π€ You can still use this branch in Transformers with revision="refs/pr/70"
in all from_pretrained
methods in Transformers, which will work without needing to add trust_remote_code=True
Hi @nguyenbh , could you help to merge this PR? @cyrilvallez and me are from HuggingFace transformers team.