Skip to content

Commit

Permalink
set rope-scaling arg as json.loads so it can load from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
winglian committed Aug 5, 2023
1 parent fe402a6 commit bb8e153
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 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 @@ -133,6 +134,7 @@ def add_cli_args(
help='disable logging statistics')
parser.add_argument('--rope-scaling',
default=None,
type=json.loads,
help='RoPE scaling configuration')
return parser

Expand Down

0 comments on commit bb8e153

Please sign in to comment.