@@ -13,24 +13,36 @@ const PRICE_FLAGS = {
1313 baseModel : {
1414 type : "string" ,
1515 valueHint : "<model>" ,
16- description : "Base model to fine-tune (e.g. qwen3-8b; not the output model name)" ,
16+ description : {
17+ "en-US" : "Base model to fine-tune (e.g. qwen3-8b; not the output model name)" ,
18+ "zh-CN" : "待微调的基座模型(例如 qwen3-8b;不是输出模型名称)" ,
19+ } ,
1720 required : true ,
1821 } ,
1922 datasets : {
2023 type : "string" ,
2124 valueHint : "<ids>" ,
22- description : "Training dataset file IDs, comma-separated (required)" ,
25+ description : {
26+ "en-US" : "Training dataset file IDs, comma-separated (required)" ,
27+ "zh-CN" : "训练数据集文件 ID,多个以逗号分隔(必填)" ,
28+ } ,
2329 required : true ,
2430 } ,
2531 trainingType : {
2632 type : "string" ,
2733 valueHint : "<type>" ,
28- description : "Training type: sft | dpo | cpt (default: sft)" ,
34+ description : {
35+ "en-US" : "Training type: sft | dpo | cpt (default: sft)" ,
36+ "zh-CN" : "训练类型:sft | dpo | cpt(默认:sft)" ,
37+ } ,
2938 } ,
3039 nEpochs : {
3140 type : "number" ,
3241 valueHint : "<n>" ,
33- description : "Number of training epochs (default: 3)" ,
42+ description : {
43+ "en-US" : "Number of training epochs (default: 3)" ,
44+ "zh-CN" : "训练轮数(默认:3)" ,
45+ } ,
3446 } ,
3547} satisfies FlagsDef ;
3648
@@ -44,7 +56,10 @@ const ESTIMATE_MAX_LENGTH = 8192;
4456const DEFAULT_N_EPOCHS = 3 ;
4557
4658export default defineCommand ( {
47- description : "Estimate the training cost for a fine-tune job (token billing)" ,
59+ description : {
60+ "en-US" : "Estimate the training cost for a fine-tune job (token billing)" ,
61+ "zh-CN" : "估算微调任务的训练费用(按 Token 计费)" ,
62+ } ,
4863 auth : "console" ,
4964 usageArgs : "--base-model <model> --datasets <ids> [--training-type <type>] [--n-epochs <n>]" ,
5065 flags : PRICE_FLAGS ,
@@ -54,9 +69,21 @@ export default defineCommand({
5469 "--base-model qwen3-8b --datasets file-ft-xxx --training-type cpt" ,
5570 ] ,
5671 notes : [
57- "Estimate only — the server computes token usage from the datasets; final cost is subject to the bill." ,
58- "Covers token billing for sft / dpo / cpt. Training-unit (MTU) billing is not supported by this command." ,
59- "Hyper-parameters other than --n-epochs are fixed at representative defaults for estimation." ,
72+ {
73+ "en-US" :
74+ "Estimate only — the server computes token usage from the datasets; final cost is subject to the bill." ,
75+ "zh-CN" : "该结果仅为估算值——服务端根据数据集计算 Token 用量,最终费用以账单为准。" ,
76+ } ,
77+ {
78+ "en-US" :
79+ "Covers token billing for sft / dpo / cpt. Training-unit (MTU) billing is not supported by this command." ,
80+ "zh-CN" : "支持估算 sft / dpo / cpt 的 Token 计费;此命令不支持训练单元(MTU)计费估算。" ,
81+ } ,
82+ {
83+ "en-US" :
84+ "Hyper-parameters other than --n-epochs are fixed at representative defaults for estimation." ,
85+ "zh-CN" : "除 --n-epochs 外,其他超参数会使用具有代表性的固定默认值进行估算。" ,
86+ } ,
6087 ] ,
6188 async run ( ctx ) {
6289 const { settings, flags } = ctx ;
0 commit comments