Skip to content

Commit

Permalink
remove unnecessary code and update info
Browse files Browse the repository at this point in the history
  • Loading branch information
jason9693 committed Oct 26, 2024
1 parent 4f2f0b9 commit 6519d37
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions vllm/model_executor/models/qwen2_cls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# coding=utf-8
# Adapted from
# https://huggingface.co/Qwen/Qwen2.5-Math-RM-72B/blob/main/modeling_qwen2_rm.py
# Copyright 2024 Kakao Corp(Kanana-X Team).
# Copyright 2024 The Qwen team.
# Copyright 2023 The vLLM team.
"""Inference-only Qwen2-RM model compatible with HuggingFace weights."""
"""Inference-only Qwen2-Classification model compatible with HuggingFace weights."""

Check failure on line 7 in vllm/model_executor/models/qwen2_cls.py

View workflow job for this annotation

GitHub Actions / ruff (3.9)

Ruff (E501)

vllm/model_executor/models/qwen2_cls.py:7:81: E501 Line too long (84 > 80)

Check failure on line 7 in vllm/model_executor/models/qwen2_cls.py

View workflow job for this annotation

GitHub Actions / ruff (3.10)

Ruff (E501)

vllm/model_executor/models/qwen2_cls.py:7:81: E501 Line too long (84 > 80)

Check failure on line 7 in vllm/model_executor/models/qwen2_cls.py

View workflow job for this annotation

GitHub Actions / ruff (3.11)

Ruff (E501)

vllm/model_executor/models/qwen2_cls.py:7:81: E501 Line too long (84 > 80)
from typing import Iterable, List, Optional, Tuple

import torch
Expand All @@ -23,17 +24,6 @@
from .utils import AutoWeightsLoader


class ReLU(nn.Module):

def __init__(self):
super().__init__()
self.activation = nn.ReLU()

def forward(self, input):
input, _ = input
return self.activation(input)


class Qwen2ForSequenceClassification(nn.Module):
packed_modules_mapping = {
"qkv_proj": [
Expand Down

0 comments on commit 6519d37

Please sign in to comment.