mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 12:10:09 +01:00
fix bug
This commit is contained in:
@@ -32,8 +32,7 @@ class PlugForTextGeneration(DistributedTorchModel):
|
||||
return res
|
||||
|
||||
def _instantiate_one(self, rank, model_dir, **kwargs):
|
||||
cfg = read_config(model_dir)
|
||||
self.__class__.model = DistributedPlug(model_dir, rank, **cfg.model, **kwargs)
|
||||
self.__class__.model = DistributedPlug(model_dir, rank, **kwargs)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user