fix use_auth_token

This commit is contained in:
Dmitry Baranchuk 2022-06-28 21:00:34 +03:00 committed by GitHub
parent 6e3db6bed6
commit 775f5b25cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ class Server(threading.Thread):
assert num_blocks is not None
block_indices = range(num_blocks) # TODO replace with proper load balancing
block_config = DistributedBloomConfig.from_pretrained(converted_model_name_or_path, use_auth_token=True)
block_config = DistributedBloomConfig.from_pretrained(converted_model_name_or_path, use_auth_token=use_auth_token)
# initialize modules
blocks = {}