Skip to content

Fix the Fuyu and Persimmon convert commands - #51212

Open
JuanFKurucz wants to merge 1 commit into
huggingface:mainfrom
JuanFKurucz:docs-fix-tf-004
Open

JuanFKurucz wants to merge 1 commit into
huggingface:mainfrom
JuanFKurucz:docs-fix-tf-004

Conversation

@JuanFKurucz

@JuanFKurucz JuanFKurucz commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🤗 Transformers CI

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_path then 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_dir and --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

Use the real Fuyu file name and add the missing line continuation.

This branch has not been deployed

No deployments
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.

1 participant