Skip to content

Commit

Permalink
fix file name
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikaiChen committed Feb 7, 2025
1 parent 1221ccd commit 15addc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rewardbench/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from .grm import GRewardModel, GRMPipeline
from .inform import INFORMForSequenceClassification
from .internlm import InternLMPipeline
from .lenovo import LDLRewardModel27B, LenovoPipeline
from .ldlreward import LDLPipeline, LDLRewardModel27B
from .openassistant import * # noqa
from .openbmb import LlamaRewardModel, OpenBMBPipeline
from .pairrm import DebertaV2PairRM, PairRMPipeline
Expand All @@ -53,9 +53,9 @@
"custom_dialogue": False,
"model_type": "Seq. Classifier",
},
"lenovo/LDL-Reward-Gemma-2-27B-v0.1": {
"ShikaiChen/LDL-Reward-Gemma-2-27B-v0.1": {
"model_builder": LDLRewardModel27B.from_pretrained,
"pipeline_builder": LenovoPipeline,
"pipeline_builder": LDLPipeline,
"quantized": False,
"custom_dialogue": False,
"model_type": "Seq. Classifier",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def from_pretrained(cls, load_directory, device_map=None, *model_args, **kwargs)
return model


class LenovoPipeline:
class LDLPipeline:
def __init__(self, task, model, tokenizer):
self.task = task
self.model = model.eval()
Expand Down

0 comments on commit 15addc9

Please sign in to comment.