@@ -51,6 +51,7 @@ type Env struct {
51
51
CogTrainCodeStrip string `json:"COG_TRAIN_CODE_STRIP"`
52
52
CogPyEnvPath string `json:"COG_PYENV_PATH"`
53
53
CogEagerImports string `json:"COG_EAGER_IMPORTS"`
54
+ R8CogVersion string `json:"R8_COG_VERSION"`
54
55
R8CudaVersion string `json:"R8_CUDA_VERSION"`
55
56
R8CudnnVersion string `json:"R8_CUDNN_VERSION"`
56
57
R8PythonVersion string `json:"R8_PYTHON_VERSION"`
@@ -179,6 +180,7 @@ func (c *Client) versionFromManifest(image string, weights []File, files []File)
179
180
cogGPU = 1
180
181
}
181
182
183
+ cogVersion := ""
182
184
torchVersion := ""
183
185
cudaVersion := ""
184
186
cudnnVersion := ""
@@ -190,6 +192,8 @@ func (c *Client) versionFromManifest(image string, weights []File, files []File)
190
192
continue
191
193
}
192
194
switch envName {
195
+ case command .R8CogVersionEnvVarName :
196
+ cogVersion = envValue
193
197
case command .R8TorchVersionEnvVarName :
194
198
torchVersion = envValue
195
199
case command .R8CudaVersionEnvVarName :
@@ -216,6 +220,7 @@ func (c *Client) versionFromManifest(image string, weights []File, files []File)
216
220
CogTrainCodeStrip : trainCode ,
217
221
CogPyEnvPath : pythonPath ,
218
222
CogEagerImports : eagerImports ,
223
+ R8CogVersion : cogVersion ,
219
224
R8CudaVersion : cudaVersion ,
220
225
R8CudnnVersion : cudnnVersion ,
221
226
R8PythonVersion : pythonVersion ,
0 commit comments