dstars commited on
Commit
e487146
·
verified ·
1 Parent(s): 6ea15b2

Update demo/agent.py

Browse files
Files changed (1) hide show
  1. demo/agent.py +2 -1
demo/agent.py CHANGED
@@ -16,7 +16,8 @@ class ConversationalAgent:
16
  model_path,
17
  chat_template_config=ChatTemplateConfig(model_name='internvl2-internlm2'),
18
  # backend_config=TurbomindEngineConfig(session_len=8192),
19
- backend_config=backend_config
 
20
  )
21
 
22
  self.uploaded_images_storage = os.path.join(outputs_dir, "uploaded")
 
16
  model_path,
17
  chat_template_config=ChatTemplateConfig(model_name='internvl2-internlm2'),
18
  # backend_config=TurbomindEngineConfig(session_len=8192),
19
+ backend_config=backend_config,
20
+ device=self.device
21
  )
22
 
23
  self.uploaded_images_storage = os.path.join(outputs_dir, "uploaded")