Skip to content

Commit

Permalink
remove unnecessary code and update info
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin-Yang <[email protected]>
  • Loading branch information
jason9693 committed Oct 26, 2024
1 parent 65d509d commit d50c0a9
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."""
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 d50c0a9

Please sign in to comment.