litwell commited on
Commit
213a22d
·
verified ·
1 Parent(s): b8b3824

Upload models/scripts/merge_lora.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. models/scripts/merge_lora.sh +12 -0
models/scripts/merge_lora.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ MODEL_NAME="Qwen/Qwen2-VL-7B-Instruct"
4
+ # MODEL_NAME="Qwen/Qwen2-VL-2B-Instruct"
5
+
6
+ export PYTHONPATH=src:$PYTHONPATH
7
+
8
+ python src/merge_lora_weights.py \
9
+ --model-path /home/world_model/Qwen2-VL-Finetune/output/qwen2vl_lora_vision/checkpoint-200 \
10
+ --model-base $MODEL_NAME \
11
+ --save-model-path /home/workspace/Qwen2-VL-Finetune/output/merge_test \
12
+ --safe-serialization