| @@ -4,6 +4,7 @@ import ( | |||||
| "bufio" | "bufio" | ||||
| "encoding/json" | "encoding/json" | ||||
| "errors" | "errors" | ||||
| "fmt" | |||||
| "io" | "io" | ||||
| "io/ioutil" | "io/ioutil" | ||||
| "net/http" | "net/http" | ||||
| @@ -841,19 +842,20 @@ func createForNPU(ctx *context.Context, jobName string) { | |||||
| Params := ctx.Query("run_para_list") | Params := ctx.Query("run_para_list") | ||||
| specId := ctx.QueryInt64("spec_id") | specId := ctx.QueryInt64("spec_id") | ||||
| engineID := ctx.QueryInt("EngineID") | |||||
| poolID := ctx.Query("PoolID") | |||||
| engineID := ctx.QueryInt("engine_id") | |||||
| log.Info("engine_id=" + fmt.Sprint(engineID)) | |||||
| poolID := ctx.Query("pool_id") | |||||
| repo := ctx.Repo.Repository | repo := ctx.Repo.Repository | ||||
| trainUrl := ctx.Query("train_url") | trainUrl := ctx.Query("train_url") | ||||
| modelName := ctx.Query("ModelName") | |||||
| modelVersion := ctx.Query("ModelVersion") | |||||
| modelName := ctx.Query("model_name") | |||||
| modelVersion := ctx.Query("model_version") | |||||
| ckptName := ctx.Query("ckpt_name") | ckptName := ctx.Query("ckpt_name") | ||||
| ckptUrl := "/" + trainUrl + ckptName | ckptUrl := "/" + trainUrl + ckptName | ||||
| log.Info("ckpt url:" + ckptUrl) | log.Info("ckpt url:" + ckptUrl) | ||||
| FlavorName := ctx.Query("FlavorName") | |||||
| EngineName := ctx.Query("EngineName") | |||||
| FlavorName := ctx.Query("flaver_names") | |||||
| EngineName := ctx.Query("engine_names") | |||||
| isLatestVersion := modelarts.IsLatestVersion | isLatestVersion := modelarts.IsLatestVersion | ||||
| VersionCount := modelarts.VersionCountOne | VersionCount := modelarts.VersionCountOne | ||||