|
|
@@ -978,6 +978,9 @@ func modelSafetyNewDataPrepare(ctx *context.Context) error { |
|
|
ctx.Data["CombatDataSetName"] = setting.ModelSafetyTest.GPUCombatDataSetName |
|
|
ctx.Data["CombatDataSetName"] = setting.ModelSafetyTest.GPUCombatDataSetName |
|
|
ctx.Data["CombatDataSetUUID"] = setting.ModelSafetyTest.GPUCombatDataSetUUID |
|
|
ctx.Data["CombatDataSetUUID"] = setting.ModelSafetyTest.GPUCombatDataSetUUID |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
ctx.Data["engine_id"] = ctx.QueryInt("engine_id") |
|
|
|
|
|
ctx.Data["pool_id"] = ctx.Query("pool_id") |
|
|
|
|
|
|
|
|
ctx.Data["type"] = models.TypeCloudBrainTwo |
|
|
ctx.Data["type"] = models.TypeCloudBrainTwo |
|
|
ctx.Data["compute_resource"] = models.NPUResource |
|
|
ctx.Data["compute_resource"] = models.NPUResource |
|
|
ctx.Data["datasetType"] = models.TypeCloudBrainTwo |
|
|
ctx.Data["datasetType"] = models.TypeCloudBrainTwo |
|
|
|