Support transformers 4.32.x (#471)

pull/473/head
justheuristic 9 months ago committed by GitHub
parent adda5f8c20
commit 9250025140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,7 @@ install_requires =
accelerate>=0.20.3,<0.21.0
huggingface-hub>=0.11.1,<1.0.0
tokenizers>=0.13.3
transformers>=4.31.0,<4.32.0
transformers>=4.32.0
speedtest-cli==2.1.3
pydantic>=1.10,<2.0 # 2.0 is incompatible with hivemind yet
hivemind==1.1.9

@ -61,7 +61,7 @@ def load_pretrained_block(
)
# dummy load, check that keys match
report = block.load_state_dict(state_dict, strict=True)
report = block.load_state_dict(state_dict, strict=False)
assert not report.missing_keys, f"Some block weights are missing: {report.missing_keys}"
for param_name, _ in block.named_parameters():

Loading…
Cancel
Save