Skip to content

Commit 61c067f

Browse files
authored
Fix swift deploy bug (modelscope#470)
1 parent f08ff93 commit 61c067f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a href="https://pypi.org/project/ms-swift/"><img src="https://badge.fury.io/py/ms-swift.svg"></a>
2020
<a href="https://github.com/modelscope/swift/blob/main/LICENSE"><img src="https://img.shields.io/github/license/modelscope/swift"></a>
2121
<a href="https://pepy.tech/project/ms-swift"><img src="https://pepy.tech/badge/ms-swift"></a>
22-
<a href="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/modelscope/swift/"><img src="https://img.shields.io/badge/ms--swift-Build from source-6FEBB9.svg"></a>
22+
<a href="https://github.com/modelscope/swift/pulls"><img src="https://img.shields.io/badge/PR-welcome-55EB99.svg"></a>
2323
</p>
2424

2525
## 📖 Table of Contents

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a href="https://pypi.org/project/ms-swift/"><img src="https://badge.fury.io/py/ms-swift.svg"></a>
2020
<a href="https://github.com/modelscope/swift/blob/main/LICENSE"><img src="https://img.shields.io/github/license/modelscope/swift"></a>
2121
<a href="https://pepy.tech/project/ms-swift"><img src="https://pepy.tech/badge/ms-swift"></a>
22-
<a href="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/modelscope/swift/"><img src="https://img.shields.io/badge/ms--swift-Build from source-6FEBB9.svg"></a>
22+
<a href="https://github.com/modelscope/swift/pulls"><img src="https://img.shields.io/badge/PR-welcome-55EB99.svg"></a>
2323
</p>
2424

2525
## 📖 目录

swift/llm/utils/argument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,12 +585,12 @@ class DeployArguments(InferArguments):
585585
ssl_certfile: Optional[str] = None
586586

587587
def __post_init__(self):
588+
super().__post_init__()
588589
model_info = MODEL_MAPPING[self.model_type]
589590
tags = model_info.get('tags', [])
590591
if 'multi-modal' in tags:
591592
raise ValueError(
592593
'Deployment of multimodal models is currently not supported.')
593-
super().__post_init__()
594594

595595

596596
@dataclass

0 commit comments

Comments
 (0)