-
Notifications
You must be signed in to change notification settings - Fork 445
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
feat(learning): Integrate GLTorch with GraphScope in Server-Client Mode with K8S Deployment Supports #3624
Conversation
…n_torch dataset and training on a single machine (alibaba#3156) This pr introduces the following changes: 1. A new graphlearn_torch API for session. 2. Add the script to launch the graphlearn_torch server with handle and config. 3. Include an example of graphsage node classification with the ogbn-arxiv dataset in GraphScope on a single machine. alibaba#3157
The dynamic world size feature in server-client mode has been implemented in GLT, and this PR is used to update and use this feature.
…ibaba#3227) For graphlearn_torch_vineyard, the cxx11_abi should be adjusted to the gcc environment. For graphlearn_torch, the cxx11_abi should always be set to false to match PyTorch.
fix lint issues
api_groups=",apps,extensions", # The leading comma is necessary, represents for core api group. | ||
resources="configmaps,deployments,deployments/status,statefulsets,statefulsets/status,endpoints,events,pods,pods/log,pods/exec,pods/status,services,replicasets", # noqa: E501 | ||
api_groups=",apps,extensions,kubeflow.org", # The leading comma is necessary, represents for core api group. | ||
resources="configmaps,deployments,deployments/status,statefulsets,statefulsets/status,endpoints,events,pods,pods/log,pods/exec,pods/status,services,replicasets,pytorchjobs", # noqa: E501 |
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.
Will this work normally in a cluster without kubeflow installed.
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.
seems normal as tested
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.
LGTM, with some minor comments.
except K8SApiException as e: | ||
print( | ||
f"Exception when calling CoreV1Api->delete_namespaced_config_map: {e}" | ||
) |
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.
Use logger.info
for logging.
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.
fixed
except K8SApiException as e: | ||
print( | ||
f"Exception when calling CustomObjectsApi->create_namespaced_custom_object: {e}" | ||
) |
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.
I suggest you reraise
here and don't continue silently.
If creating the PytorchJob
failed, the following watch loop will never return.
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.
fixed
self._graphlearn_instance_processes = {} | ||
|
||
self._graphlearn_torch_services = {} | ||
self._graphlearn_torch_instance_processes = {} | ||
|
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.
Can graphlearn and graphlearn_torch share the same set of port/processes/services to make these part simpler?
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.
We will deprecate graphlearn later, so the separated implementation for now is fine :)
What do these changes do?
As titled.