GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge origin/main into feat/telemetry-region-endpoint · modelstudioai/cli@f200511

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • CHANGELOG.md
  • CHANGELOG.zh.md
  • docs/agents
    • command-flag-change.md
    • telemetry-change.md
  • packages
    • bailian-kb-dsh
      • package.json
    • bailian-memo-dsh
      • package.json
    • cli
      • package.json
      • src
        • commands.ts
        • main.ts
    • commands
      • package.json
      • src
        • commands/finetune
          • create.ts
          • dataset-input.ts
          • opd-run.ts
          • params.ts
          • preset-datasets.ts
          • train-options-shared.ts
          • train-options.ts
        • index.ts
      • tests
        • e2e
          • finetune.e2e.test.ts
          • topic-routes.ts
        • output
          • finetune-preset-datasets.test.ts
          • finetune-train-options.test.ts
          • fixtures
            • training-deployment.json
    • core
      • package.json
      • src
        • client
          • endpoints.ts
        • finetune
          • api.ts
          • index.ts
          • oss-mount.ts
          • train-options.ts
          • types.ts
        • telemetry
          • sink.ts
      • tests
        • finetune-oss-mount.test.ts
        • finetune-preset-datasets-api.test.ts
        • finetune-train-options.test.ts
        • telemetry-sink.test.ts
    • kscli
      • package.json
      • src
        • main.ts
    • runtime
      • package.json
      • src
        • create-cli.ts
        • error-handler.ts
        • index.ts
        • output
          • flush.ts
      • tests
        • error-handler.test.ts
        • flush-output.test.ts
        • harness
          • run-to-exit-main.ts
          • telemetry-exit-main.ts
        • interrupt.test.ts
        • preparation.test.ts
        • run-to-exit.e2e.test.ts
        • run-to-exit.test.ts
        • telemetry-exit.e2e.test.ts
  • skills
    • bailian-cli
      • SKILL.md
    • bailian-finetune
      • SKILL.md
      • reference
        • finetune.md
        • index.md
    • bailian-gen
      • SKILL.md
    • bailian-knowledge
      • SKILL.md
    • bailian-managed-agent
      • SKILL.md
    • bailian-memory
      • SKILL.md
    • bailian-opd
      • SKILL.md
    • bailian-protocol
      • SKILL.md
    • bailian-sandbox
      • SKILL.md
    • bailian-web-search
      • SKILL.md

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
66

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

9+
## [2.12.1] - 2026-11-27
10+
11+
### Added
12+
13+
- **`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.
14+
- **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.
15+
- **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.
16+
17+
### Changed
18+
19+
- **`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.
20+
21+
### Fixed
22+
23+
- **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.
24+
925
## [2.12.0] - 2026-11-25
1026

1127
### Added
Collapse file

‎CHANGELOG.zh.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.zh.md
+16Lines changed: 16 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@
66

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

9+
## [2.12.1] - 2026-11-27
10+
11+
### 新增
12+
13+
- **`bl finetune preset-datasets`**:新增命令,查询指定基础模型与训练类型下可混入训练的预置数据集(`--base-model`、`--training-type`、可选 `--model-version`)。结果原样保留服务端字段(`dataset_code`、`dataset_title`、`dataset_desc`);结果为空属于成功。
14+
- **混合训练**:`bl finetune text create` 新增 `--augmentation-types`(预置数据集编码,按小写下发)与 `--augmentation-ratio`(按位置对应每种数据集的混合倍率,范围 0.0~2.0,两者必须同时提供)。传入 `--augmentation-types` 即开启数据增强。
15+
- **OSS 挂数据集**:`bl finetune text create` 的 `--datasets` / `--validations` 支持 `oss://<bucket>/<object key>` 条目,由服务端原地读取,不做本地校验、不上传,并跳过样本数预检。`--oss-region` 指定 Bucket 所在地域(默认 `cn-beijing`),原样下发。
16+
17+
### 变更
18+
19+
- **`bl finetune train-options` 的 status**:结果新增 `status` 字段,说明 `training_options` 为 null 的原因:`configured`(返回了选项)、`not_configured`(模型已在可训练目录中确认存在但没有动态选项)、`unverified`(未返回选项且目录查询失败)。模型 ID 不在目录中时改为报用法错误,不再返回 null;无法识别的响应结构也会报错。
20+
21+
### 修复
22+
23+
- **必填超参数**:`bl finetune text create` 未指定 `n_epochs`、`batch_size` 或 `max_length` 时,按模型参数配置中的默认值补齐;创建任务接口在缺少这三项时会拒绝任务。
24+
925
## [2.12.0] - 2026-11-25
1026

