Skip to content

Commit 7c60044

Browse files
authored
Fix model docstrings (#1764)
1 parent e0c6f55 commit 7c60044

File tree

14 files changed

+14
-70
lines changed

14 files changed

+14
-70
lines changed

vllm/model_executor/models/aquila.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2121
# See the License for the specific language governing permissions and
2222
# limitations under the License.
23-
"""Inference-only LLaMA model compatible with HuggingFace weights.
24-
25-
The input of the model is flattened to a 1D tensor of tokens. The model uses
26-
InputMetadata to extract the original 2D shape of the input.
27-
"""
23+
"""Inference-only LLaMA model compatible with HuggingFace weights."""
2824
from typing import Any, Dict, List, Optional, Tuple
2925

3026
import torch

vllm/model_executor/models/baichuan.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1818
# See the License for the specific language governing permissions and
1919
# limitations under the License.
20-
"""Inference-only BaiChuan model compatible with HuggingFace weights.
21-
22-
The input of the model is flattened to a 1D tensor of tokens. The model uses
23-
InputMetadata to extract the original 2D shape of the input.
24-
"""
20+
"""Inference-only BaiChuan model compatible with HuggingFace weights."""
2521
import math
2622
from typing import List, Optional, Tuple
2723

vllm/model_executor/models/bloom.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
18-
"""Inference-only BLOOM model compatible with HuggingFace weights.
19-
20-
The input of the model is flattened to a 1D tensor of tokens. The model uses
21-
InputMetadata to extract the original 2D shape of the input.
22-
"""
18+
"""Inference-only BLOOM model compatible with HuggingFace weights."""
2319
import math
2420
from typing import List, Optional, Tuple
2521

vllm/model_executor/models/chatglm.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# coding=utf-8
22
# Adapted from
33
# https://github.com/THUDM/ChatGLM2-6B
4-
"""Inference-only ChatGLM model compatible with THUDM weights.
5-
6-
The input of the model is flattened to a 1D tensor of tokens. The model uses
7-
InputMetadata to extract the original 2D shape of the input.
8-
"""
4+
"""Inference-only ChatGLM model compatible with THUDM weights."""
95
from typing import List, Optional, Tuple
106

117
import torch

vllm/model_executor/models/gpt2.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
19-
"""Inference-only GPT-2 model compatible with HuggingFace weights.
20-
21-
The input of the model is flattened to a 1D tensor of tokens. The model uses
22-
InputMetadata to extract the original 2D shape of the input.
23-
"""
19+
"""Inference-only GPT-2 model compatible with HuggingFace weights."""
2420
from typing import List, Optional, Tuple
2521

2622
import torch

vllm/model_executor/models/gpt_bigcode.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1818
# See the License for the specific language governing permissions and
1919
# limitations under the License.
20-
"""Inference-only GPTBigCode model compatible with HuggingFace weights.
21-
22-
The input of the model is flattened to a 1D tensor of tokens. The model uses
23-
InputMetadata to extract the original 2D shape of the input.
24-
"""
20+
"""Inference-only GPTBigCode model compatible with HuggingFace weights."""
2521
from typing import List, Optional, Tuple
2622

2723
import torch

vllm/model_executor/models/gpt_j.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
18-
"""Inference-only GPT-J model compatible with HuggingFace weights.
19-
20-
The input of the model is flattened to a 1D tensor of tokens. The model uses
21-
InputMetadata to extract the original 2D shape of the input.
22-
"""
18+
"""Inference-only GPT-J model compatible with HuggingFace weights."""
2319
from typing import List, Optional, Tuple
2420

2521
import torch

vllm/model_executor/models/gpt_neox.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1616
# See the License for the specific language governing permissions and
1717
# limitations under the License.
18-
"""Inference-only GPT-NeoX model compatible with HuggingFace weights.
19-
20-
The input of the model is flattened to a 1D tensor of tokens. The model uses
21-
InputMetadata to extract the original 2D shape of the input.
22-
"""
18+
"""Inference-only GPT-NeoX model compatible with HuggingFace weights."""
2319
from typing import List, Optional, Tuple
2420

2521
import torch

vllm/model_executor/models/llama.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2121
# See the License for the specific language governing permissions and
2222
# limitations under the License.
23-
"""Inference-only LLaMA model compatible with HuggingFace weights.
24-
25-
The input of the model is flattened to a 1D tensor of tokens. The model uses
26-
InputMetadata to extract the original 2D shape of the input.
27-
"""
23+
"""Inference-only LLaMA model compatible with HuggingFace weights."""
2824
from typing import Any, Dict, List, Optional, Tuple
2925

3026
import torch

vllm/model_executor/models/mistral.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2121
# See the License for the specific language governing permissions and
2222
# limitations under the License.
23-
"""Inference-only Mistral model compatible with HuggingFace weights.
24-
25-
The input of the model is flattened to a 1D tensor of tokens. The model uses
26-
InputMetadata to extract the original 2D shape of the input.
27-
"""
23+
"""Inference-only Mistral model compatible with HuggingFace weights."""
2824
from typing import List, Optional, Tuple
2925

3026
import torch

vllm/model_executor/models/opt.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1717
# See the License for the specific language governing permissions and
1818
# limitations under the License.
19-
"""Inference-only OPT model compatible with HuggingFace weights.
20-
21-
The input of the model is flattened to a 1D tensor of tokens. The model uses
22-
InputMetadata to extract the original 2D shape of the input.
23-
"""
19+
"""Inference-only OPT model compatible with HuggingFace weights."""
2420
from typing import List, Optional, Tuple
2521

2622
import torch

vllm/model_executor/models/phi_1_5.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@
3434
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3535
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3636
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37-
"""Inference-only Phi-1.5 model compatible with HuggingFace weights.
38-
39-
The input of the model is flattened to a 1D tensor of tokens. The model uses
40-
InputMetadata to extract the original 2D shape of the input.
41-
"""
37+
"""Inference-only Phi-1.5 model compatible with HuggingFace weights."""
4238
from typing import List, Optional, Tuple
4339

4440
import torch

vllm/model_executor/models/qwen.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
# https://huggingface.co/Qwen/Qwen-7B/blob/main/modeling_qwen.py
44
# Copyright (c) Alibaba Cloud.
55
# LICENSE: https://huggingface.co/Qwen/Qwen-7B/blob/main/LICENSE
6-
"""Inference-only QWen model compatible with HuggingFace weights.
7-
8-
The input of the model is flattened to a 1D tensor of tokens. The model uses
9-
InputMetadata to extract the original 2D shape of the input.
10-
"""
6+
"""Inference-only QWen model compatible with HuggingFace weights."""
117
from typing import Any, Dict, List, Optional, Tuple
128

139
import torch

vllm/model_executor/models/yi.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2121
# See the License for the specific language governing permissions and
2222
# limitations under the License.
23-
"""Inference-only Yi model (https://01.ai) compatible with HuggingFace weights.
24-
25-
The input of the model is flattened to a 1D tensor of tokens. The model uses
26-
InputMetadata to extract the original 2D shape of the input.
27-
"""
23+
"""Inference-only Yi model (https://01.ai) compatible with HuggingFace weights."""
2824
from typing import Any, Dict, List, Optional, Tuple
2925

3026
import torch

0 commit comments

Comments
 (0)