Skip to content

Commit

Permalink
Merge pull request #1 from winglian/longchat-args
Browse files Browse the repository at this point in the history
add rope scaling as a cli arg so openai server can load rope scaled models
  • Loading branch information
LiuXiaoxuanPKU authored Aug 7, 2023
2 parents 58e7121 + bb8e153 commit b9012fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vllm/engine/arg_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import dataclasses
import json
from dataclasses import dataclass
from typing import Optional, Tuple

Expand Down Expand Up @@ -131,6 +132,10 @@ def add_cli_args(
parser.add_argument('--disable-log-stats',
action='store_true',
help='disable logging statistics')
parser.add_argument('--rope-scaling',
default=None,
type=json.loads,
help='RoPE scaling configuration')
return parser

@classmethod
Expand Down

0 comments on commit b9012fb

Please sign in to comment.