mirror of
https://github.com/Vision-CAIR/MiniGPT-4.git
synced 2025-04-05 18:40:46 +00:00
update evaluation files
This commit is contained in:
parent
bf605d5d74
commit
748d18b5df
@ -66,7 +66,7 @@ evaluation_datasets:
|
|||||||
eval_file_path: /path/to/eval/annotation/path
|
eval_file_path: /path/to/eval/annotation/path
|
||||||
img_path: /path/to/eval/image/path
|
img_path: /path/to/eval/image/path
|
||||||
max_new_tokens: 20
|
max_new_tokens: 20
|
||||||
batch_size: 10
|
batch_size: 100
|
||||||
|
|
||||||
run:
|
run:
|
||||||
task: image_text_pretrain
|
task: image_text_pretrain
|
||||||
|
@ -5,7 +5,7 @@ model:
|
|||||||
end_sym: "</s>"
|
end_sym: "</s>"
|
||||||
low_resource: True
|
low_resource: True
|
||||||
prompt_template: '[INST] {} [/INST]'
|
prompt_template: '[INST] {} [/INST]'
|
||||||
llama_model: "/ibex/project/c2133/llama_v2/llama-2-7b-chat-pytorch_update"
|
llama_model: ""
|
||||||
ckpt: ""
|
ckpt: ""
|
||||||
lora_r: 64
|
lora_r: 64
|
||||||
lora_alpha: 16
|
lora_alpha: 16
|
||||||
|
@ -11,7 +11,7 @@ model:
|
|||||||
# generation configs
|
# generation configs
|
||||||
prompt: ""
|
prompt: ""
|
||||||
|
|
||||||
llama_model: "/ibex/project/c2133/llama_v2/llama-2-7b-chat-pytorch"
|
llama_model: ""
|
||||||
lora_r: 64
|
lora_r: 64
|
||||||
lora_alpha: 16
|
lora_alpha: 16
|
||||||
|
|
||||||
|
@ -10,11 +10,6 @@ from minigpt4.models.base_model import BaseModel
|
|||||||
from transformers import StoppingCriteria, StoppingCriteriaList
|
from transformers import StoppingCriteria, StoppingCriteriaList
|
||||||
|
|
||||||
from minigpt4.conversation.conversation import StoppingCriteriaSub
|
from minigpt4.conversation.conversation import StoppingCriteriaSub
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
|
|
||||||
>>>>>>> upstream/main
|
|
||||||
|
|
||||||
class MiniGPTBase(BaseModel):
|
class MiniGPTBase(BaseModel):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user