Repository navigation
Fix the Fuyu and Persimmon convert commands - #51212
Open
JuanFKurucz wants to merge 1 commit into
Open
JuanFKurucz wants to merge 1 commit into
JuanFKurucz wants to merge 1 commit into
Conversation
Use the real Fuyu file name and add the missing line continuation.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
The convert commands in the Fuyu and Persimmon docs do not run as written. Fuyu names a file that does not exist, and both docs miss a backslash, so the shell runs --ada_lib_path as its own command. This fixes the file name and adds the two backslashes.
In fuyu.md the command calls convert_fuyu_weights_to_hf.py, but the file in the repository is convert_fuyu_model_weights_to_hf.py. The missing backslashes are at the end of the --pt_model_path line, fuyu.md line 49 and persimmon.md line 56.
I ran the old and the fixed commands in a container with no network, against a checkout of main. With the old Fuyu name, Python could not open the file. For both guides,
--ada_lib_paththen ran as its own command and the shell said "command not found". With the fix, all four options reached the command, checked with a stand-in for python that prints its arguments. Both convert files define--input_dir,--pt_model_path,--output_dirand--ada_lib_path.I did not run the conversion itself, because it needs the original weights and the adept-inference code. The files that change are docs/source/en/model_doc/fuyu.md and docs/source/en/model_doc/persimmon.md.
Who can review?
Documentation: @stevhliu