MedInstructBench: Qwen2.5-Omni-7B, SFT + GRPO, input audio and video (A+V)

LoRA adapters of the model of the paper MedInstructBench: Vision-Audio-Language Benchmark Towards Procedural Step Segmentation and Captioning in Medical Instructional Videos: Qwen2.5-Omni-7B 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-7B (revision ae9e1690543ffd5c0221dc27f79834d0294cba00)
grpo/ GRPO (LoRA on the language model) the merged SFT model

sft/ alone, merged into Qwen2.5-Omni-7B, 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-7b-av --local-dir adapters
python training/merge_lora.py --adapter_path adapters/sft \
    --base_path <Qwen2.5-Omni-7B 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_7b_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
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for medinstructbench/medinstructbench-omni-7b-av

Adapter
(66)
this model