Run this model with HF Jobs

Run openvla/openvla-7b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/openvla/openvla-7b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/openvla/openvla-7b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Update modeling_prismatic.py to account for the case where `input_ids` is `None `

#5
by eliotj - opened

Input Ids and Input Embeds are both marked Optional[torch.LongTensor] = None, however failing to pass in input_ids into the forward() method results in an error in the first block, since the code automatically checks if input_ids.shape[1] == 1 without first checking to see if input_ids is not None.

This pull request updates the logic to allow for this case in Generation with Cache and Multimodal Forward.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment