tttoaster commited on
Commit
ddca281
1 Parent(s): 53284ee

Update src/models/mllm/seed_x.py

Browse files
Files changed (1) hide show
  1. src/models/mllm/seed_x.py +3 -2
src/models/mllm/seed_x.py CHANGED
@@ -4,7 +4,7 @@ import torch.nn as nn
4
  from torch.nn import functional as F
5
  from transformers import LogitsProcessorList
6
  from .generation import AutoImageTokenGenerationProcessor
7
- from .utils import load_zero3_checkpoint
8
 
9
 
10
  BOI_TOKEN = '<img>'
@@ -234,5 +234,6 @@ class ContinuousLVLM(nn.Module):
234
 
235
  if pretrained_model_path is not None:
236
  ckpt = torch.load(pretrained_model_path, map_location='cpu')
237
- load_zero3_checkpoint(model, ckpt)
 
238
  return model
 
4
  from torch.nn import functional as F
5
  from transformers import LogitsProcessorList
6
  from .generation import AutoImageTokenGenerationProcessor
7
+ #from .utils import load_zero3_checkpoint
8
 
9
 
10
  BOI_TOKEN = '<img>'
 
234
 
235
  if pretrained_model_path is not None:
236
  ckpt = torch.load(pretrained_model_path, map_location='cpu')
237
+ missing, unexpected = model.load_state_dict(ckpt, strict=False)
238
+ #load_zero3_checkpoint(model, ckpt)
239
  return model