-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor doc_id with its own dpk_ module name #860
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
3c9b999
refactored code as its own module
touma-I 49a22ae
added __init__
touma-I 24b6d9d
merge with latest from dev
touma-I 808521a
Fix typo
touma-I b8f3b6f
remove spark unit test for now
touma-I 3baad3e
Show example for runnign ray runtime
touma-I 37881ef
fixing issues with spark
touma-I 9c869ee
remove BASE_IMAGE arg from dockerfile.spark
touma-I 6fa0c04
added login to quay.io
touma-I bbe9a02
debug registry credential
touma-I b77aaa3
use dpk secrets
touma-I 2c52fd5
testing registry user
touma-I 5ffadb4
testing registry user
touma-I 8b234a4
testing environment secrets
touma-I 878fa42
testing environment secrets
touma-I 5632c06
testing environment secrets
touma-I 6da893f
testing environment secrets
touma-I d426439
testing environment secrets
touma-I e8bb04a
Delete .github/workflows/test-universal-doc_id.yml
touma-I 3647ebc
restore workflow file
touma-I adaf78f
clear testing of docker login
touma-I 0c38a4c
fix Makefile failing targets
touma-I fd0b261
merged with dev
touma-I 87eecf0
README changes
shahrokhDaijavad 3b2420b
fix notebook
touma-I 30912d1
More changes to README
shahrokhDaijavad 0cbe63f
fix notebook
touma-I cabd577
fix notebook
touma-I 4750dd7
added ray notebook
touma-I 2eb47bd
Added the link to the Ray notebook in README
shahrokhDaijavad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The target $ make run-cli-ray-sample
. . .
python3.11 -m dpk_doc_id.ray.transform \
--run_locally True --data_local_config "{ 'input_folder' : '../test-data/input', 'output_folder' : '../output'}" \
--doc_id_int True
17:42:02 INFO - Doc id parameters are : {'doc_column': 'contents', 'hash_column': None, 'int_column': 'True', 'start_id': 0}
17:42:02 INFO - pipeline id pipeline_id
17:42:02 INFO - code location None
17:42:02 INFO - number of workers 1 worker options {'num_cpus': 0.8, 'max_restarts': -1}
17:42:02 INFO - actor creation delay 0
17:42:02 INFO - job details {'job category': 'preprocessing', 'job name': 'doc_id', 'job type': 'ray', 'job id': 'job_id'}
17:42:02 INFO - data factory data_ is using local data access: input_folder - ../test-data/input output_folder - ../output
17:42:02 INFO - data factory data_ max_files -1, n_sample -1
17:42:02 INFO - data factory data_ Not using data sets, checkpointing False, max files -1, random samples -1, files to use ['.parquet'], files to checkpoint ['.parquet']
17:42:02 INFO - Running locally
2024-12-06 17:42:05,111 INFO worker.py:1777 -- Started a local Ray instance. View the dashboard at http://127.0.0.1:8265
(orchestrate pid=165088) 17:42:07 INFO - orchestrator started at 2024-12-06 17:42:07
(orchestrate pid=165088) 17:42:07 ERROR - No input files to process - exiting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,30 @@ | ||
REPOROOT=../../.. | ||
# Use make help, to see the available rules | ||
include $(REPOROOT)/.make.defaults | ||
|
||
setup:: | ||
@# Help: Recursively make $@ all subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
clean:: | ||
@# Help: Recursively make $@ all subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
build:: | ||
@# Help: Recursively make $@ in subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
venv:: | ||
@# Help: Recursively make $@ in subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
image:: | ||
@# Help: Recursively make $@ in all subdirs | ||
@$(MAKE) RULE=$@ .recurse | ||
|
||
publish:: | ||
@# Help: Recursively make $@ in all subdirs | ||
@$(MAKE) RULE=$@ .recurse | ||
|
||
test-image:: | ||
@# Help: Recursively make $@ in all subdirs | ||
@$(MAKE) RULE=$@ .recurse | ||
|
||
test:: | ||
@# Help: Recursively make $@ in all subdirs | ||
@$(MAKE) RULE=$@ .recurse | ||
|
||
test-src:: | ||
@# Help: Recursively make $@ in all subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
set-versions:: | ||
@# Help: Recursively $@ in all subdirs | ||
@$(MAKE) RULE=$@ .recurse | ||
|
||
kind-load-image:: | ||
@# Help: Recursively make $@ in all subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
docker-load-image:: | ||
@# Help: Recursively make $@ in all subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
docker-save-image:: | ||
@# Help: Recursively make $@ in all subdirs | ||
$(MAKE) RULE=$@ .recurse | ||
|
||
.PHONY: workflow-venv | ||
workflow-venv: | ||
if [ -e kfp_ray ]; then \ | ||
$(MAKE) -C kfp_ray workflow-venv; \ | ||
fi | ||
|
||
.PHONY: workflow-test | ||
workflow-test: | ||
if [ -e kfp_ray ]; then \ | ||
$(MAKE) -C kfp_ray workflow-test; \ | ||
fi | ||
|
||
.PHONY: workflow-upload | ||
workflow-upload: | ||
if [ -e kfp_ray ]; then \ | ||
$(MAKE) -C kfp_ray workflow-upload; \ | ||
fi | ||
|
||
.PHONY: workflow-build | ||
workflow-build: | ||
if [ -e kfp_ray ]; then \ | ||
$(MAKE) -C kfp_ray workflow-build; \ | ||
fi | ||
|
||
include $(REPOROOT)/transforms/.make.cicd.targets | ||
|
||
# | ||
# This is intended to be included across the Makefiles provided within | ||
# a given transform's directory tree, so must use compatible syntax. | ||
# | ||
################################################################################ | ||
# This defines the name of the transform and is used to match against | ||
# expected files and is used to define the transform's image name. | ||
TRANSFORM_NAME=$(shell basename `pwd`) | ||
|
||
################################################################################ | ||
|
||
|
||
|
||
run-cli-spark-sample: | ||
make venv | ||
source venv/bin/activate && \ | ||
$(PYTHON) -m dpk_$(TRANSFORM_NAME).spark.transform \ | ||
--data_local_config "{ 'input_folder' : 'test-data/input', 'output_folder' : 'output'}" \ | ||
--doc_id_int True | ||
|
||
run-cli-ray-sample: | ||
make venv | ||
source venv/bin/activate && \ | ||
$(PYTHON) -m dpk_$(TRANSFORM_NAME).ray.transform \ | ||
--run_locally True --data_local_config "{ 'input_folder' : 'test-data/input', 'output_folder' : 'output'}" \ | ||
--doc_id_int True |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The target
run-cli-spark-sample
don't work:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cmadam . Is this something that you can help fix? If not, don't worry, I will tackle it in a next iteration.