You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/01/05 19:07:18 UTC
(beam) branch master updated: Install beam from pypi instead of github in mltransform notebooks (#29934)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new a6948ad71e3 Install beam from pypi instead of github in mltransform notebooks (#29934)
a6948ad71e3 is described below
commit a6948ad71e341aa966fd5ad2b31ceaa987c0d096
Author: Anand Inguva <34...@users.noreply.github.com>
AuthorDate: Fri Jan 5 14:07:11 2024 -0500
Install beam from pypi instead of github in mltransform notebooks (#29934)
* Update compute_and_apply_vocab.ipynb
* Update compute_and_apply_vocab.ipynb
* Update huggingface_text_embeddings.ipynb
* Update huggingface_text_embeddings.ipynb
* Update scale_data.ipynb
* Update vertex_ai_text_embeddings.ipynb
---
.../beam-ml/data_preprocessing/compute_and_apply_vocab.ipynb | 4 +---
.../beam-ml/data_preprocessing/huggingface_text_embeddings.ipynb | 8 +++-----
examples/notebooks/beam-ml/data_preprocessing/scale_data.ipynb | 4 +---
.../beam-ml/data_preprocessing/vertex_ai_text_embeddings.ipynb | 4 +---
4 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/examples/notebooks/beam-ml/data_preprocessing/compute_and_apply_vocab.ipynb b/examples/notebooks/beam-ml/data_preprocessing/compute_and_apply_vocab.ipynb
index 3e25a1e23d7..2094a2af11a 100644
--- a/examples/notebooks/beam-ml/data_preprocessing/compute_and_apply_vocab.ipynb
+++ b/examples/notebooks/beam-ml/data_preprocessing/compute_and_apply_vocab.ipynb
@@ -98,9 +98,7 @@
},
"outputs": [],
"source": [
- "! git clone https://github.com/apache/beam.git\n",
- "! cd beam/sdks/python\n",
- "! pip install beam/sdks/python\n",
+ "! pip install apache_beam>=2.53.0 --quiet\n",
"! pip install tensorflow-transform --quiet"
]
},
diff --git a/examples/notebooks/beam-ml/data_preprocessing/huggingface_text_embeddings.ipynb b/examples/notebooks/beam-ml/data_preprocessing/huggingface_text_embeddings.ipynb
index cb996da659f..2eb76497151 100644
--- a/examples/notebooks/beam-ml/data_preprocessing/huggingface_text_embeddings.ipynb
+++ b/examples/notebooks/beam-ml/data_preprocessing/huggingface_text_embeddings.ipynb
@@ -100,10 +100,8 @@
{
"cell_type": "code",
"source": [
- "! git clone https://github.com/apache/beam.git\n",
- "! cd beam/sdks/python\n",
- "! pip install beam/sdks/python\n",
- "! pip install sentence-transformers"
+ "! pip install apache_beam>=2.53.0 --quiet\n",
+ "! pip install sentence-transformers --quiet"
],
"metadata": {
"id": "shzCUrZI1XhF"
@@ -401,4 +399,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/examples/notebooks/beam-ml/data_preprocessing/scale_data.ipynb b/examples/notebooks/beam-ml/data_preprocessing/scale_data.ipynb
index 4f99a7a1dcb..029c3a27866 100644
--- a/examples/notebooks/beam-ml/data_preprocessing/scale_data.ipynb
+++ b/examples/notebooks/beam-ml/data_preprocessing/scale_data.ipynb
@@ -106,9 +106,7 @@
{
"cell_type": "code",
"source": [
- "! git clone https://github.com/apache/beam.git\n",
- "! cd beam/sdks/python\n",
- "! pip install beam/sdks/python\n",
+ "! pip install apache_beam>=2.53.0 --quiet\n",
"! pip install tensorflow-transform --quiet"
],
"metadata": {
diff --git a/examples/notebooks/beam-ml/data_preprocessing/vertex_ai_text_embeddings.ipynb b/examples/notebooks/beam-ml/data_preprocessing/vertex_ai_text_embeddings.ipynb
index bf38c276987..352e1124d82 100644
--- a/examples/notebooks/beam-ml/data_preprocessing/vertex_ai_text_embeddings.ipynb
+++ b/examples/notebooks/beam-ml/data_preprocessing/vertex_ai_text_embeddings.ipynb
@@ -129,9 +129,7 @@
{
"cell_type": "code",
"source": [
- "! git clone https://github.com/apache/beam.git\n",
- "! cd beam/sdks/python\n",
- "! pip install beam/sdks/python[gcp]"
+ "! pip install apache_beam[gcp]>=2.53.0 --quiet"
],
"metadata": {
"id": "BTxob7d5DLBM"