mirror of
https://github.com/Vision-CAIR/MiniGPT-4.git
synced 2025-04-06 11:00:48 +00:00
Update minigpt4.py
This commit is contained in:
parent
18d7957e92
commit
79ead58faf
@ -39,7 +39,7 @@ class MiniGPT4(MiniGPTBase):
|
|||||||
prompt_template="",
|
prompt_template="",
|
||||||
max_txt_len=32,
|
max_txt_len=32,
|
||||||
end_sym='\n',
|
end_sym='\n',
|
||||||
low_resource=False, # use 8 bit and put vit in cpu
|
low_resource=True, # use 8 bit and put vit in cpu
|
||||||
device_8bit=0, # the device of 8bit model should be set when loading and cannot be changed anymore.
|
device_8bit=0, # the device of 8bit model should be set when loading and cannot be changed anymore.
|
||||||
):
|
):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
Loading…
Reference in New Issue
Block a user