|
|
@@ -424,7 +424,7 @@ export function Training() {
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>模型类型</label>
|
|
|
- <Select options={MODEL_TYPES} value={modelType} onChange={setModelType} />
|
|
|
+ <Select options={MODEL_TYPES} value={modelType} onChange={v => setModelType(String(v))} />
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>训练数据集</label>
|
|
|
@@ -432,15 +432,15 @@ export function Training() {
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>训练方法</label>
|
|
|
- <Select options={TASK_TYPES} value={taskType} onChange={setTaskType} />
|
|
|
+ <Select options={TASK_TYPES} value={taskType} onChange={v => setTaskType(String(v))} />
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>数据模板</label>
|
|
|
- <Select options={DATASET_TEMPLATES} value={template} onChange={setTemplate} />
|
|
|
+ <Select options={DATASET_TEMPLATES} value={template} onChange={v => setTemplate(String(v))} />
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>PEFT 方法</label>
|
|
|
- <Select options={PEFT_METHODS} value={peftMethod} onChange={setPeftMethod} />
|
|
|
+ <Select options={PEFT_METHODS} value={peftMethod} onChange={v => setPeftMethod(String(v))} />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -461,7 +461,7 @@ export function Training() {
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>学习率</label>
|
|
|
- <Select options={LR_PRESETS} value={lr} onChange={setLr} />
|
|
|
+ <Select options={LR_PRESETS} value={lr} onChange={v => setLr(String(v))} />
|
|
|
</div>
|
|
|
<div>
|
|
|
<label style={{ display: 'block', fontSize: 12, color: '#666', marginBottom: 4 }}>最大序列长度</label>
|