1127
### 新增
Collapse file

‎docs/agents/command-flag-change.md‎

Copy file name to clipboardExpand all lines: docs/agents/command-flag-change.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ pnpm -F bailian-cli exec tsx src/main.ts <command> --new-flag x # 实测一遍
6363
- ✗ 改默认值忘记更新 description 里的 "(default: xxx)" 文案
6464
- ✗ 在 `usageArgs` / `exampleArgs` 里写死 `bl <path>`,导致其它产品入口复用时 help 错
6565
- ✗ required flag 缺失又在 `run()` 里重复手写校验,与 parser/`validate` 的错误文案不一致
66+
- ✗ 给 `finetune <modality> create` 加 `hyper_parameters` flag 时,把它登记进 `explicitHyperParameterOverrides` 就会对照模型参数 schema 校验;API 文档有、但 `finetune params` 实测 schema 不返回的参数(如混合训练的 `data_augmentation` / `augmentation_types` / `augmentation_ratio`)必须绕过该校验交给服务端裁决,否则 flag 一用就报 unsupported。加这类 flag 前先用真实模型查一次 `--param-type hyper`
Collapse file

‎docs/agents/telemetry-change.md‎

Copy file name to clipboardExpand all lines: docs/agents/telemetry-change.md
+2-1Lines changed: 2 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ AEM 映射:
223223

224224
`siteReason` 为粗粒度枚举(`product-domestic` / `product-international` / `positive-domestic` / `positive-international` / `default-fallback` / `unknown-host`),**禁止**带原始 host。`product-*` 表示归属来自产品声明,`positive-*` 表示来自用户配置信号,两者不能混算。漏判量化用国内站 `siteReason` 兜底类占比;不要用「国内 pid 出现 `site=international`」做告警(国际事件不会进国内 pid)。
225225

226-
远端发送是 best-effort,不得阻塞命令或改变退出码。正常退出最多等待 1 秒,SIGINT 最多等待 500 ms。
226+
远端发送是 best-effort,不得阻塞命令或改变退出码。正常退出最多等待 1 秒,SIGINT 最多等待 500 ms。`flushTelemetry` 同时等待在途本地 JSONL 落盘与远端发送,共享同一超时预算;超时只取消远端,本地写不可取消但仍不得无限阻塞退出。
227227

228228
## 必查清单
229229

@@ -257,6 +257,7 @@ AEM 映射:
257257
- [ ] `remoteSink` 从调用到 `remoteSendEvent` 入队之间不得出现 `await`(flush 只排空已入队事件)
258258
- [ ] 测试中调用 `remoteSink` 的用例必须使用 `enterIsolatedHome()`,避免写入真实配置目录
259259
- [ ] 遥测发送的 DNS/HTTP/响应体必须受可取消预算控制;flush 超时必须取消在途操作,不能只停止等待,也不能修改全局 DNS/dispatcher 或强制退出宿主
260+
- [ ] `localSink` 在途写入须登记并由 `flushTelemetry` 等待(即使无远端 in-flight);命令路径仍可 fire-and-forget,不得因本地写失败改退出码;用 `telemetry-sink` 单测覆盖「无远端也落盘」和「本地卡住仍按时返回」,并用 `telemetry-exit` e2e 的 `fast-run-to-exit` 子进程用例守住「远端立即响应 + `runToExit` 强制退出仍落盘」
260261
- [ ] 退出生命周期变更保留真实子进程回归:挂起响应头/响应体、DNS 预查询和关闭遥测;检查实际退出及进程仍存活时的连接释放,不以 flush Promise 返回代替验收
261262
- [ ] 错误字段不得额外拼接 token、请求体、prompt 或本地路径
262263

