mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-04-03 21:21:07 +02:00
Merge pull request #116 from VE-FORBRYDERNE/patch
Update list of versions with broken OPT again
This commit is contained in:
commit
98c2aad072
@ -1359,7 +1359,7 @@ if(not vars.use_colab_tpu and vars.model not in ["InferKit", "Colab", "OAI", "Go
|
|||||||
|
|
||||||
|
|
||||||
# Fix a bug in OPTForCausalLM where self.lm_head is the wrong size
|
# 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:
|
try:
|
||||||
from transformers import OPTForCausalLM, OPTModel
|
from transformers import OPTForCausalLM, OPTModel
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user