Skip to content

Commit

Permalink
[Doc] gs_gen_node_embedding task command tutorial for SageMaker (#1089)
Browse files Browse the repository at this point in the history
*Issue #, if available:*

*Description of changes:*


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

---------

Co-authored-by: Jian Zhang (James) <[email protected]>
  • Loading branch information
jalencato and zhjwy9343 authored Nov 14, 2024
1 parent 3a21067 commit 7333fa6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/source/cli/model-training-inference/distributed/sagemaker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,27 @@ Users can use the following commands to check the corresponding outputs:
aws s3 ls s3://<PATH_TO_SAVE_GENERATED_NODE_EMBEDDING>/
aws s3 ls s3://<PATH_TO_SAVE_PREDICTION_RESULTS>/
Launch embedding generation task
``````````````````````````````````
Users can use the following example command to launch a GraphStorm embedding generation job in the ``ogbn-mag`` data without generating predictions.

.. code:: bash
python3 launch/launch_infer.py \
--image-url <AMAZON_ECR_IMAGE_URI> \
--region <REGION> \
--entry-point run/infer_entry.py \
--role <ROLE_ARN> \
--instance-count 3 \
--graph-data-s3 s3://<PATH_TO_DATA>/ogbn_mag_lp_3p \
--yaml-s3 s3://<PATH_TO_TRAINING_CONFIG>/mag_lp.yaml \
--model-artifact-s3 s3://<PATH_TO_SAVE_TRAINED_MODEL>/ \
--raw-node-mappings-s3 s3://<PATH_TO_DATA>/ogbn_mag_lp_3p/raw_id_mappings \
--task-type compute_emb \
--output-emb-s3 s3://<PATH_TO_SAVE_GENERATED_NODE_EMBEDDING>/ \
--graph-name ogbn-mag \
--restore-model-layers embed,gnn
Launch graph partitioning task
```````````````````````````````
If your data are in the `DGL chunked
Expand Down

0 comments on commit 7333fa6

Please sign in to comment.