Update ChatFalcon.py
Browse files- ChatFalcon.py +2 -2
ChatFalcon.py
CHANGED
|
@@ -33,10 +33,10 @@ from transformers.modeling_outputs import (
|
|
| 33 |
from transformers.modeling_utils import PreTrainedModel
|
| 34 |
from transformers.utils import add_code_sample_docstrings, add_start_docstrings, add_start_docstrings_to_model_forward, logging
|
| 35 |
from configuration_falcon import FalconConfig
|
| 36 |
-
|
| 37 |
|
| 38 |
logger = logging.get_logger(__name__)
|
| 39 |
-
|
| 40 |
FALCON_PRETRAINED_MODEL_ARCHIVE_LIST = [
|
| 41 |
"tiiuae/falcon-40b",
|
| 42 |
"tiiuae/falcon-40b-instruct",
|
|
|
|
| 33 |
from transformers.modeling_utils import PreTrainedModel
|
| 34 |
from transformers.utils import add_code_sample_docstrings, add_start_docstrings, add_start_docstrings_to_model_forward, logging
|
| 35 |
from configuration_falcon import FalconConfig
|
| 36 |
+
from transformers.models.auto import modeling_auto
|
| 37 |
|
| 38 |
logger = logging.get_logger(__name__)
|
| 39 |
+
modeling_auto.MODEL_FOR_CAUSAL_LM_MAPPING_NAMES['falcon'] = 'FalconForCausalLM'
|
| 40 |
FALCON_PRETRAINED_MODEL_ARCHIVE_LIST = [
|
| 41 |
"tiiuae/falcon-40b",
|
| 42 |
"tiiuae/falcon-40b-instruct",
|