Instructions to use medinstructbench/medinstructbench-omni-3b-av with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use medinstructbench/medinstructbench-omni-3b-av with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
MedInstructBench: Qwen2.5-Omni-3B, SFT + GRPO, input audio and video (A+V)
LoRA adapters of a model of the paper MedInstructBench: Vision-Audio-Language Benchmark Towards Procedural Step Segmentation and Captioning in Medical Instructional Videos: Qwen2.5-Omni-3B fine-tuned with supervised fine-tuning (SFT) and then GRPO on MedInstruct10K, with input audio and video (A+V). Given a health question and its answer clip, the model segments the clip into instructional steps, each with start and end times and an imperative caption.
| Folder | Adapter | Merge into |
|---|---|---|
sft/ |
SFT (LoRA on the language model and the audio encoder) | Qwen/Qwen2.5-Omni-3B (revision f75b40e3da2003cdd6e1829b1f420ca70797c34e) |
grpo/ |
GRPO (LoRA on the language model) | the merged SFT model |
sft/ alone, merged into Qwen2.5-Omni-3B, gives the SFT model of the paper (before GRPO).
Usage
With the code repository (https://anonymous.4open.science/r/medinstructbench-5080/):
hf download medinstructbench/medinstructbench-omni-3b-av --local-dir adapters
python training/merge_lora.py --adapter_path adapters/sft \
--base_path <Qwen2.5-Omni-3B folder> --output_path sft_merged
python training/merge_lora.py --adapter_path adapters/grpo \
--base_path sft_merged --output_path model
python inference/run_qwen25omni.py --model_path model --modality av \
--gt_dir data/medinstructbench/test --output_dir output/grpo_3b_av
The merged models are identical, tensor by tensor, to the models evaluated in the paper. The inference settings and prompt are those of the repository (greedy decoding, frames at 0.2 fps).
- Downloads last month
- -
Model tree for medinstructbench/medinstructbench-omni-3b-av
Base model
Qwen/Qwen2.5-Omni-3B