bailian-cli-core 2.8.3 → 2.8.4

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/index.d.mts CHANGED
@@ -3926,6 +3926,59 @@ export interface GetFineTuneResponse {
3926
3926
  output?: FineTuneJob;
3927
3927
  data?: FineTuneJob;
3928
3928
  }
3929
+ /**
3930
+ * GET /api/v1/fine-tunes/fine-tunes-params 的 `output.hyper_params[]` 元素。
3931
+ * `defaultValue` 是服务端保留的兼容字段名(与 recommend_value 同值),不改名为
3932
+ * default_value。`visibility` / `required` 等其他可选字段不在此依赖,缺失不算失败。
3933
+ */
3934
+ export interface FineTuneParamHyperParam {
3935
+ name?: string;
3936
+ recommend_value?: string;
3937
+ defaultValue?: string;
3938
+ is_advanced_parameter?: boolean;
3939
+ display_name?: string;
3940
+ description?: string;
3941
+ type?: string;
3942
+ data_range?: string[];
3943
+ left_range?: string;
3944
+ right_range?: string;
3945
+ step?: number;
3946
+ support_values?: string[];
3947
+ editable?: boolean;
3948
+ /** `hyper` / `resource` */
3949
+ group?: string;
3950
+ [k: string]: unknown;
3951
+ }
3952
+ /** GET /api/v1/fine-tunes/fine-tunes-params response. */
3953
+ export interface GetFineTuneParamsResponse {
3954
+ request_id?: string;
3955
+ output?: {
3956
+ hyper_params?: FineTuneParamHyperParam[];
3957
+ /** Whether the training type supports resuming from a checkpoint. */
3958
+ resume_from_checkpoint?: boolean;
3959
+ [k: string]: unknown;
3960
+ };
3961
+ [k: string]: unknown;
3962
+ }
3963
+ /**
3964
+ * GET /api/v1/fine-tunes/{job_id}/basic_metrics 的 `output.metrics[]` 元素。
3965
+ * 每条指标记录的 JSON 原样返回(step + 动态指标字段),内部 key 不做改名。
3966
+ */
3967
+ export interface BasicMetricRecord {
3968
+ [key: string]: unknown;
3969
+ }
3970
+ /** GET /api/v1/fine-tunes/{job_id}/basic_metrics response. 空指标列表是正常结果。 */
3971
+ export interface ListBasicMetricsResponse {
3972
+ request_id?: string;
3973
+ output?: {
3974
+ page_no?: number;
3975
+ page_size?: number;
3976
+ total?: number;
3977
+ metrics?: BasicMetricRecord[];
3978
+ [k: string]: unknown;
3979
+ };
3980
+ [k: string]: unknown;
3981
+ }
3929
3982
  /** A tunable hyper-parameter declared by a compression template. */
3930
3983
  export interface CompressHyperParameter {
3931
3984
  name?: string;
@@ -4073,6 +4126,45 @@ export interface GetFineTuneLogsParams {
4073
4126
  }
4074
4127
  /** GET /api/v1/fine-tunes/{job_id}/logs */
4075
4128
  export declare function getFineTuneLogs(client: Client, jobId: string, params?: GetFineTuneLogsParams): Promise<GetFineTuneLogsResponse>;
4129
+ export interface GetFineTuneParamsParams {
4130
+ /** Base model ID, e.g. qwen3-14b. */
4131
+ inputModel: string;
4132
+ /** Server training_type: sft | efficient_sft | dpo_full | dpo_lora | cpt. */
4133
+ trainingType: string;
4134
+ /** MTU spec code; forwarded when present (resource params queries). */
4135
+ mtuSpecCode?: string;
4136
+ /** `hyper` / `resource`; omit to return all groups. */
4137
+ paramType?: string;
4138
+ /**
4139
+ * Training-option context, sent as a single `hyper_parameters` query
4140
+ * parameter holding the JSON-serialized object (e.g. modality /
4141
+ * reasoning_mode). Omit when the model has no dynamic train options.
4142
+ */
4143
+ trainOptions?: Record<string, string>;
4144
+ /** Explicit locale for server-side display text; omit for the server default. */
4145
+ lang?: string;
4146
+ /** Sent as X-DashScope-WorkSpace; use the job's owning workspace. */
4147
+ workspaceId?: string;
4148
+ signal?: AbortSignal;
4149
+ }
4150
+ /**
4151
+ * GET /api/v1/fine-tunes/fine-tunes-params — training hyper-parameter config.
4152
+ * Empty/absent optional fields in each hyper_params entry are not failures.
4153
+ */
4154
+ export declare function getFineTuneParams(client: Client, params: GetFineTuneParamsParams): Promise<GetFineTuneParamsResponse>;
4155
+ export interface ListBasicMetricsParams {
4156
+ pageNo?: number;
4157
+ pageSize?: number;
4158
+ /** Sent as X-DashScope-WorkSpace; use the job's owning workspace. */
4159
+ workspaceId?: string;
4160
+ signal?: AbortSignal;
4161
+ }
4162
+ /**
4163
+ * GET /api/v1/fine-tunes/{job_id}/basic_metrics — training metrics.
4164
+ * An empty `output.metrics` list is a normal result. No server-side metric
4165
+ * type filter: the full result is returned and callers pick metric keys.
4166
+ */
4167
+ export declare function listBasicMetrics(client: Client, jobId: string, params?: ListBasicMetricsParams): Promise<ListBasicMetricsResponse>;
4076
4168
  /** GET /api/v1/fine-tunes/{job_id}/checkpoints */
4077
4169
  export declare function listCheckpoints(client: Client, jobId: string, signal?: AbortSignal): Promise<ListCheckpointsResponse>;
4078
4170
  /**