Skip to content

Commit

Permalink
Remove the useless to_srt_kwargs (#1955)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Nov 8, 2024
1 parent f16eb15 commit 8dc84da
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions python/sglang/srt/sampling/sampling_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,3 @@ def normalize(self, tokenizer):
else:
stop_str_max_len = max(stop_str_max_len, len(stop_str))
self.stop_str_max_len = stop_str_max_len

def to_srt_kwargs(self):
return {
"max_new_tokens": self.max_new_tokens,
"stop": self.stop_strs,
"stop_token_ids": list(self.stop_token_ids),
"temperature": self.temperature,
"top_p": self.top_p,
"top_k": self.top_k,
"frequency_penalty": self.frequency_penalty,
"presence_penalty": self.presence_penalty,
"ignore_eos": self.ignore_eos,
"regex": self.regex,
}

0 comments on commit 8dc84da

Please sign in to comment.