hiyouga 12790601c1 fix llava qlora
Former-commit-id: fc67b736ba3abd1a321c3498548d58de48921626
2024-04-26 18:00:23 +08:00

12 lines
400 B
Bash

#!/bin/bash
# NEED TO run `merge.sh` before using this script
CUDA_VISIBLE_DEVICES=0 python ../../src/export_model.py \
--model_name_or_path ../../models/llama2-7b-sft \
--template default \
--export_dir ../../models/llama2-7b-sft-int4 \
--export_quantization_bit 4 \
--export_quantization_dataset ../../data/c4_demo.json \
--export_size 2 \
--export_legacy_format False