Skip to content

Commit 0677ec0

Browse files
fix: 统一 OPD 训练类型值
- 将 SDK 请求和示例中的训练类型调整为 pg_opd - 更新中英文文档与 OPD 单元测试
1 parent ab2a448 commit 0677ec0

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎dashscope/finetune/reinforcement/common/model_types.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __str__(self):
4747

4848
class TrainingType(str, Enum):
4949
TRAINING_TYPE = "reinforcement"
50-
PG_OPD = "pg-opd"
50+
PG_OPD = "pg_opd"
5151

5252
def __str__(self):
5353
return self.value

‎dashscope/finetune/reinforcement/examples/workspace/UserGuide-zh.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ functions:
345345
# ...
346346

347347
training:
348-
type: pg-opd
348+
type: pg_opd
349349
```
350350
351351
```bash

‎dashscope/finetune/reinforcement/examples/workspace/UserGuide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ functions:
334334
# ...
335335
336336
training:
337-
type: pg-opd
337+
type: pg_opd
338338
```
339339
340340
```bash

‎dashscope/finetune/reinforcement/examples/workspace/opd-job.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ datasets:
5858
data_source_type: file_id
5959
file_name: ./data/calc_validation_min.jsonl
6060
training:
61-
type: pg-opd
61+
type: pg_opd
6262
hyper_parameters:
6363
eval_steps: 1
6464
kl_loss_coef: 0.002

‎tests/unit/test_opd.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def _success_response():
4242

4343

4444
def test_pg_opd_training_type_is_public():
45-
assert TrainingType.PG_OPD == "pg-opd"
45+
assert TrainingType.PG_OPD == "pg_opd"
4646

4747

4848
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)