Alic-Li commited on
Commit
cbd5047
·
verified ·
1 Parent(s): 2474e52

Update infer/worldmodel.py

Browse files
Files changed (1) hide show
  1. infer/worldmodel.py +1 -1
infer/worldmodel.py CHANGED
@@ -31,7 +31,7 @@ class Worldinfer():
31
  else:
32
  assert False, "currently rwkv7 strategy must be: cuda/cpu fp16/fp32/bf16"
33
 
34
- self.model_weight = torch.load(model_path + '.pth', map_location=DEVICE)
35
  modality_dict = {}
36
  for key, value in self.model_weight.items():
37
  if 'emb.weight' in key:
 
31
  else:
32
  assert False, "currently rwkv7 strategy must be: cuda/cpu fp16/fp32/bf16"
33
 
34
+ self.model_weight = torch.load(model_path, map_location=DEVICE)
35
  modality_dict = {}
36
  for key, value in self.model_weight.items():
37
  if 'emb.weight' in key: