2025-10-04 21:21:42 +00:00
|
|
|
#
|
|
|
|
|
# SPDX-FileCopyrightText: Copyright (c) 1993-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
inference:
|
|
|
|
|
model_id: unsloth/Qwen2.5-VL-7B-Instruct
|
2025-10-06 12:57:08 +00:00
|
|
|
finetuned_model_id: saved_model
|
|
|
|
|
max_seq_length: 8192
|
2025-10-04 21:21:42 +00:00
|
|
|
|
|
|
|
|
train:
|
|
|
|
|
model:
|
|
|
|
|
model_id: unsloth/Qwen2.5-VL-7B-Instruct
|
|
|
|
|
max_seq_length: 16384
|
|
|
|
|
use_lora: true
|
|
|
|
|
lora_config:
|
|
|
|
|
rank: 32
|
|
|
|
|
alpha: 64
|
|
|
|
|
dropout: 0.05
|
|
|
|
|
finetune_vision_layers: true
|
|
|
|
|
finetune_language_layers: true
|
|
|
|
|
finetune_attention_modules: true
|
|
|
|
|
finetune_mlp_modules: true
|
|
|
|
|
|
|
|
|
|
data:
|
|
|
|
|
dataset_id: data
|
|
|
|
|
|
|
|
|
|
hyperparameters:
|
2025-10-06 12:57:08 +00:00
|
|
|
steps: 100
|
|
|
|
|
batch_size: 4
|
2025-10-04 21:21:42 +00:00
|
|
|
enable_grpo: true
|
2025-10-06 12:57:08 +00:00
|
|
|
num_generations: 2
|
2025-10-04 21:21:42 +00:00
|
|
|
format_reward: 2.0
|
|
|
|
|
learning_rate: 1e-5
|
|
|
|
|
correctness_reward: 5.0
|
|
|
|
|
optimizer: adamw_torch
|
|
|
|
|
output_dir: saved_model
|