Skip to content

Commit

Permalink
fix: default sampling to False to avoid changing existing behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed Sep 13, 2023
1 parent b331dfa commit 46260d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frame_semantic_transformer/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def predict(
num_beams: int = 5,
top_k: int = 50,
top_p: float = 0.95,
do_sample: bool = True,
do_sample: bool = False,
repetition_penalty: float = 2.5,
length_penalty: float = 1.0,
early_stopping: bool = True,
Expand Down Expand Up @@ -47,7 +47,7 @@ def batch_predict(
num_beams: int = 5,
top_k: int = 50,
top_p: float = 0.95,
do_sample: bool = True,
do_sample: bool = False,
repetition_penalty: float = 2.5,
length_penalty: float = 1.0,
early_stopping: bool = True,
Expand Down Expand Up @@ -90,7 +90,7 @@ def predict_on_ids(
num_beams: int = 5,
top_k: int = 50,
top_p: float = 0.95,
do_sample: bool = True,
do_sample: bool = False,
repetition_penalty: float = 2.5,
length_penalty: float = 1.0,
early_stopping: bool = True,
Expand Down

0 comments on commit 46260d6

Please sign in to comment.