-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ef6752
commit f168547
Showing
292 changed files
with
7,242 additions
and
1,716 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
131 changes: 131 additions & 0 deletions
131
_downloads/819e10305ddd6839cd7da05935b17060/mass-inference.txt
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
Binary file renamed
BIN
+17.7 KB
...ebfda153643d4b11dc71a09f6161ce695c67c.png → ...26aa505675d316d1ade29791c024dcc3bfd3e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.2 KB
_images/1bd3f6f137572394f45b2bea46d8a5d05c74e922aca09434f2a962c660c36a98.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.3 KB
_images/20119ebabd48f33476c0d005b06b2a0dd7a215cc88c5f66182ccd469bcff0e8a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17 KB
_images/2f5258505cbaf133d92a049e74a43d8084112179d0ac78623e14191fa46c4bff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.9 KB
_images/33e748c54c65bf2c62d880db6f712a27cf22f1a234bc72238947a7f83abc602c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.4 KB
_images/41af445d4daca68a749345776ce0892ee5bce34b89af1d4aef5a7470ec70845e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.7 KB
_images/4c0a3eadc20e85c10fa416a87bd8a8e66ed2141f9d738463e7fc40ceaccf7418.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+29.1 KB
...05a2fef563d024b57288137bc0adf4344b0b9.png → ...4131fa3f13737244e437740ddae980ebd1e28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-25.9 KB
_images/5bdd5d3f33a4524753684055a5fad4bd82a39e4c1cb11bce1b30401925c81ecf.png
Binary file not shown.
Binary file renamed
BIN
+167 KB
...fb6b0f7a36c57d7a4025b34de029233d8d3f8.png → ...36f0192d4cb2ec5cca76c32812c02f35ec424.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+165 KB
...659b784f34bf0b8ebdceb934bee7ddc222d55.png → ...810cc5a44f1fce8c2eef3ccb492932b39d7ac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+15.9 KB
...4ef1566bd2800215484dd031eacea9d34b8ed.png → ...0c35167f5a303e78d4971c1eaf1382c82fe73.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+20.3 KB
...d59f84f0614aee01a6b563e2eda73664e980d.png → ...43b6141ad5db11591e03e0e91e693b2b18c4e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-29.4 KB
_images/94c2a08ab1ceaa205ecfb8d62e483d28be81d8c1237c2118d10d4eb766bec1fc.png
Binary file not shown.
Binary file renamed
BIN
+21.7 KB
...f84e52cbeee8ab9c16e8abc25a1c42d77bf2e.png → ...3c363a22e4ecfb8634852ceba0fb62f38ee76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-171 KB
_images/aa9c48a376f197fd6af81fc45cf79b9b33cdda12a663b0d6738ebcb554964f0a.png
Binary file not shown.
Binary file renamed
BIN
+22 KB
...6a052f8635f048b5b7f495a17409cb544df72.png → ...61f8670209306f784fd9ebc25a09415ef715b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+19.3 KB
...f954270bca8b6e60d88b947cc42c8e7018929.png → ...93c1328bd0415fda521754b6761cbff57903e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-34.1 KB
_images/b8052939c33bb828c2eeea1d03c48c2129394702e972919142009dcc8bff305e.png
Binary file not shown.
Binary file renamed
BIN
+8.69 KB
...aa56af0a05a83b148ec0823e6f4c10cf0cd88.png → ...5ad35ff59c61539962b4f9738817de79022ed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+99.5 KB
_images/be0f87d705459fb656d44d6c1e42a8735e9356d6c7fbee9c46215d7a2682e1cb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.1 KB
_images/c138d78d11c7e14374028e10ca0934ab2696fbf6aa9d2b45d44bcffabf6080e2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+26.3 KB
...d67f42a28c228c33b7b8a35c33f393440382a.png → ...4f353e2623573ea3dd213d23a6b486bfbee9e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+46.5 KB
...034ec451475c82b447ad813ae1b9b24601637.png → ...cb29fb801535cb4cbcb2c830584b6c6ffc72d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+171 KB
_images/cfcdc7e302775579c03049aef09d50bcdd1691a83bfa4ec1a20e1ac8536e0ce7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
_images/d8f000c5866310197f993a7572f8fecc25292a36dab7b71d7508e7eec2cc2434.png
Oops, something went wrong.
Binary file added
BIN
+7.48 KB
_images/deabea6d50267eb0199707fd11c4215082556e20ab5e2e17344d1dde87586a2e.png
Oops, something went wrong.
Binary file renamed
BIN
+82 KB
...41e648ebf742911fe25095bde7b712d7234d4.png → ...0b3979de3a415db6696093790df3189ca2edf.png
Oops, something went wrong.
Binary file renamed
BIN
+34.2 KB
...fab282da4371e89979a0744574aaa167e16fc.png → ...86a627492010be04a5f6c56083ee6b1ac9289.png
Oops, something went wrong.
Binary file added
BIN
+84.6 KB
_images/ec3d78c828a48f27837aed2db2ea620c401fa3cc7fec032fead69ca09d84fb29.png
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
core.common.test_utils | ||
====================== | ||
|
||
.. py:module:: core.common.test_utils | ||
Classes | ||
------- | ||
|
||
.. autoapisummary:: | ||
|
||
core.common.test_utils.ForkedPdb | ||
core.common.test_utils.PGConfig | ||
|
||
|
||
Functions | ||
--------- | ||
|
||
.. autoapisummary:: | ||
|
||
core.common.test_utils.spawn_multi_process | ||
core.common.test_utils._init_pg_and_rank_and_launch_test | ||
|
||
|
||
Module Contents | ||
--------------- | ||
|
||
.. py:class:: ForkedPdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True) | ||
Bases: :py:obj:`pdb.Pdb` | ||
|
||
|
||
A Pdb subclass that may be used from a forked multiprocessing child | ||
https://stackoverflow.com/questions/4716533/how-to-attach-debugger-to-a-python-subproccess/23654936#23654936 | ||
|
||
example usage to debug a torch distributed run on rank 0: | ||
if torch.distributed.get_rank() == 0: | ||
from fairchem.core.common.test_utils import ForkedPdb | ||
ForkedPdb().set_trace() | ||
|
||
|
||
.. py:method:: interaction(*args, **kwargs) | ||
.. py:class:: PGConfig | ||
.. py:attribute:: backend | ||
:type: str | ||
|
||
|
||
.. py:attribute:: world_size | ||
:type: int | ||
|
||
|
||
.. py:attribute:: gp_group_size | ||
:type: int | ||
:value: 1 | ||
|
||
|
||
|
||
.. py:attribute:: port | ||
:type: str | ||
:value: '12345' | ||
|
||
|
||
|
||
.. py:attribute:: use_gp | ||
:type: bool | ||
:value: True | ||
|
||
|
||
|
||
.. py:function:: spawn_multi_process(config: PGConfig, test_method: callable, *test_method_args: Any, **test_method_kwargs: Any) -> list[Any] | ||
Spawn single node, multi-rank function. | ||
Uses localhost and free port to communicate. | ||
|
||
:param world_size: number of processes | ||
:param backend: backend to use. for example, "nccl", "gloo", etc | ||
:param test_method: callable to spawn. first 3 arguments are rank, world_size and mp output dict | ||
:param test_method_args: args for the test method | ||
:param test_method_kwargs: kwargs for the test method | ||
|
||
:returns: A list, l, where l[i] is the return value of test_method on rank i | ||
|
||
|
||
.. py:function:: _init_pg_and_rank_and_launch_test(rank: int, pg_setup_params: PGConfig, mp_output_dict: dict[int, object], test_method: callable, args: list[object], kwargs: dict[str, object]) -> None | ||
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
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
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
Oops, something went wrong.