Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and

[中文版](CHANGELOG.zh.md) · [README](README.md) · [Contributing](CONTRIBUTING.md)

## [2.12.1] - 2026-11-27

### Added

- **`bl finetune preset-datasets`**: New command listing the preset datasets that can be mixed into a fine-tuning job for a base model and training type (`--base-model`, `--training-type`, optional `--model-version`). Entries keep the server fields verbatim (`dataset_code`, `dataset_title`, `dataset_desc`); an empty result is a success.
- **Mixed training**: `bl finetune text create` accepts `--augmentation-types` (preset dataset codes, sent lowercased) and `--augmentation-ratio` (one ratio per type, `0.0`–`2.0`; the two flags must be given together). Passing types turns on data augmentation.
- **OSS-mounted datasets**: `--datasets` / `--validations` of `bl finetune text create` accept `oss://<bucket>/<object key>` entries that the service reads in place, skipping local validation, upload and the sample-count pre-check. `--oss-region` sets the bucket region (default `cn-beijing`) and is sent as given.

### Changed

- **`bl finetune train-options` status**: the result carries a `status` that explains a null `training_options`: `configured`, `not_configured` (the model is confirmed in the trainable catalog and has no dynamic options) or `unverified` (no options were returned and the catalog lookup failed). A model id that is not in the catalog now fails with a usage error instead of returning null, and an unrecognized response shape is reported as an error.

### Fixed

- **Required hyper-parameters**: `bl finetune text create` fills an omitted `n_epochs`, `batch_size` or `max_length` from the model's parameter schema defaults; the create API rejects a job when one of them is missing.

## [2.12.0] - 2026-11-25

### Added
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@

[English](CHANGELOG.md) · [README](README.zh.md) · [参与贡献](CONTRIBUTING.zh.md)

## [2.12.1] - 2026-11-27

### 新增

- **`bl finetune preset-datasets`**:新增命令,查询指定基础模型与训练类型下可混入训练的预置数据集(`--base-model`、`--training-type`、可选 `--model-version`)。结果原样保留服务端字段(`dataset_code`、`dataset_title`、`dataset_desc`);结果为空属于成功。
- **混合训练**:`bl finetune text create` 新增 `--augmentation-types`(预置数据集编码,按小写下发)与 `--augmentation-ratio`(按位置对应每种数据集的混合倍率,范围 0.0~2.0,两者必须同时提供)。传入 `--augmentation-types` 即开启数据增强。
- **OSS 挂数据集**:`bl finetune text create` 的 `--datasets` / `--validations` 支持 `oss://<bucket>/<object key>` 条目,由服务端原地读取,不做本地校验、不上传,并跳过样本数预检。`--oss-region` 指定 Bucket 所在地域(默认 `cn-beijing`),原样下发。

### 变更

- **`bl finetune train-options` 的 status**:结果新增 `status` 字段,说明 `training_options` 为 null 的原因:`configured`(返回了选项)、`not_configured`(模型已在可训练目录中确认存在但没有动态选项)、`unverified`(未返回选项且目录查询失败)。模型 ID 不在目录中时改为报用法错误,不再返回 null;无法识别的响应结构也会报错。

### 修复

- **必填超参数**:`bl finetune text create` 未指定 `n_epochs`、`batch_size` 或 `max_length` 时,按模型参数配置中的默认值补齐;创建任务接口在缺少这三项时会拒绝任务。

## [2.12.0] - 2026-11-25

### 新增
Expand Down
1 change: 1 addition & 0 deletions docs/agents/command-flag-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ pnpm -F bailian-cli exec tsx src/main.ts <command> --new-flag x # 实测一遍
- ✗ 改默认值忘记更新 description 里的 "(default: xxx)" 文案
- ✗ 在 `usageArgs` / `exampleArgs` 里写死 `bl <path>`,导致其它产品入口复用时 help 错
- ✗ required flag 缺失又在 `run()` 里重复手写校验,与 parser/`validate` 的错误文案不一致
- ✗ 给 `finetune <modality> create` 加 `hyper_parameters` flag 时,把它登记进 `explicitHyperParameterOverrides` 就会对照模型参数 schema 校验;API 文档有、但 `finetune params` 实测 schema 不返回的参数(如混合训练的 `data_augmentation` / `augmentation_types` / `augmentation_ratio`)必须绕过该校验交给服务端裁决,否则 flag 一用就报 unsupported。加这类 flag 前先用真实模型查一次 `--param-type hyper`
2 changes: 1 addition & 1 deletion packages/bailian-kb-dsh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-kb-dsh",
"version": "2.12.0",
"version": "2.12.1",
"description": "Bailian knowledge-base tools for DeepSeek Harness: kb_search and kb_chat over the DashScope RAG API, plus the bl CLI management skill.",
"keywords": [
"alibaba-cloud",
Expand Down
2 changes: 1 addition & 1 deletion packages/bailian-memo-dsh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-memo-dsh",
"version": "2.12.0",
"version": "2.12.1",
"description": "Bailian personal memory for DeepSeek Harness: automatic recall, silent curation, and user-controlled remember/forget.",
"keywords": [
"alibaba-cloud",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-cli",
"version": "2.12.0",
"version": "2.12.1",
"description": "CLI for Aliyun Model Studio (DashScope) AI Platform.",
"keywords": [
"agent",
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ import {
finetunePrice,
finetuneParams,
finetuneTrainOptions,
finetunePresetDatasets,
finetuneMetrics,
finetuneCompressTemplates,
finetuneCompressCreate,
Expand Down Expand Up @@ -616,6 +617,7 @@ export const commands: Record<string, AnyCommand> = {
"finetune price": finetunePrice,
"finetune params": finetuneParams,
"finetune train-options": finetuneTrainOptions,
"finetune preset-datasets": finetunePresetDatasets,
"finetune metrics": finetuneMetrics,
"finetune compress templates": finetuneCompressTemplates,
"finetune compress create": finetuneCompressCreate,
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bailian-cli-commands",
"version": "2.12.0",
"version": "2.12.1",
"description": "Command library for bailian-cli products (knowledge, memory, media, …). See https://www.npmjs.com/package/bailian-cli for usage.",
"homepage": "https://bailian.console.aliyun.com/cli",
"bugs": {
Expand Down
Loading