Skip to content

Commit c40d953

Browse files
committed
Add warning for cog_runtime flag
1 parent 94f2a7d commit c40d953

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkg/dockerfile/standard_generator.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ func (g *StandardGenerator) installCog() (string, error) {
440440
}
441441

442442
if g.Config.Build.CogRuntime {
443+
// We need fast-* compliant Python version to reconstruct coglet venv PYTHONPATH
443444
if !CheckMajorMinorOnly(g.Config.Build.PythonVersion) {
444445
return "", fmt.Errorf("Python version must be <major>.<minor>")
445446
}
@@ -455,8 +456,11 @@ func (g *StandardGenerator) installCog() (string, error) {
455456
return strings.Join(cmds, "\n"), nil
456457
}
457458

458-
// FIXME: add doc URL & enable this before new release
459-
// console.Warnf("A new Cog runtime implementation is avaible, set build.cog_runtime = true in cog.yaml to try it out.")
459+
// cog-runtime does not support training yet
460+
if g.Config.Train == "" {
461+
console.Warnf("Major Cog runtime upgrade available. Opt in now by setting build.cog_runtime: true in cog.yaml.")
462+
console.Warnf("More: https://replicate.com/changelog/2025-07-21-cog-runtime")
463+
}
460464
data, filename, err := ReadWheelFile()
461465
if err != nil {
462466
return "", err

0 commit comments

Comments
 (0)