-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
685 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# pycharm | ||
.idea/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright (c) 2022, salesforce.com, inc. | ||
# All rights reserved. | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
model: | ||
arch: minigpt4_qwen7b-chat | ||
load_finetuned: False | ||
load_pretrained: True | ||
|
||
# pretrained: "https://storage.googleapis.com/sfr-vision-language-research/LAVIS/models/InstructBLIP/blip2_pretrained_flant5xxl.pth" | ||
pretrained: "ckpt/blip2/blip2_pretrained_flant5xxl.pth" | ||
finetuned: "" | ||
|
||
# vit encoder | ||
vit_model: "eva_clip_g" | ||
image_size: 224 | ||
drop_path_rate: 0 | ||
use_grad_checkpoint: False | ||
vit_precision: "fp16" | ||
freeze_vit: True | ||
unfreeze_pos_embed: False | ||
|
||
# Q-Former | ||
num_query_token: 32 | ||
qformer_text_input: False | ||
freeze_qformer: True | ||
freeze_queries: True | ||
|
||
# projection | ||
freeze_proj: False | ||
|
||
# path to Vicuna checkpoint | ||
llm_model: "ckpt/Qwen-14B-Chat" | ||
|
||
# lora config | ||
get_lora: False | ||
lora_alpha: 32 | ||
lora_r: 8 | ||
lora_dropout: 0.05 | ||
|
||
# text length when training | ||
max_txt_len: 512 | ||
|
||
|
||
preprocess: | ||
vis_processor: | ||
train: | ||
name: "blip2_image_train" | ||
image_size: 224 | ||
eval: | ||
name: "blip_image_eval" | ||
image_size: 224 | ||
text_processor: | ||
train: | ||
name: "blip_caption" | ||
max_words: 100 | ||
eval: | ||
name: "blip_caption" | ||
max_words: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.