Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/cli/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func buildCommand(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
if cfg.Build.Fast {
buildFast = cfg.Build.Fast
}

imageName := cfg.Image
if buildTag != "" {
Expand Down
6 changes: 6 additions & 0 deletions pkg/cli/predict.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func cmdPredict(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
if cfg.Build.Fast {
buildFast = cfg.Build.Fast
}

if imageName, err = image.BuildBase(cfg, projectDir, buildUseCudaBaseImage, DetermineUseCogBaseImage(cmd), buildProgressOutput); err != nil {
return err
Expand Down Expand Up @@ -117,6 +120,9 @@ func cmdPredict(cmd *cobra.Command, args []string) error {
if gpus == "" && conf.Build.GPU {
gpus = "all"
}
if conf.Build.Fast {
buildFast = conf.Build.Fast
}
}

console.Info("")
Expand Down
3 changes: 3 additions & 0 deletions pkg/cli/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func push(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
if cfg.Build.Fast {
buildFast = cfg.Build.Fast
}

imageName := cfg.Image
if len(args) > 0 {
Expand Down
6 changes: 6 additions & 0 deletions pkg/cli/train.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func cmdTrain(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
if cfg.Build.Fast {
buildFast = cfg.Build.Fast
}

if imageName, err = image.BuildBase(cfg, projectDir, buildUseCudaBaseImage, DetermineUseCogBaseImage(cmd), buildProgressOutput); err != nil {
return err
Expand Down Expand Up @@ -98,6 +101,9 @@ func cmdTrain(cmd *cobra.Command, args []string) error {
if gpus == "" && conf.Build.GPU {
gpus = "all"
}
if conf.Build.Fast {
buildFast = conf.Build.Fast
}
}

console.Info("")
Expand Down
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type Build struct {
PreInstall []string `json:"pre_install,omitempty" yaml:"pre_install"` // Deprecated, but included for backwards compatibility
CUDA string `json:"cuda,omitempty" yaml:"cuda"`
CuDNN string `json:"cudnn,omitempty" yaml:"cudnn"`
Fast bool `json:"fast,omitempty" yaml:"fast"`

pythonRequirementsContent []string
}
Expand Down
Loading