Instructions to use medinstructbench/medinstructbench-omni-7b-v with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use medinstructbench/medinstructbench-omni-7b-v with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
MedInstructBench: Qwen2.5-Omni-7B, SFT + GRPO, input video only (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 video only (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) | 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-v --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 v \
--gt_dir data/medinstructbench/test --output_dir output/grpo_7b_v
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-7b-v
Base model
Qwen/Qwen2.5-Omni-7B