[1/n][CI] Load models in CI from S3 instead of HF (#13205)
Signed-off-by: <> Co-authored-by: EC2 Default User <ec2-user@ip-172-31-20-117.us-west-2.compute.internal>
This commit is contained in:
@@ -409,7 +409,8 @@ class ModelConfig:
|
||||
if is_s3(model) or is_s3(tokenizer):
|
||||
if is_s3(model):
|
||||
s3_model = S3Model()
|
||||
s3_model.pull_files(model, allow_pattern=["*config.json"])
|
||||
s3_model.pull_files(
|
||||
model, allow_pattern=["*.model", "*.py", "*.json"])
|
||||
self.model_weights = self.model
|
||||
self.model = s3_model.dir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user