Repository navigation
[model] Support Kimi_VL thinking/instruct - #7719
Conversation
|
script for full SFT with zero2 ### model
model_name_or_path: moonshotai/Kimi-VL-A3B-Instruct
trust_remote_code: true
### method
stage: sft
do_train: true
finetuning_type: full
freeze_vision_tower: true
freeze_multi_modal_projector: true
freeze_language_model: false
deepspeed: examples/deepspeed/ds_z2_config.json # 8xh20 gpu
### dataset
dataset: identity, mllm_demo, alpaca_en_demo
template: kimi_vl
cutoff_len: 2048
max_samples: 1000
overwrite_cache: true
preprocessing_num_workers: 1
dataloader_num_workers: 4
### output
output_dir: saves/kimi-vl/full
logging_steps: 1
save_steps: 500
plot_loss: true
overwrite_output_dir: true
save_only_model: false
report_to: none # choices: [none, wandb, tensorboard, swanlab, mlflow]
### train
per_device_train_batch_size: 2
gradient_accumulation_steps: 2
learning_rate: 1.0e-4
num_train_epochs: 10.0
lr_scheduler_type: cosine
warmup_ratio: 0
bf16: true
ddp_timeout: 180000000
resume_from_checkpoint: null
|
|
@chenllliang will the script for full SFT with zero2 work for Thinking model too? |
We can not use the origin top_k method in |
Sure, but the training data for the thinking version should be well-organized with thinking format. |
Get, thanks |
* add kimi_vl * patch config * check version * Update mm_plugin.py * Update mm_plugin.py --------- Co-authored-by: hoshi-hiyouga <hiyouga@buaa.edu.cn>
* add kimi_vl * patch config * check version * Update mm_plugin.py * Update mm_plugin.py --------- Co-authored-by: hoshi-hiyouga <hiyouga@buaa.edu.cn>


What does this PR do?
add kimi_vl
Fixes #7680 (issue)
Have tested
Exp configs
Lora
full
Support
Thanks to Kimi_VL's team's help. @chenllliang @zhouzaida
TODO
modeling_kimi_vl.pyfor training @zhouzaidaBefore submitting