JiachenFu commited on
Commit
2db4c26
·
1 Parent(s): 40b691d

update: fix some bug

Browse files
Files changed (1) hide show
  1. core/model.py +0 -2
core/model.py CHANGED
@@ -115,8 +115,6 @@ class DiscrepancyEstimator(nn.Module):
115
  """
116
  Load the model's state_dict from the specified directory.
117
  """
118
- if not os.path.exists(load_directory):
119
- raise ValueError(f"Directory {load_directory} does not exist.")
120
 
121
  if 'gpt-j' in load_directory or 'GPT-J' in load_directory:
122
  model_kwargs = dict(
 
115
  """
116
  Load the model's state_dict from the specified directory.
117
  """
 
 
118
 
119
  if 'gpt-j' in load_directory or 'GPT-J' in load_directory:
120
  model_kwargs = dict(