mirror of
https://github.com/Vision-CAIR/MiniGPT-4.git
synced 2025-04-05 02:20:47 +00:00
test
This commit is contained in:
parent
fef5e3640d
commit
5204a512e8
1
demo.py
1
demo.py
@ -54,6 +54,7 @@ cfg = Config(args)
|
||||
model_config = cfg.model_cfg
|
||||
model_config.device_8bit = args.gpu_id
|
||||
model_cls = registry.get_model_class(model_config.arch)
|
||||
print(model_config)
|
||||
model = model_cls.from_config(model_config).to('cuda:{}'.format(args.gpu_id))
|
||||
|
||||
# TODO: Fix hard-coding `cc12m`
|
||||
|
Loading…
Reference in New Issue
Block a user