File tree Expand file tree Collapse file tree 4 files changed +23
-19
lines changed
Expand file tree Collapse file tree 4 files changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ RUN uv pip install \
4444RUN uv pip install --system --force-reinstall "pynvjitlink-cu12==0.5.2"
4545
4646# newer daal4py requires tbb>=2022, but libpysal is downgrading it for some reason
47- RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2"
47+ # b/315753846: Unpin translate package.
48+ RUN uv pip install --system "tbb>=2022" "libpysal==4.9.2" "google-cloud-translate==3.12.1"
4849
4950# b/385145217 Latest Colab lacks mkl numpy, install it.
5051RUN uv pip install --system --force-reinstall -i https://software.repos.intel.com/python/pypi "numpy==1.26.4"
@@ -58,7 +59,7 @@ ADD clean-layer.sh /tmp/clean-layer.sh
5859ADD patches/nbconvert-extensions.tpl /opt/kaggle/nbconvert-extensions.tpl
5960ADD patches/template_conf.json /opt/kaggle/conf.json
6061
61- # /opt/conda/lib/python3.11 /site-packages
62+ # /opt/conda/lib/python3.12 /site-packages
6263ARG PACKAGE_PATH=/usr/local/lib/python3.12/dist-packages
6364
6465# Install GPU-specific non-pip packages.
@@ -177,7 +178,7 @@ ADD patches/kaggle_gcp.py \
177178
178179# Figure out why this is in a different place?
179180# Found by doing a export PYTHONVERBOSE=1 and then running python and checking for where it looked for it.
180- ADD patches/sitecustomize.py /usr/lib/python3.11 /sitecustomize.py
181+ ADD patches/sitecustomize.py /usr/lib/python3.12 /sitecustomize.py
181182
182183ARG GIT_COMMIT=unknown \
183184 BUILD_DATE=unknown
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ jupyterlab-lsp
7171kaggle>=1.7.4.2
7272kaggle-environments
7373keras-cv
74- keras-nlp
74+ keras-hub
7575keras-tuner
7676kornia
7777langid
@@ -141,6 +141,9 @@ torchinfo
141141torchmetrics
142142torchtune
143143transformers>=4.51.0
144+ tensorflow-cloud
145+ tensorflow-io
146+ tensorflow-text
144147triton
145148tsfresh
146149vtk
Original file line number Diff line number Diff line change 11import unittest
22
3- import keras_nlp
3+ import keras_hub
44import keras
55import numpy as np
66
99class TestKerasNLP (unittest .TestCase ):
1010 def test_fit (self ):
1111 with create_test_kagglehub_server ():
12- classifier = keras_nlp .models .BertClassifier .from_preset (
12+ classifier = keras_hub .models .BertClassifier .from_preset (
1313 'bert_tiny_en_uncased' ,
1414 load_weights = False , # load randomly initialized model from preset architecture with weights
1515 num_classes = 2 ,
Original file line number Diff line number Diff line change 1- import unittest
1+ # import unittest
22
3- import numpy as np
4- import pandas as pd
5- import tensorflow_decision_forests as tfdf
3+ # import numpy as np
4+ # import pandas as pd
5+ # import tensorflow_decision_forests as tfdf
66
7- class TestTensorflowDecisionForest (unittest .TestCase ):
8- def test_fit (self ):
9- train_df = pd .read_csv ("/input/tests/data/train.csv" )
7+ # class TestTensorflowDecisionForest(unittest.TestCase):
8+ # def test_fit(self):
9+ # train_df = pd.read_csv("/input/tests/data/train.csv")
1010
11- # Convert the dataset into a TensorFlow dataset.
12- train_ds = tfdf .keras .pd_dataframe_to_tf_dataset (train_df , label = "label" )
11+ # # Convert the dataset into a TensorFlow dataset.
12+ # train_ds = tfdf.keras.pd_dataframe_to_tf_dataset(train_df, label="label")
1313
14- # Train the model
15- model = tfdf .keras .RandomForestModel (num_trees = 1 )
16- model .fit (train_ds )
14+ # # Train the model
15+ # model = tfdf.keras.RandomForestModel(num_trees=1)
16+ # model.fit(train_ds)
1717
18- self .assertEqual (1 , model .count_params ())
18+ # self.assertEqual(1, model.count_params())
You can’t perform that action at this time.
0 commit comments