Merge branch 'henk717:united' into united
This commit is contained in:
commit
4a8d7f5e0b
|
@ -1015,9 +1015,10 @@ if(not vars.model in ["InferKit", "Colab", "OAI", "ReadOnly", "TPUMeshTransforme
|
||||||
import transformers.generation_utils
|
import transformers.generation_utils
|
||||||
from transformers import __version__ as transformers_version
|
from transformers import __version__ as transformers_version
|
||||||
|
|
||||||
# Temporary fix for XGLM positional embedding issues until
|
# Some versions of transformers 4.17.0.dev0 are affected by
|
||||||
# https://github.com/huggingface/transformers/issues/15736
|
# https://github.com/huggingface/transformers/issues/15736
|
||||||
# is resolved
|
# This is a workaround for those versions of transformers.
|
||||||
|
if(transformers_version == "4.17.0.dev0"):
|
||||||
try:
|
try:
|
||||||
from transformers.models.xglm.modeling_xglm import XGLMSinusoidalPositionalEmbedding
|
from transformers.models.xglm.modeling_xglm import XGLMSinusoidalPositionalEmbedding
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue