@hmharness/cli 0.18.11 → 0.18.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +18 -7
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1079,7 +1079,11 @@ flags:
|
|
|
1079
1079
|
}
|
|
1080
1080
|
if (submit) {
|
|
1081
1081
|
const localJobs = await CF.readLocalFineTuneJobs(home);
|
|
1082
|
-
|
|
1082
|
+
// cooldown counts real SUBMISSIONS only - a 'staged' row means the last
|
|
1083
|
+
// attempt FAILED before creating a job (files parked, nothing trained),
|
|
1084
|
+
// so it must not block the retry that finally lands (2026-09-27)
|
|
1085
|
+
const lastSubmit = [...localJobs].reverse().find((j) => String(j.status) !== 'staged');
|
|
1086
|
+
const lastAt = lastSubmit ? new Date(lastSubmit.time).getTime() : 0;
|
|
1083
1087
|
const dueMs = cooldownDays * 86400000;
|
|
1084
1088
|
if (Date.now() - lastAt < dueMs) {
|
|
1085
1089
|
stdout.write(DIM(`冷却中(上次提交 ${cooldownDays} 天内)——本次跳过\n`));
|
|
@@ -1182,15 +1186,22 @@ flags:
|
|
|
1182
1186
|
catch (err) {
|
|
1183
1187
|
const msg = String(err);
|
|
1184
1188
|
// live finding 2026-09-26: some accounts pass model validation for
|
|
1185
|
-
// glm-4-flash/glm-4.5-air but the job-creation path 500s server-side
|
|
1186
|
-
//
|
|
1187
|
-
//
|
|
1188
|
-
//
|
|
1189
|
+
// glm-4-flash/glm-4.5-air but the job-creation path 500s server-side.
|
|
1190
|
+
// 2026-09-27 verdict: this persists after topping up - the API job
|
|
1191
|
+
// channel is effectively unusable; the web console is the only working
|
|
1192
|
+
// path (and console datasets do NOT see API-uploaded files - two
|
|
1193
|
+
// separate systems). The uploaded files stay valid, so record
|
|
1194
|
+
// them: a retry if the API channel ever opens must NOT re-upload.
|
|
1189
1195
|
await CF.recordFineTuneJob(home, { id: 'staged-' + stamp, status: 'staged', model }, { trainFile: upTrain.id, evalFile: upEval?.id, pairs: rows.length, error: msg.slice(0, 200) });
|
|
1190
1196
|
stdout.write(RED('任务创建失败:' + msg.slice(0, 160) + '\n'));
|
|
1191
1197
|
if (/参数校验解析异常/.test(msg)) {
|
|
1192
|
-
|
|
1193
|
-
|
|
1198
|
+
// 2026-09-27 实测定案:充值后该 500 依旧——智谱 API 建任务通道对
|
|
1199
|
+
// 微调实际不可用,且 API 上传的文件与控制台数据集是两套互不相通
|
|
1200
|
+
// 的体系。控制台网页(console/data-mgt + modelft/finetuning/create)
|
|
1201
|
+
// 是已验证可行的唯一通道;DPO 全参单价 0.04 元/千 tokens。
|
|
1202
|
+
stdout.write(YELLOW('实测结论(2026-09-27):该 API 通道建任务持续 500,充值无法解决;') + '\n');
|
|
1203
|
+
stdout.write(YELLOW('控制台网页是唯一可行通道,且 API 上传的文件不会出现在控制台数据集列表里(两套体系)。') + '\n');
|
|
1204
|
+
stdout.write(DIM('解决:到 bigmodel.cn 控制台「数据管理/微调数据」上传 JSONL 创建数据集,再到「模型微调」创建任务(DPO 全参 0.04 元/千 tokens)。命令行侧数据已备好,可直接联系维护者代操作。') + '\n');
|
|
1194
1205
|
}
|
|
1195
1206
|
else {
|
|
1196
1207
|
stdout.write(DIM('上传的文件保留在云端可复用:' + upTrain.id + '\n'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/cli",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.13",
|
|
4
4
|
"description": "hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|