Collapse file

‎packages/bailian-kb-dsh/package.json‎

Copy file name to clipboardExpand all lines: packages/bailian-kb-dsh/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bailian-kb-dsh",
3-
"version": "2.12.0",
3+
"version": "2.12.1",
44
"description": "Bailian knowledge-base tools for DeepSeek Harness: kb_search and kb_chat over the DashScope RAG API, plus the bl CLI management skill.",
55
"keywords": [
66
"alibaba-cloud",
Collapse file

‎packages/bailian-memo-dsh/package.json‎

Copy file name to clipboardExpand all lines: packages/bailian-memo-dsh/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bailian-memo-dsh",
3-
"version": "2.12.0",
3+
"version": "2.12.1",
44
"description": "Bailian personal memory for DeepSeek Harness: automatic recall, silent curation, and user-controlled remember/forget.",
55
"keywords": [
66
"alibaba-cloud",
Collapse file

‎packages/cli/package.json‎

Copy file name to clipboardExpand all lines: packages/cli/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bailian-cli",
3-
"version": "2.12.0",
3+
"version": "2.12.1",
44
"description": "CLI for Aliyun Model Studio (DashScope) AI Platform.",
55
"keywords": [
66
"agent",
Collapse file

‎packages/cli/src/commands.ts‎

Copy file name to clipboardExpand all lines: packages/cli/src/commands.ts
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ import {
212212
finetunePrice,
213213
finetuneParams,
214214
finetuneTrainOptions,
215+
finetunePresetDatasets,
215216
finetuneMetrics,
216217
finetuneCompressTemplates,
217218
finetuneCompressCreate,
@@ -616,6 +617,7 @@ export const commands: Record<string, AnyCommand> = {
616617
"finetune price": finetunePrice,
617618
"finetune params": finetuneParams,
618619
"finetune train-options": finetuneTrainOptions,
620+
"finetune preset-datasets": finetunePresetDatasets,
619621
"finetune metrics": finetuneMetrics,
620622
"finetune compress templates": finetuneCompressTemplates,
621623
"finetune compress create": finetuneCompressCreate,
Collapse file

‎packages/cli/src/main.ts‎

Copy file name to clipboard
+15-13Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createCli } from "bailian-cli-runtime";
1+
import { createCli, runToExit } from "bailian-cli-runtime";
22
import { commandAliases, commands } from "./commands.ts";
33
import { commandPackPolicy } from "./command-pack-policy.ts";
44
import pkg from "../package.json" with { type: "json" };
@@ -12,15 +12,17 @@ const quickStartTasks = [
1212
"介绍一下 Bailian CLI 能帮我完成哪些任务,并根据我的需求推荐使用方式。\n Explain what Bailian CLI can help me accomplish, and recommend how to use it based on my needs.",
1313
] as const;
1414

15-
void createCli(
16-
{ ...commands, ...commandAliases },
17-
{
18-
binName: "bl",
19-
...resolveAliyunIntegration(process.env),
20-
version: pkg.version,
21-
clientName: "bailian-cli",
22-
npmPackage: "bailian-cli",
23-
quickStartTasks,
24-
commandPacks: commandPackPolicy,
25-
},
26-
).run();
15+
void runToExit(
16+
createCli(
17+
{ ...commands, ...commandAliases },
18+
{
19+
binName: "bl",
20+
...resolveAliyunIntegration(process.env),
21+
version: pkg.version,
22+
clientName: "bailian-cli",
23+
npmPackage: "bailian-cli",
24+
quickStartTasks,
25+
commandPacks: commandPackPolicy,
26+
},
27+
),
28+
);
Collapse file

‎packages/commands/package.json‎

Copy file name to clipboardExpand all lines: packages/commands/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bailian-cli-commands",
3-
"version": "2.12.0",
3+
"version": "2.12.1",
44
"description": "Command library for bailian-cli products (knowledge, memory, media, …). See https://www.npmjs.com/package/bailian-cli for usage.",
55
"homepage": "https://bailian.console.aliyun.com/cli",
66
"bugs": {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.