Fixes 'Import Error'
Browse files"ImportError: This modeling file requires the following packages that were not found in your environment: configuration_gpt2l. Run `pip install configuration_gpt2l`"
This error should now not occur.
- modeling_gpt2l.py +1 -1
modeling_gpt2l.py
CHANGED
@@ -24,7 +24,7 @@ import torch.nn as nn
|
|
24 |
from torch.nn import CrossEntropyLoss, MSELoss
|
25 |
|
26 |
from transformers.activations import ACT2FN
|
27 |
-
from configuration_gpt2l import GPT2LConfig
|
28 |
from transformers.file_utils import (
|
29 |
ModelOutput,
|
30 |
add_start_docstrings,
|
|
|
24 |
from torch.nn import CrossEntropyLoss, MSELoss
|
25 |
|
26 |
from transformers.activations import ACT2FN
|
27 |
+
from .configuration_gpt2l import GPT2LConfig
|
28 |
from transformers.file_utils import (
|
29 |
ModelOutput,
|
30 |
add_start_docstrings,
|