AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
RFTHyperParameters.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/ReasoningEffort.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Bedrock {
20namespace Model {
21
30 public:
31 AWS_BEDROCK_API RFTHyperParameters() = default;
34 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetEpochCount() const { return m_epochCount; }
42 inline bool EpochCountHasBeenSet() const { return m_epochCountHasBeenSet; }
43 inline void SetEpochCount(int value) {
44 m_epochCountHasBeenSet = true;
45 m_epochCount = value;
46 }
48 SetEpochCount(value);
49 return *this;
50 }
52
54
58 inline int GetBatchSize() const { return m_batchSize; }
59 inline bool BatchSizeHasBeenSet() const { return m_batchSizeHasBeenSet; }
60 inline void SetBatchSize(int value) {
61 m_batchSizeHasBeenSet = true;
62 m_batchSize = value;
63 }
64 inline RFTHyperParameters& WithBatchSize(int value) {
65 SetBatchSize(value);
66 return *this;
67 }
69
71
75 inline double GetLearningRate() const { return m_learningRate; }
76 inline bool LearningRateHasBeenSet() const { return m_learningRateHasBeenSet; }
77 inline void SetLearningRate(double value) {
78 m_learningRateHasBeenSet = true;
79 m_learningRate = value;
80 }
81 inline RFTHyperParameters& WithLearningRate(double value) {
82 SetLearningRate(value);
83 return *this;
84 }
86
88
93 inline int GetMaxPromptLength() const { return m_maxPromptLength; }
94 inline bool MaxPromptLengthHasBeenSet() const { return m_maxPromptLengthHasBeenSet; }
95 inline void SetMaxPromptLength(int value) {
96 m_maxPromptLengthHasBeenSet = true;
97 m_maxPromptLength = value;
98 }
100 SetMaxPromptLength(value);
101 return *this;
102 }
104
106
110 inline int GetTrainingSamplePerPrompt() const { return m_trainingSamplePerPrompt; }
111 inline bool TrainingSamplePerPromptHasBeenSet() const { return m_trainingSamplePerPromptHasBeenSet; }
112 inline void SetTrainingSamplePerPrompt(int value) {
113 m_trainingSamplePerPromptHasBeenSet = true;
114 m_trainingSamplePerPrompt = value;
115 }
118 return *this;
119 }
121
123
127 inline int GetInferenceMaxTokens() const { return m_inferenceMaxTokens; }
128 inline bool InferenceMaxTokensHasBeenSet() const { return m_inferenceMaxTokensHasBeenSet; }
129 inline void SetInferenceMaxTokens(int value) {
130 m_inferenceMaxTokensHasBeenSet = true;
131 m_inferenceMaxTokens = value;
132 }
135 return *this;
136 }
138
140
144 inline ReasoningEffort GetReasoningEffort() const { return m_reasoningEffort; }
145 inline bool ReasoningEffortHasBeenSet() const { return m_reasoningEffortHasBeenSet; }
147 m_reasoningEffortHasBeenSet = true;
148 m_reasoningEffort = value;
149 }
151 SetReasoningEffort(value);
152 return *this;
153 }
155
157
161 inline int GetEvalInterval() const { return m_evalInterval; }
162 inline bool EvalIntervalHasBeenSet() const { return m_evalIntervalHasBeenSet; }
163 inline void SetEvalInterval(int value) {
164 m_evalIntervalHasBeenSet = true;
165 m_evalInterval = value;
166 }
168 SetEvalInterval(value);
169 return *this;
170 }
172 private:
173 int m_epochCount{0};
174
175 int m_batchSize{0};
176
177 double m_learningRate{0.0};
178
179 int m_maxPromptLength{0};
180
181 int m_trainingSamplePerPrompt{0};
182
183 int m_inferenceMaxTokens{0};
184
185 ReasoningEffort m_reasoningEffort{ReasoningEffort::NOT_SET};
186
187 int m_evalInterval{0};
188 bool m_epochCountHasBeenSet = false;
189 bool m_batchSizeHasBeenSet = false;
190 bool m_learningRateHasBeenSet = false;
191 bool m_maxPromptLengthHasBeenSet = false;
192 bool m_trainingSamplePerPromptHasBeenSet = false;
193 bool m_inferenceMaxTokensHasBeenSet = false;
194 bool m_reasoningEffortHasBeenSet = false;
195 bool m_evalIntervalHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace Bedrock
200} // namespace Aws
RFTHyperParameters & WithLearningRate(double value)
void SetReasoningEffort(ReasoningEffort value)
RFTHyperParameters & WithInferenceMaxTokens(int value)
RFTHyperParameters & WithTrainingSamplePerPrompt(int value)
AWS_BEDROCK_API RFTHyperParameters(Aws::Utils::Json::JsonView jsonValue)
RFTHyperParameters & WithMaxPromptLength(int value)
AWS_BEDROCK_API RFTHyperParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
RFTHyperParameters & WithEvalInterval(int value)
RFTHyperParameters & WithBatchSize(int value)
AWS_BEDROCK_API RFTHyperParameters()=default
RFTHyperParameters & WithEpochCount(int value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
RFTHyperParameters & WithReasoningEffort(ReasoningEffort value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue