Spaces:
Running
on
Zero
Running
on
Zero
update: fix some bug
Browse files- 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(
|