Skip to content

Commit

Permalink
tfs_z removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Oct 29, 2024
1 parent 9ffc45b commit 2e65526
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions llama_ros/llama_ros/langchain/llama_ros_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class LlamaROSCommon(BaseLanguageModel, ABC):
min_p: float = 0.05
xtc_probability: float = 0.0
xtc_threshold: float = 0.1
tfs_z: float = 1.00
typical_p: float = 1.00

penalty_last_n: int = 64
Expand Down Expand Up @@ -150,7 +149,6 @@ def _create_action_goal(
goal.sampling_config.min_p = self.min_p
goal.sampling_config.xtc_probability = self.xtc_probability
goal.sampling_config.xtc_threshold = self.xtc_threshold
goal.sampling_config.tfs_z = self.tfs_z
goal.sampling_config.typical_p = self.typical_p

goal.sampling_config.penalty_last_n = self.penalty_last_n
Expand Down
1 change: 0 additions & 1 deletion llama_ros/src/llama_utils/llama_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ struct common_sampler_params llama_utils::parse_sampling_params(
sparams.top_k = sampling_config.top_k;
sparams.top_p = sampling_config.top_p;
sparams.min_p = sampling_config.min_p;
sparams.tfs_z = sampling_config.tfs_z;
sparams.typ_p = sampling_config.typical_p;

sparams.penalty_last_n = sampling_config.penalty_last_n;
Expand Down

0 comments on commit 2e65526

Please sign in to comment.