Skip to content

fix(convert): inject auto_map and bundle custom code files into HF outputAdd auto_map injection and custom file copying#3

Open
dudududukim wants to merge 1 commit intoAutoLab-SAI-SJTU:mainfrom
dudududukim:dudududukim-patch-1
Open

fix(convert): inject auto_map and bundle custom code files into HF outputAdd auto_map injection and custom file copying#3
dudududukim wants to merge 1 commit intoAutoLab-SAI-SJTU:mainfrom
dudududukim:dudududukim-patch-1

Conversation

@dudududukim
Copy link
Copy Markdown

save_pretrained() does not write auto_map entries or custom Python files,
causing AutoProcessor.from_pretrained(trust_remote_code=True) to silently
fall back to LlamaTokenizerFast instead of PrismaticProcessor.

After conversion, now automatically:

  • Injects auto_map into config.json and preprocessor_config.json
  • Copies {configuration,modeling,processing}_prismatic.py to the output dir

Mirrors the structure of the official openvla/openvla-7b HF hub checkpoint.

Inject auto_map into config files and copy necessary custom code files for proper model loading.
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