Merge pull request #143 from VE-FORBRYDERNE/overhaul-merge
Merge united into overhaul
This commit is contained in:
commit
bd18cd6900
|
@ -1234,7 +1234,7 @@ def patch_transformers():
|
|||
|
||||
|
||||
# Fix a bug in OPTForCausalLM where self.lm_head is the wrong size
|
||||
if(packaging.version.parse("4.19.0.dev0") <= packaging.version.parse(transformers_version) <= packaging.version.parse("4.19.2")):
|
||||
if(packaging.version.parse("4.19.0.dev0") <= packaging.version.parse(transformers_version) < packaging.version.parse("4.20.0")):
|
||||
try:
|
||||
from transformers import OPTForCausalLM, OPTModel
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue