author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
260,510
15.09.2022 19:04:49
25,200
2d8b228706211a4b3db578a0c92d5377de8b75a7
Add function to visualize `Sharding`s
[ { "change_type": "MODIFY", "old_path": "build/test-requirements.txt", "new_path": "build/test-requirements.txt", "diff": "@@ -5,3 +5,4 @@ pillow>=9.1.0\npytest-benchmark\npytest-xdist\nwheel\n+rich\n" }, { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax...
Python
Apache License 2.0
google/jax
Add function to visualize `Sharding`s
260,510
19.09.2022 18:35:22
25,200
f825a3c8c0eda55f2f2ffebf4723d36bb1da7046
Limit console width for visualize_sharding
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -41,6 +41,7 @@ try:\nimport rich\nimport rich.align\nimport rich.box\n+ import rich.console\nimport rich.padding\nimport rich.table\nRICH_ENABLED = True\n@@ -254,7 +255,8 @@ def _slice_to...
Python
Apache License 2.0
google/jax
Limit console width for visualize_sharding
260,510
19.09.2022 19:19:45
25,200
0276a6e77c12a50ad0f77b27441fc6b685d0e927
Add support for pmap sharding
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -17,7 +17,7 @@ import functools\nimport string\nimport sys\n-from typing import Any, Dict, Callable, Sequence, Set, Tuple\n+from typing import Any, Dict, Callable, Sequence, Set, Tuple, U...
Python
Apache License 2.0
google/jax
Add support for pmap sharding
260,424
16.09.2022 17:46:25
-3,600
018e700ead0612a56f1e7702220012661161f4fc
Checkify: support batched while.
[ { "change_type": "MODIFY", "old_path": "jax/_src/checkify.py", "new_path": "jax/_src/checkify.py", "diff": "@@ -662,18 +662,54 @@ def ignore_error_output_jaxpr(jaxpr):\nnew_jaxpr = jaxpr.replace(outvars=jaxpr.outvars[3:])\nreturn core.ClosedJaxpr(new_jaxpr, consts)\n+def batch_error(err, code, paylo...
Python
Apache License 2.0
google/jax
Checkify: support batched while.
260,631
21.09.2022 09:47:21
25,200
c7f2712e74211a36c0ec5056d4bbf257806e78c1
Flip default value of jax_unique_mhlo_module_names to False. This should help avoid unnecessary cache misses.
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -876,7 +876,7 @@ config.define_bool_state(\nconfig.define_bool_state(\nname='jax_unique_mhlo_module_names',\n- default=True,\n+ default=False,\nhelp='Enables the generation of unique MHLO modul...
Python
Apache License 2.0
google/jax
Flip default value of jax_unique_mhlo_module_names to False. This should help avoid unnecessary cache misses. PiperOrigin-RevId: 475852954
260,661
22.09.2022 14:29:30
14,400
9a11b61829191e58089b23405c2c1c74aeb0f4b2
[ROCM] Update Dockerfil.rocm to Ubuntu20
[ { "change_type": "MODIFY", "old_path": "build/rocm/Dockerfile.rocm", "new_path": "build/rocm/Dockerfile.rocm", "diff": "-FROM ubuntu:bionic\n+FROM ubuntu:focal\nMAINTAINER Reza Rahimi <reza.rahimi@amd.com>\nARG ROCM_DEB_REPO=http://repo.radeon.com/rocm/apt/5.2/\n@@ -82,8 +82,7 @@ RUN add-apt-reposit...
Python
Apache License 2.0
google/jax
[ROCM] Update Dockerfil.rocm to Ubuntu20
260,672
22.09.2022 11:44:22
25,200
d52de206cb349173d961a57d0288eafbf423959d
Disable tests that timeout in debug mode in CI
[ { "change_type": "MODIFY", "old_path": "tests/BUILD", "new_path": "tests/BUILD", "diff": "@@ -477,6 +477,7 @@ jax_test(\n\"tpu\": [\n\"cpu:8\",\n\"noasan\", # Times out.\n+ \"nodebug\", # Times out.\n\"notsan\", # Times out.\n],\n},\n@@ -535,9 +536,10 @@ jax_test(\nsrcs = [\"pmap_test.py\"],\nbacken...
Python
Apache License 2.0
google/jax
Disable tests that timeout in debug mode in CI PiperOrigin-RevId: 476157051
260,510
22.09.2022 12:55:55
25,200
1a8a8a5586c4c4097aa2fa99a4450da1efed0c41
Fix example in `pjit` docstring
[ { "change_type": "MODIFY", "old_path": "jax/experimental/pjit.py", "new_path": "jax/experimental/pjit.py", "diff": "@@ -304,13 +304,14 @@ def pjit(fun: Callable,\n>>> import jax\n>>> import jax.numpy as jnp\n+ >>> import numpy as np\n>>> from jax.experimental.maps import Mesh\n>>> from jax.experimen...
Python
Apache License 2.0
google/jax
Fix example in `pjit` docstring
260,510
22.09.2022 17:36:20
25,200
805073f36a03aa1a93486c98c4ac9851e630ea05
Add inspect_array_sharding, enabling looking at shardings in pjit-ted functions
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -16,24 +16,33 @@ import enum\nimport functools\nimport string\nimport sys\n+import weakref\nfrom typing import Any, Dict, Callable, Sequence, Set, Tuple, Union\nfrom jax import core\nfrom...
Python
Apache License 2.0
google/jax
Add inspect_array_sharding, enabling looking at shardings in pjit-ted functions PiperOrigin-RevId: 476237731
260,510
22.09.2022 19:04:23
25,200
99d4d8b89ad759d6c53e9a2d1830c334dacf9238
Update debugging docs to have sharding visualization
[ { "change_type": "MODIFY", "old_path": "docs/jax.debug.rst", "new_path": "docs/jax.debug.rst", "diff": "@@ -6,10 +6,11 @@ jax.debug package\n.. automodule:: jax.debug\n-Debugging utilities\n---------------------------\n+Runtime value debugging utilities\n+---------------------------------\n-:doc:`de...
Python
Apache License 2.0
google/jax
Update debugging docs to have sharding visualization
260,447
22.09.2022 20:21:29
25,200
67b7ae259fca8fc6aea0efc632bac438dae01919
[sparse] Move `_bcoo_nse` to sparse util.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcoo.py", "new_path": "jax/experimental/sparse/bcoo.py", "diff": "@@ -29,7 +29,7 @@ from jax import tree_util\nfrom jax import vmap\nfrom jax.config import config\nfrom jax.experimental.sparse._base import JAXSparse\n-from jax.experimen...
Python
Apache License 2.0
google/jax
[sparse] Move `_bcoo_nse` to sparse util. PiperOrigin-RevId: 476263483
260,424
22.09.2022 15:23:54
-3,600
7078f81dd00646b0236463cf81e2ad1bfb08a008
Checkify: misc improvements. err.throw == check_error(err) -> meaning they have the same behavior under checkify now "divided by zero" -> "division by zero" add validation that check_error only takes args of type Error
[ { "change_type": "MODIFY", "old_path": "jax/_src/checkify.py", "new_path": "jax/_src/checkify.py", "diff": "@@ -110,8 +110,14 @@ class Error:\nreturn None\ndef throw(self):\n- \"\"\"Throw ValueError with error message if error happened.\"\"\"\n- err = self.get()\n+ check_error(self)\n+\n+ def __str_...
Python
Apache License 2.0
google/jax
Checkify: misc improvements. - err.throw == check_error(err) -> meaning they have the same behavior under checkify now - "divided by zero" -> "division by zero" - add validation that check_error only takes args of type Error
260,506
22.09.2022 21:33:07
25,200
c823151771977e91bbb53a0a04885be7fbb659f4
Allow transpose axes to be negative to match (undocumented) NumPy behavior
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -528,6 +528,7 @@ view of the input.\ndef transpose(a, axes=None):\n_stackable(a) or _check_arraylike(\"transpose\", a)\naxes = np.arange(ndim(a))[::-1] if axes is None else ax...
Python
Apache License 2.0
google/jax
Allow transpose axes to be negative to match (undocumented) NumPy behavior
260,332
23.09.2022 12:11:56
25,200
4dd0d851393758c98b8002eea9d138e31b69f1f3
add multihost pjit tests
[ { "change_type": "MODIFY", "old_path": "tests/multiprocess_gpu_test.py", "new_path": "tests/multiprocess_gpu_test.py", "diff": "@@ -17,16 +17,23 @@ import subprocess\nimport sys\nimport threading\nimport unittest\n+import functools\nfrom absl.testing import absltest\nfrom absl.testing import paramet...
Python
Apache License 2.0
google/jax
add multihost pjit tests
260,631
25.09.2022 20:53:45
25,200
ec15e83018087d3379a4c71150cf632ae11d4d2c
Wraps calls to lax.xeinsum and _einsum in a named call with their 'spec', the string specifying the computation. Makes xprof traces more interpretable.
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -2897,8 +2897,10 @@ def einsum(*operands, out=None, optimize='optimal', precision=None,\nif out is not None:\nraise NotImplementedError(\"The 'out' argument to jnp.einsum is n...
Python
Apache License 2.0
google/jax
- Wraps calls to lax.xeinsum and _einsum in a named call with their 'spec', the string specifying the computation. Makes xprof traces more interpretable. PiperOrigin-RevId: 476796185
260,424
23.09.2022 14:30:49
-3,600
78ecc1442c5d853e0d4b2d1b9471f3a78cadf51f
Lowerable checks!!
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -909,6 +909,15 @@ config.define_bool_state(\nupgrade=True,\nhelp='Enable eager-mode pmap when jax_disable_jit is activated.')\n+config.define_bool_state(\n+ name='jax_unsafe_xla_runtime_errors'...
Python
Apache License 2.0
google/jax
Lowerable checks!!
260,380
26.09.2022 17:14:09
-3,600
8bcf358fdef98771ae66bd61182ed803b01e46bd
Remove unused _remat_static_argnums import.
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -73,7 +73,6 @@ from jax._src.lib.xla_bridge import (device_count, local_device_count, devices,\nprocess_count, host_id, host_ids,\nhost_count, default_backend)\nfrom jax.ad_checkpoint import checkpoi...
Python
Apache License 2.0
google/jax
Remove unused _remat_static_argnums import.
260,424
23.09.2022 15:10:41
-3,600
27e3981d52a0f18a553336d56d56d27320d0356a
lowerable errors behind a config flag.
[ { "change_type": "MODIFY", "old_path": "jax/_src/checkify.py", "new_path": "jax/_src/checkify.py", "diff": "@@ -489,17 +489,47 @@ CheckEffect = object()\ndef assert_abstract_eval(err, code, payload, *, msgs):\nreturn [], {CheckEffect}\n-def assert_lowering_rule(*a, **k):\n- # TODO(lenamartens): actu...
Python
Apache License 2.0
google/jax
lowerable errors behind a config flag.
260,447
26.09.2022 16:01:47
25,200
71bcabe4992e41f0056a47541bf57fd3446d815d
[sparse] Add BCSR format template.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/__init__.py", "new_path": "jax/experimental/sparse/__init__.py", "diff": "@@ -217,6 +217,9 @@ from jax.experimental.sparse.bcoo import (\nBCOO as BCOO,\n)\n+from jax.experimental.sparse.bcsr import (\n+ BCSR as BCSR,\n+)\nfrom jax.exper...
Python
Apache License 2.0
google/jax
[sparse] Add BCSR format template. PiperOrigin-RevId: 477013899
260,510
26.09.2022 17:29:08
25,200
1d895b2c85e17b9f563cd41d9a340528179d29aa
Fix lax imports
[ { "change_type": "MODIFY", "old_path": "jax/_src/ad_checkpoint.py", "new_path": "jax/_src/ad_checkpoint.py", "diff": "@@ -36,6 +36,8 @@ from jax._src import util\nfrom jax._src import source_info_util\nfrom jax._src import traceback_util\nfrom jax._src.api_util import flatten_fun, shaped_abstractify...
Python
Apache License 2.0
google/jax
Fix lax imports
260,335
23.09.2022 14:21:18
25,200
1e7ca8f77a739b93b156506bd6eb7b13aa504781
fix bug in djax type signature inference logic
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -2095,7 +2095,9 @@ def infer_lambda_input_type(\nidxs, implicit_types = _collect_implicit(args, specs)\nimplicit_sig = [(ty, False) for ty in implicit_types]\nexplic...
Python
Apache License 2.0
google/jax
fix bug in djax type signature inference logic Co-authored-by: Sharad Vikram <sharad.vikram@gmail.com>
260,335
27.09.2022 20:39:19
25,200
b175e117313fc7c554c828e054e2b7cee70ffcbe
[c++ jit] only set use_fastpath in cache_miss if all args are DeviceArrays fixes
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -537,6 +537,8 @@ def _device_array_use_fast_path(execute, out_pytree_def, args_flat, out_flat):\nnot execute.args[5] and not execute.args[6] and\n# Has no host callbacks\nnot execute.args[8] and\n+ #...
Python
Apache License 2.0
google/jax
[c++ jit] only set use_fastpath in cache_miss if all args are DeviceArrays fixes #12542 Co-authored-by: Peter Hawkins <phawkins@google.com> Co-authored-by: Kuangyuan Chen <chky@google.com>
260,510
27.09.2022 15:19:03
25,200
ddeaa8dbbc707b8ca485d9ca077b45535623d352
Fix lowering bug in effectful batched cond and add tests
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow/loops.py", "new_path": "jax/_src/lax/control_flow/loops.py", "diff": "@@ -1439,7 +1439,11 @@ def _while_lowering(ctx, *args, cond_jaxpr, body_jaxpr, cond_nconsts,\ncore.ordered_effects]\nif cond_ordered_effects:\ndef cond(args):\n- re...
Python
Apache License 2.0
google/jax
Fix lowering bug in effectful batched cond and add tests
260,335
26.09.2022 16:31:18
25,200
a8826e672bb031d3f0e054b14b9eff1161a4ec52
[dynamic-shapes] Add basic slicing support If e.g. `x : f32[10, n]` then we want to handle Python expressions like `x[0]`. To do that, we can use a generalized version of `dynamic_slice` which allows dynamic slice sizes (where the result shape depends on those slice sizes).
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -1456,10 +1456,9 @@ def _iter(tracer):\nraise TypeError(\"iteration over a 0-d array\") # same as numpy error\nelse:\nn = int(tracer.shape[0])\n- # return (index_in_dim(tracer, i, keepdims=Fa...
Python
Apache License 2.0
google/jax
[dynamic-shapes] Add basic slicing support If e.g. `x : f32[10, n]` then we want to handle Python expressions like `x[0]`. To do that, we can use a generalized version of `dynamic_slice` which allows dynamic slice sizes (where the result shape depends on those slice sizes). Co-authored-by: Sharad Vikram <sharad.vikram@gmail.com>
260,424
16.09.2022 19:52:18
-3,600
0639aced5b8bffb04ecb1ff409ee2b07eab1feac
Raise cond index into tracing context in case of effects. So even if the cond is not data dependent at all, it's included in the dynamic trace, and effects can be discharged.
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow/conditionals.py", "new_path": "jax/_src/lax/control_flow/conditionals.py", "diff": "@@ -139,6 +139,10 @@ def switch(index, branches: Sequence[Callable], *operands,\nif disallowed_effects:\nraise NotImplementedError(\nf'Effects not sup...
Python
Apache License 2.0
google/jax
Raise cond index into tracing context in case of effects. So even if the cond is not data dependent at all, it's included in the dynamic trace, and effects can be discharged.
260,661
29.09.2022 12:40:40
0
0783f8982d78c26d765120a127ee39e8f203f8d7
[ROCM] Add TENSORFLOW_ROCM_COMMIT parameter to ROCM ci build
[ { "change_type": "MODIFY", "old_path": "build/rocm/build_rocm.sh", "new_path": "build/rocm/build_rocm.sh", "diff": "@@ -19,6 +19,15 @@ ROCM_TF_FORK_REPO=\"https://github.com/ROCmSoftwarePlatform/tensorflow-upstream\"\nROCM_TF_FORK_BRANCH=\"develop-upstream\"\nrm -rf /tmp/tensorflow-upstream || true\...
Python
Apache License 2.0
google/jax
[ROCM] Add TENSORFLOW_ROCM_COMMIT parameter to ROCM ci build
260,631
29.09.2022 11:31:48
25,200
4f90af91d3760dc82f20d4afffd11373b52ae704
Remove unused jax_unique_mhlo_module_names flag.
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -874,12 +874,6 @@ config.define_bool_state(\ndefault=True,\nhelp='Enable using the context manager-based name stack.')\n-config.define_bool_state(\n- name='jax_unique_mhlo_module_names',\n- def...
Python
Apache License 2.0
google/jax
Remove unused jax_unique_mhlo_module_names flag. PiperOrigin-RevId: 477778135
260,332
29.09.2022 17:06:56
25,200
4fbc9a10d116cfe49f2e502718a320ed4734e235
Add multihost GPU CI run with last public jaxlib release
[ { "change_type": "MODIFY", "old_path": ".github/workflows/nightly-ci-multiprocess-gpu.yml", "new_path": ".github/workflows/nightly-ci-multiprocess-gpu.yml", "diff": "@@ -15,7 +15,7 @@ on:\n- '**workflows/nightly-ci-multiprocess-gpu.yml'\njobs:\n- build:\n+ jaxlib-nightly:\nruns-on: self-hosted\nstep...
Python
Apache License 2.0
google/jax
Add multihost GPU CI run with last public jaxlib release
260,335
29.09.2022 20:01:42
25,200
b8c87bc9dedeae5066ecf1bad46075c9564e7546
improve custom_jvp/vjp error messages In particular: * add function names so it's clear what decorated functions and rules are causing the error; * when possible (because the functions were run), check for agreement of pytree structure and leaf shapes/dtypes between the primal function and rules context:
[ { "change_type": "MODIFY", "old_path": "jax/_src/custom_derivatives.py", "new_path": "jax/_src/custom_derivatives.py", "diff": "@@ -28,7 +28,7 @@ from jax._src import custom_api_util\nfrom jax._src import dtypes\nfrom jax._src.lax import lax\nfrom jax._src.util import cache, safe_zip, safe_map, spli...
Python
Apache License 2.0
google/jax
improve custom_jvp/vjp error messages In particular: * add function names so it's clear what decorated functions and rules are causing the error; * when possible (because the functions were run), check for agreement of pytree structure and leaf shapes/dtypes between the primal function and rules context: https://github.com/lucidrains/flash-attention-jax/issues/7
260,640
03.10.2022 13:38:45
-7,200
27360b9988e863b8f8d5d474f3b77d3488f1e015
Fix book links
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/autodiff_cookbook.ipynb", "new_path": "docs/notebooks/autodiff_cookbook.ipynb", "diff": "\"id\": \"MDl5UZl4oyzB\"\n},\n\"source\": [\n- \"This `grad` API has a direct correspondence to the excellent notation in Spivak's classic *Calculus on Mani...
Python
Apache License 2.0
google/jax
Fix book links
260,503
03.10.2022 10:39:07
25,200
be56a3559d177d2aa0c6e80ac38626f11fb59ce7
Add unsafe_buffer_pointer to _DeviceArray
[ { "change_type": "MODIFY", "old_path": "jax/_src/device_array.py", "new_path": "jax/_src/device_array.py", "diff": "@@ -178,6 +178,10 @@ class _DeviceArray(DeviceArray): # type: ignore\nif self._npy_value is None:\nself.device_buffer.copy_to_host_async() # pytype: disable=attribute-error\n+ def unsa...
Python
Apache License 2.0
google/jax
Add unsafe_buffer_pointer to _DeviceArray PiperOrigin-RevId: 478544225
260,447
03.10.2022 11:55:48
25,200
58a2abe1b5496acb177a5fd10394e001c381bff9
[sparse] Move broadcasting_vmap to sparse util.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcoo.py", "new_path": "jax/experimental/sparse/bcoo.py", "diff": "@@ -29,7 +29,7 @@ from jax import tree_util\nfrom jax import vmap\nfrom jax.config import config\nfrom jax.experimental.sparse._base import JAXSparse\n-from jax.experimen...
Python
Apache License 2.0
google/jax
[sparse] Move broadcasting_vmap to sparse util. PiperOrigin-RevId: 478566197
260,447
04.10.2022 09:59:26
25,200
ae49d2e033f5aa637d67c5679102cc1a21164e6e
[sparse] Add conversions between BCSR and BCOO.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcoo.py", "new_path": "jax/experimental/sparse/bcoo.py", "diff": "@@ -138,6 +138,27 @@ def _validate_bcoo_indices(indices: jnp.ndarray, shape: Sequence[int]) -> BCOOPr\nreturn BCOOProperties(n_batch=n_batch, n_sparse=n_sparse, n_dense=n...
Python
Apache License 2.0
google/jax
[sparse] Add conversions between BCSR and BCOO. PiperOrigin-RevId: 478816413
260,510
04.10.2022 12:14:13
25,200
a60ca9f0519a63ade5399f3a9eeff7c24c92ab9c
Test that array layout is preserved in Python callbacks
[ { "change_type": "MODIFY", "old_path": "tests/python_callback_test.py", "new_path": "tests/python_callback_test.py", "diff": "@@ -800,6 +800,13 @@ class PurePythonCallbackTest(jtu.JaxTestCase):\nout = f(np.arange(40.))\nnp.testing.assert_allclose(out, jnp.arange(1., 41.))\n+ def test_array_layout_is...
Python
Apache License 2.0
google/jax
Test that array layout is preserved in Python callbacks PiperOrigin-RevId: 478852392
260,335
29.09.2022 14:00:47
25,200
06a2c85d521aeb94781e9c473172eaa7cbf72dd7
[dynamic-shapes] small fix to einsum (and indexing)
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/lax.py", "new_path": "jax/_src/lax/lax.py", "diff": "@@ -1456,6 +1456,10 @@ def _iter(tracer):\nraise TypeError(\"iteration over a 0-d array\") # same as numpy error\nelse:\nn = int(tracer.shape[0])\n+ if any(isinstance(d, core.Tracer) for d in tr...
Python
Apache License 2.0
google/jax
[dynamic-shapes] small fix to einsum (and indexing)
260,510
04.10.2022 14:31:17
25,200
83ef7d09e78f9aa9521896a1de1889d42ccea307
Fix collect_profile _src import
[ { "change_type": "MODIFY", "old_path": "jax/collect_profile.py", "new_path": "jax/collect_profile.py", "diff": "@@ -21,6 +21,7 @@ from typing import Optional\n# pytype: disable=import-error\nimport jax\n+from jax._src import profiler as jax_profiler\ntry:\nfrom tensorflow.python.profiler import prof...
Python
Apache License 2.0
google/jax
Fix collect_profile _src import
260,608
03.10.2022 22:52:03
0
78a7e161bb19e10d468fb02aa10c2cca7a217999
Set JAX_PLATFORMS=tpu,cpu on TPUs
[ { "change_type": "MODIFY", "old_path": "jax/_src/cloud_tpu_init.py", "new_path": "jax/_src/cloud_tpu_init.py", "diff": "@@ -48,6 +48,7 @@ def cloud_tpu_init():\nlibtpu.configure_library_path()\nos.environ.setdefault('GRPC_VERBOSITY', 'ERROR')\n+ os.environ.setdefault('JAX_PLATFORMS', 'tpu,cpu')\nos....
Python
Apache License 2.0
google/jax
Set JAX_PLATFORMS=tpu,cpu on TPUs
260,608
04.10.2022 23:37:37
0
ef559534ad7ad50fb216e218f4e542f9465853a5
Add set up message for JAX_PLATFORMS
[ { "change_type": "MODIFY", "old_path": "jax/_src/lib/xla_bridge.py", "new_path": "jax/_src/lib/xla_bridge.py", "diff": "@@ -350,7 +350,8 @@ def backends():\n# we expect a RuntimeError.\nerr_msg = f\"Unable to initialize backend '{platform}': {err}\"\nif config.jax_platforms:\n- raise RuntimeError(er...
Python
Apache License 2.0
google/jax
Add set up message for JAX_PLATFORMS
260,608
04.10.2022 23:53:07
0
22e1547e3cc21101840bfbf1c4b44fa0fd32d660
Update set up message
[ { "change_type": "MODIFY", "old_path": "jax/_src/lib/xla_bridge.py", "new_path": "jax/_src/lib/xla_bridge.py", "diff": "@@ -350,7 +350,7 @@ def backends():\n# we expect a RuntimeError.\nerr_msg = f\"Unable to initialize backend '{platform}': {err}\"\nif config.jax_platforms:\n- setup_msg = f\"(Set J...
Python
Apache License 2.0
google/jax
Update set up message
260,608
05.10.2022 01:01:31
0
4870fd3be8eaeba1fb429c41e368e5d72b257c81
Update message and change log
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -8,7 +8,12 @@ Remember to align the itemized text with the first line of an item within a list\nPLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n-->\n-## jax 0.3.22\n+## jax 0.3.2...
Python
Apache License 2.0
google/jax
Update message and change log
260,608
05.10.2022 18:16:49
0
f3ded0fc1e45af47e99ea887c5bdbc0549072fb1
Address comments for change log
[ { "change_type": "MODIFY", "old_path": "CHANGELOG.md", "new_path": "CHANGELOG.md", "diff": "@@ -8,12 +8,13 @@ Remember to align the itemized text with the first line of an item within a list\nPLEASE REMEMBER TO CHANGE THE '..main' WITH AN ACTUAL TAG in GITHUB LINK.\n-->\n-## jax 0.3.22 (Oct 5, 2022)...
Python
Apache License 2.0
google/jax
Address comments for change log
260,335
05.10.2022 15:47:59
25,200
e8dc6d14e488dfe09ff2c107a333ecd55e680ad4
improve jit(f).lower(duck_args) and pjit(f).lower(duck_args)
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -3018,10 +3018,11 @@ def _valid_jaxtype(arg):\nclass ShapeDtypeStruct:\n- __slots__ = [\"shape\", \"dtype\", \"named_shape\"]\n- def __init__(self, shape, dtype, named_shape=None):\n+ __slots__ = [\"...
Python
Apache License 2.0
google/jax
improve jit(f).lower(duck_args) and pjit(f).lower(duck_args) Co-authored-by: Yash Katariya <yashkatariya@google.com>
260,335
05.10.2022 15:17:29
25,200
ce95ebad945a63e9ef111e6ae99609d471e7b39a
make device_put work with Sharding 2nd arg
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -19,6 +19,7 @@ arguments and outputs. The Python containers handled are pytrees (see\ntree_util.py), which include nested tuples/lists/dicts, where the leaves are\narrays.\n\"\"\"\n+from __future__ i...
Python
Apache License 2.0
google/jax
make device_put work with Sharding 2nd arg Co-authored-by: Yash Katariya <yashkatariya@google.com>
260,335
06.10.2022 16:12:20
25,200
bcca6fb57afd20c46172bb29f5c5a224b06f9f6c
add test, small fixes
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -668,7 +668,7 @@ def _jit_lower(fun, static_argnums, static_argnames, device, backend,\n# this might naturally be a method, with ``fun`` as a ``self`` and\n# all the other arguments stored as attribu...
Python
Apache License 2.0
google/jax
add test, small fixes Co-authored-by: Yash Katariya <yashkatariya@google.com>
260,447
06.10.2022 17:28:16
25,200
7a825362faebde6ca7ffbf3a50d59042d2a5ae0b
[sparse] Bug fix in _validate_bcsr.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcsr.py", "new_path": "jax/experimental/sparse/bcsr.py", "diff": "@@ -63,7 +63,7 @@ def _validate_bcsr(data: jnp.ndarray, indices: jnp.ndarray,\nprops = _validate_bcsr_indices(indices, indptr, shape)\nshape = tuple(shape)\nn_batch, n_de...
Python
Apache License 2.0
google/jax
[sparse] Bug fix in _validate_bcsr. PiperOrigin-RevId: 479452053
260,335
06.10.2022 23:15:22
25,200
076a7348d051a8f0091ae9fe708b7d80c666d14b
fix -O / PYTHONOPTIMIZE bug fixes I'm not sure how to write test cases for PYTHONOPTIMIZE=1 (without growing our whole test matrix), so I'm leaving this untested...
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/partial_eval.py", "new_path": "jax/interpreters/partial_eval.py", "diff": "@@ -898,7 +898,8 @@ def tracers_to_jaxpr(\ndef newvar(t: JaxprTracer) -> Var:\nvar = gensym(type_substitute(t.aval))\n- assert t_to_var.setdefault(id(t), var) is var\n+...
Python
Apache License 2.0
google/jax
fix -O / PYTHONOPTIMIZE bug fixes #12688 I'm not sure how to write test cases for PYTHONOPTIMIZE=1 (without growing our whole test matrix), so I'm leaving this untested...
260,411
07.10.2022 14:13:20
-10,800
7c7c94c8ddba1737931f3f95575682f20f37f0d2
Expand support for __jax_array__ in jnp.array. This relates to the long discussion in and
[ { "change_type": "MODIFY", "old_path": "jax/_src/numpy/lax_numpy.py", "new_path": "jax/_src/numpy/lax_numpy.py", "diff": "@@ -1862,6 +1862,8 @@ def array(object: Any, dtype: Optional[DTypeLike] = None, copy: bool = True,\nif isinstance(object, (bool, int, float, complex)):\n_ = dtypes.coerce_to_arra...
Python
Apache License 2.0
google/jax
Expand support for __jax_array__ in jnp.array. This relates to the long discussion in #4725 and #10065.
260,661
07.10.2022 19:57:53
0
34f6646050687e3391f4e824591b7e4b280666a1
Add default setting for TENSORFLOW_ROCM_COMMIT
[ { "change_type": "MODIFY", "old_path": "build/rocm/ci_build.sh", "new_path": "build/rocm/ci_build.sh", "diff": "@@ -101,6 +101,7 @@ fi\n# Run the command inside the container.\necho \"Running '${POSITIONAL_ARGS[*]}' inside ${DOCKER_IMG_NAME}...\"\n+export TENSORFLOW_ROCM_COMMIT=\"${TENSORFLOW_ROCM_C...
Python
Apache License 2.0
google/jax
Add default setting for TENSORFLOW_ROCM_COMMIT
260,335
07.10.2022 16:48:34
25,200
0a0f492a3dc9f52ea401453aaf725416e9a2082c
make device_put(prngkeyarray, sharding) for Array
[ { "change_type": "MODIFY", "old_path": "jax/_src/array.py", "new_path": "jax/_src/array.py", "diff": "@@ -116,6 +116,8 @@ class ArrayImpl(basearray.Array):\narrays: Union[Sequence[DeviceArray], Sequence[ArrayImpl]],\ncommitted: bool, _skip_checks: bool = False):\n# NOTE: the actual implementation of...
Python
Apache License 2.0
google/jax
make device_put(prngkeyarray, sharding) for Array Co-authored-by: Yash Katariya <yashkatariya@google.com> Co-authored-by: Roy Frostig <frostig@google.com>
260,447
10.10.2022 11:53:45
25,200
34eb6ce36b929e71956f9123f1452d127c1955a5
[sparse] BCSR fromdense and todense.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/__init__.py", "new_path": "jax/experimental/sparse/__init__.py", "diff": "@@ -218,8 +218,13 @@ from jax.experimental.sparse.bcoo import (\n)\nfrom jax.experimental.sparse.bcsr import (\n+ bcsr_fromdense as bcsr_fromdense,\n+ bcsr_fromde...
Python
Apache License 2.0
google/jax
[sparse] BCSR fromdense and todense. PiperOrigin-RevId: 480141918
260,411
06.09.2022 09:32:45
-10,800
9c879adb736816ee32b2b11ff57bf49b8e2f9c51
[jax2tf] Implement jax2tf(pjit) for experimental_native_lowering This implementation is for the case jax2tf.convert(pjit(f_jax)), that is, the `pjit` appears at the top-level of the function to be lowered.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/jax2tf.py", "new_path": "jax/experimental/jax2tf/jax2tf.py", "diff": "@@ -422,6 +422,21 @@ def flatten_fun_jax(fun_jax: Callable, args_tf: Sequence[TfVal],\nout_tree_ref = out_tree\nreturn res_flat_jax\n+ if hasattr(fun_jax, \"lower\"):...
Python
Apache License 2.0
google/jax
[jax2tf] Implement jax2tf(pjit) for experimental_native_lowering This implementation is for the case jax2tf.convert(pjit(f_jax)), that is, the `pjit` appears at the top-level of the function to be lowered.
260,287
11.10.2022 06:46:59
25,200
9c994985a44371fba6f8699ed4555afb2fb14330
Support MANUAL collectives in top-level xmaps It's a bit of a weird use-case, since MANUAL mode is meant for xmaps that are nested inside pjits, but it doesn't hurt us to support it.
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -2963,12 +2963,14 @@ def lower_mesh_computation(\n# 1. Trace to jaxpr and preprocess/verify it\nif spmd_lowering:\n+ manual_axes: FrozenSet[MeshAxisName] = frozenset()\n# TODO: Cons...
Python
Apache License 2.0
google/jax
Support MANUAL collectives in top-level xmaps It's a bit of a weird use-case, since MANUAL mode is meant for xmaps that are nested inside pjits, but it doesn't hurt us to support it. PiperOrigin-RevId: 480342531
260,305
11.10.2022 07:30:49
25,200
8c13142ae6fa821d06004059393d724c0c72190a
fixed build instructions typo
[ { "change_type": "MODIFY", "old_path": "build/rocm/README.md", "new_path": "build/rocm/README.md", "diff": "@@ -9,9 +9,9 @@ This directory contains files and setup instructions t0 build and test JAX for R\n./build/rocm/ci_build.sh --keep_image bash -c \"./build/rocm/build_rocm.sh\"\n- 3. Launch a co...
Python
Apache License 2.0
google/jax
fixed build instructions typo
260,335
10.10.2022 17:47:18
25,200
b27acedf1f61d13c7908e22cf9330db99bd61f58
add more info to pytree prefix key errors fixes
[ { "change_type": "MODIFY", "old_path": "jax/_src/tree_util.py", "new_path": "jax/_src/tree_util.py", "diff": "@@ -475,15 +475,27 @@ def _prefix_error(key_path: KeyPath, prefix_tree: Any, full_tree: Any,\n# point, and because prefix_tree is not a leaf, each can be flattened once):\nprefix_tree_childr...
Python
Apache License 2.0
google/jax
add more info to pytree prefix key errors fixes #12643
260,510
11.10.2022 12:38:52
25,200
07e1144af086e5b1db47db129d097241cb15da3e
Make webpdb debugger lower priority
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugger/web_debugger.py", "new_path": "jax/_src/debugger/web_debugger.py", "diff": "@@ -92,4 +92,4 @@ def run_debugger(frames: List[debugger_core.DebuggerFrame],\nWebDebugger(frames, thread_id, **kwargs).run()\nif WEB_PDB_ENABLED:\n- debugger_core.re...
Python
Apache License 2.0
google/jax
Make webpdb debugger lower priority
260,510
11.10.2022 13:57:00
25,200
bbf69d10cce9c34e9cfa4b28d22ec38a30168f8f
Enable partially discharging state effects from jaxprs
[ { "change_type": "MODIFY", "old_path": "jax/_src/state/discharge.py", "new_path": "jax/_src/state/discharge.py", "diff": "@@ -16,7 +16,7 @@ from __future__ import annotations\nimport dataclasses\nfrom functools import partial\n-from typing import Any, Dict, List, Optional, Sequence, Tuple\n+from typ...
Python
Apache License 2.0
google/jax
Enable partially discharging state effects from jaxprs
260,502
11.10.2022 21:45:15
25,200
bd054f81976f95776a88f4f78aa647b2c9d76331
add sharding property to GDA should improve forward compatibility with Array
[ { "change_type": "MODIFY", "old_path": "jax/experimental/global_device_array.py", "new_path": "jax/experimental/global_device_array.py", "diff": "@@ -457,6 +457,10 @@ class GlobalDeviceArray:\nself._sharded_buffer.block_until_ready() # type: ignore\nreturn self\n+ @property\n+ def sharding(self):\n+...
Python
Apache License 2.0
google/jax
add sharding property to GDA should improve forward compatibility with Array
260,557
13.10.2022 18:31:47
-7,200
6ddbe5d5ece97393ac91e6134bc9c83bd659d22a
expose `jax.block_until_ready()` from jax
[ { "change_type": "MODIFY", "old_path": "jax/__init__.py", "new_path": "jax/__init__.py", "diff": "@@ -63,7 +63,7 @@ from jax._src.environment_info import print_environment_info as print_environmen\nfrom jax._src.api import (\nad, # TODO(phawkins): update users to avoid this.\neffects_barrier,\n- blo...
Python
Apache License 2.0
google/jax
expose `jax.block_until_ready()` from jax
260,332
13.10.2022 17:22:15
25,200
cbcd0cdd045689abbf5400de23f5ebace423157c
ignore UserWarning
[ { "change_type": "MODIFY", "old_path": "pytest.ini", "new_path": "pytest.ini", "diff": "@@ -19,5 +19,6 @@ filterwarnings =\n# numpy uses distutils which is deprecated\nignore:The distutils.* is deprecated.*:DeprecationWarning\nignore:`sharded_jit` is deprecated. Please use `pjit` instead.*:Deprecati...
Python
Apache License 2.0
google/jax
ignore UserWarning
260,631
14.10.2022 03:12:10
25,200
1945208d34758e42eb401f88a54038f18ebf399d
Rollback because of failing tests internally.
[ { "change_type": "MODIFY", "old_path": "benchmarks/api_benchmark.py", "new_path": "benchmarks/api_benchmark.py", "diff": "@@ -629,7 +629,7 @@ def bench_slicing_compilation2(state):\njax.jit(lambda x: (x[:1], x[1:2], x[2:3])).lower(x).compile()\n-def pjit_simple_benchmark(state, num_devices, num_args...
Python
Apache License 2.0
google/jax
Rollback because of failing tests internally. PiperOrigin-RevId: 481103002
260,424
14.10.2022 17:01:12
-3,600
3b24e772e0d44fe508f553a3b1b23452a36f30e7
Checkify: Only create one init_payload. While debugging some `const` issues, I noticed a huge list of payloads included as constants. Not sure why I made this a lambda in the first place, maybe to avoid calling numpy at a module level? I could make this a cached call instead.
[ { "change_type": "MODIFY", "old_path": "jax/_src/checkify.py", "new_path": "jax/_src/checkify.py", "diff": "@@ -70,7 +70,7 @@ Payload = Union[np.ndarray, Array]\n# For now, the payload needs to be a fixed-size array: 3 int32s, used for the\n# OOB message.\n# TODO(lenamartens): Relax this fixed-size ...
Python
Apache License 2.0
google/jax
Checkify: Only create one init_payload. While debugging some `const` issues, I noticed a huge list of payloads included as constants. Not sure why I made this a lambda in the first place, maybe to avoid calling numpy at a module level? I could make this a cached call instead.
260,287
14.10.2022 08:59:05
25,200
746dd5ab1394e94a33eb204c4cbfc986db8f20b2
Add support for MANUAL lowering of ppermute
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/parallel.py", "new_path": "jax/_src/lax/parallel.py", "diff": "@@ -843,7 +843,18 @@ def _ppermute_lowering(ctx, x, *, axis_name, perm):\nfull_perm[i, j, 0] = grp[src]\nfull_perm[i, j, 1] = grp[dst]\nfull_perm = full_perm.reshape((-1, 2))\n- return...
Python
Apache License 2.0
google/jax
Add support for MANUAL lowering of ppermute PiperOrigin-RevId: 481157480
260,447
14.10.2022 16:26:58
25,200
69525cd96dc3a55258aeabcd6624ddf909595198
[sparse] Make BCSR vmappable.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcsr.py", "new_path": "jax/experimental/sparse/bcsr.py", "diff": "@@ -26,6 +26,7 @@ from jax.experimental.sparse import bcoo\nfrom jax.experimental.sparse.util import _broadcasting_vmap, _count_stored_elements, _csr_to_coo, _safe_asarra...
Python
Apache License 2.0
google/jax
[sparse] Make BCSR vmappable. PiperOrigin-RevId: 481257762
260,424
17.10.2022 21:48:38
-3,600
c2a00a0526a183a2d5eddbd69e0dd85457bffd63
Disallow checkify-of-vmap-of-while.
[ { "change_type": "MODIFY", "old_path": "jax/_src/checkify.py", "new_path": "jax/_src/checkify.py", "diff": "@@ -702,38 +702,14 @@ def ignore_error_output_jaxpr(jaxpr):\nnew_jaxpr = jaxpr.replace(outvars=jaxpr.outvars[3:])\nreturn core.ClosedJaxpr(new_jaxpr, consts)\n-def batch_error(err, code, paylo...
Python
Apache License 2.0
google/jax
Disallow checkify-of-vmap-of-while.
260,327
06.10.2022 10:19:44
-3,600
ccbc3059b0d5329584c7db7bffba25350bf2df2f
Add JAX equivalent of scipy.stats.mode
[ { "change_type": "ADD", "old_path": null, "new_path": "jax/_src/scipy/stats/_core.py", "diff": "+# Copyright 2022 The JAX Authors.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy ...
Python
Apache License 2.0
google/jax
Add JAX equivalent of scipy.stats.mode
260,335
14.10.2022 17:19:37
25,200
43098f906a60929a6498f6132253195ed2f272e2
initial commit of DevicesSharding (fka SimpleSharding) need to add tests!
[ { "change_type": "MODIFY", "old_path": "jax/_src/sharding.py", "new_path": "jax/_src/sharding.py", "diff": "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n+from __fut...
Python
Apache License 2.0
google/jax
initial commit of DevicesSharding (fka SimpleSharding) need to add tests! Co-authored-by: Yash Katariya <yashkatariya@google.com> Co-authored-by: Sharad Vikram <sharad.vikram@gmail.com>
260,335
17.10.2022 11:15:14
25,200
a1d303b081474e0ba01b1525c9270eedd6071163
[dynamic-shapes] fix nested vmap callable annotation logic
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/ad.py", "new_path": "jax/interpreters/ad.py", "diff": "@@ -42,15 +42,17 @@ def identity(x): return x\ndef _update_annotation(\nf: lu.WrappedFun,\norig_type: Optional[Tuple[Tuple[core.AbstractValue, bool], ...]],\n- nonzeros: List[bool]\n+ expl...
Python
Apache License 2.0
google/jax
[dynamic-shapes] fix nested vmap callable annotation logic
260,447
20.10.2022 10:29:48
25,200
2d563bf0a2aaf68b7d992613da4982bdd74d69b4
[sparse] Add BCSR primitive bcsr_extract.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/__init__.py", "new_path": "jax/experimental/sparse/__init__.py", "diff": "@@ -218,6 +218,8 @@ from jax.experimental.sparse.bcoo import (\n)\nfrom jax.experimental.sparse.bcsr import (\n+ bcsr_extract as bcsr_extract,\n+ bcsr_extract_p a...
Python
Apache License 2.0
google/jax
[sparse] Add BCSR primitive bcsr_extract. PiperOrigin-RevId: 482530210
260,447
20.10.2022 11:48:18
25,200
7093142f616c4fc883dda5287a93131fa07e961e
[sparse] Update the default cuSparse matvec algorithm in jaxlib.
[ { "change_type": "MODIFY", "old_path": "jaxlib/cuda/cusparse.cc", "new_path": "jaxlib/cuda/cusparse.cc", "diff": "@@ -295,7 +295,7 @@ std::pair<size_t, py::bytes> BuildCsrMatvecDescriptor(\nCudaConst beta = CudaZero(y.type);\nJAX_THROW_IF_ERROR(JAX_AS_STATUS(cusparseSpMV_bufferSize(\nhandle.get(), o...
Python
Apache License 2.0
google/jax
[sparse] Update the default cuSparse matvec algorithm in jaxlib. PiperOrigin-RevId: 482553550
260,310
20.10.2022 16:08:16
25,200
408953bc3ec9798a5d227d4f6844b898f1e2fedd
fix jax2tf readme typo
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/README.md", "new_path": "jax/experimental/jax2tf/README.md", "diff": "@@ -76,7 +76,7 @@ def f_jax(x):\nf_tf = jax2tf.convert(f_jax)\n# For example you execute f_tf eagerly with valid TensorFlow inputs:\n-f_tf(np.random(...))\n+f_tf(np.r...
Python
Apache License 2.0
google/jax
fix jax2tf readme typo PiperOrigin-RevId: 482625385
260,335
13.10.2022 16:03:44
25,200
60b236cff01de3b8bd63e7c0dd381f02962dd9d4
improve (and shorten!) pmap error messages about inconsistent axis sizes
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -44,7 +44,6 @@ from jax.tree_util import (tree_map, tree_flatten, tree_unflatten,\ntree_structure, tree_transpose, tree_leaves,\ntreedef_is_leaf, treedef_children,\nPartial, PyTreeDef, all_leaves, tr...
Python
Apache License 2.0
google/jax
improve (and shorten!) pmap error messages about inconsistent axis sizes
260,335
20.10.2022 21:56:00
25,200
f76fc010e40e21d9b8d0814b911028f38a6062fd
put back some unsafe_maps
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/batching.py", "new_path": "jax/interpreters/batching.py", "diff": "@@ -508,7 +508,7 @@ def _batch_jaxpr_axes(closed_jaxpr, axis_size, in_axes, out_axes_dest,\nf, out_batched = _batch_jaxpr_inner(f, axis_size, out_axes_dest)\nf = _batch_jaxpr_o...
Python
Apache License 2.0
google/jax
put back some unsafe_maps
260,590
21.10.2022 10:22:36
25,200
7c1bf0e7cd868a667406f323348eea18fada23b3
Fix an NameError caused by
[ { "change_type": "MODIFY", "old_path": "jax/_src/third_party/scipy/signal_helper.py", "new_path": "jax/_src/third_party/scipy/signal_helper.py", "diff": "@@ -53,8 +53,10 @@ def _triage_segments(window: Union[ArrayLike, str, Tuple[Any, ...]], nperseg: Op\nraise ValueError('window is longer than input...
Python
Apache License 2.0
google/jax
Fix an NameError caused by #12754
260,447
21.10.2022 15:05:42
25,200
e219d55c366d510316642d46eaf00cf288159f35
Roll-back because CUSPARSE_SPMV_COO_ALG2 is not available in CUDA 11.1
[ { "change_type": "MODIFY", "old_path": "jaxlib/cuda/cusparse.cc", "new_path": "jaxlib/cuda/cusparse.cc", "diff": "@@ -295,7 +295,7 @@ std::pair<size_t, py::bytes> BuildCsrMatvecDescriptor(\nCudaConst beta = CudaZero(y.type);\nJAX_THROW_IF_ERROR(JAX_AS_STATUS(cusparseSpMV_bufferSize(\nhandle.get(), o...
Python
Apache License 2.0
google/jax
Roll-back #12892 because CUSPARSE_SPMV_COO_ALG2 is not available in CUDA 11.1 PiperOrigin-RevId: 482897448
260,631
21.10.2022 19:53:28
25,200
3be5ab218a9f3b875ae5911b2f30fb4798955cac
Allow calling `initialize_cache` a second time if the path is the same.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/compilation_cache/compilation_cache.py", "new_path": "jax/experimental/compilation_cache/compilation_cache.py", "diff": "@@ -20,6 +20,7 @@ import sys\nfrom typing import List, Optional\nfrom jax.experimental.compilation_cache.gfile_cache impor...
Python
Apache License 2.0
google/jax
Allow calling `initialize_cache` a second time if the path is the same. PiperOrigin-RevId: 482945880
260,411
25.10.2022 10:06:05
-10,800
05b9c3be57ebc139e4be7677aecc36c4004937d1
[jax2tf] Fixes uses of tf.Variable in README.md
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/README.md", "new_path": "jax/experimental/jax2tf/README.md", "diff": "@@ -634,7 +634,7 @@ jax2tf.convert(jnp.sin)(3.14) # Has type float32\njax2tf.convert(jnp.sin)(np.float64(3.14)) # Has type float32\n# The following will still compute...
Python
Apache License 2.0
google/jax
[jax2tf] Fixes uses of tf.Variable in README.md
260,283
25.10.2022 19:29:32
0
63964237b2be0dc8a1a68f9b1b8a82062fff76e1
Skip two unit tests about custom sharding on libtpu DETAILS: Due to xc.register_custom_call_partitioner is not supported on libtpu, the following two tests are skipped: tests/pjit_test.py::PJitTest::test_custom_partitioner tests/debugging_primitives_test.py::InspectShardingTest::test_inspect_sharding_is_called_in_pjit
[ { "change_type": "MODIFY", "old_path": "jax/_src/test_util.py", "new_path": "jax/_src/test_util.py", "diff": "@@ -255,6 +255,9 @@ def is_device_rocm():\ndef is_device_cuda():\nreturn xla_bridge.get_backend().platform_version.startswith('cuda')\n+def is_cloud_tpu():\n+ return 'libtpu' in xla_bridge.g...
Python
Apache License 2.0
google/jax
Skip two unit tests about custom sharding on libtpu DETAILS: Due to xc.register_custom_call_partitioner is not supported on libtpu, the following two tests are skipped: tests/pjit_test.py::PJitTest::test_custom_partitioner tests/debugging_primitives_test.py::InspectShardingTest::test_inspect_sharding_is_called_in_pjit
260,335
25.10.2022 14:28:48
25,200
95eb4249bb020661b3f96171339a5abc490b2733
tweaks to DevicesSharding 1. rename DevicesSharding -> ReshapeableDevicesSharding 2. fix repr to print device order faithfully 3. respect shape of np.ndarray argument to __init__
[ { "change_type": "MODIFY", "old_path": "jax/_src/sharding.py", "new_path": "jax/_src/sharding.py", "diff": "@@ -358,7 +358,7 @@ class PmapSharding(XLACompatibleSharding):\nreturn global_shape[:sharded_dim] + global_shape[sharded_dim+1:]\n-class DevicesSharding(XLACompatibleSharding):\n+class Reshape...
Python
Apache License 2.0
google/jax
tweaks to DevicesSharding 1. rename DevicesSharding -> ReshapeableDevicesSharding 2. fix repr to print device order faithfully 3. respect shape of np.ndarray argument to __init__
260,681
25.10.2022 14:46:21
25,200
5a8f2dd8855add7fdea831f0e72e120bf0f74a8a
Add additional pjit tests using a trivial computation.
[ { "change_type": "MODIFY", "old_path": "tests/pjit_test.py", "new_path": "tests/pjit_test.py", "diff": "@@ -2502,6 +2502,36 @@ class ArrayPjitTest(jtu.JaxTestCase):\nout = pjit(lambda x: x)(arr)\nself.assertArraysEqual(out, inp_data)\n+ @jax_array(True)\n+ def test_trivial_computation_with_sharded_c...
Python
Apache License 2.0
google/jax
Add additional pjit tests using a trivial computation. PiperOrigin-RevId: 483781291
260,335
25.10.2022 15:10:55
25,200
612bb175083dbc476c114331fb58be76a6ae84c0
hopefully fix pjit bug
[ { "change_type": "MODIFY", "old_path": "jax/experimental/pjit.py", "new_path": "jax/experimental/pjit.py", "diff": "@@ -1245,10 +1245,18 @@ def _pjit_partial_eval(trace, *in_tracers,\n_allow_propagation_to_outputs=True,\n_allow_compile_replicated=False)\nda = compiled._device_assignment\n- _, out_op...
Python
Apache License 2.0
google/jax
hopefully fix pjit bug Co-authored-by: Yash Katariya <yashkatariya@google.com>
260,287
26.10.2022 15:44:06
0
6e43ce363ee49bd485ace57acb1a149c78ffa436
Remove a TODO from the xmap tutorial xeinsum is already powerful enough to support the example.
[ { "change_type": "MODIFY", "old_path": "docs/notebooks/xmap_tutorial.ipynb", "new_path": "docs/notebooks/xmap_tutorial.ipynb", "diff": "},\n\"outputs\": [],\n\"source\": [\n- \"if False: # TODO: Implement all necessary cases in xeinsum\\n\",\n\"def named_batch_matrix_single_matrix(\\n\",\n\" x: f32[...
Python
Apache License 2.0
google/jax
Remove a TODO from the xmap tutorial xeinsum is already powerful enough to support the example.
260,631
27.10.2022 09:20:17
25,200
978dcde8d6b17026198ab6f023aa332a0b354203
MHLO Pretty Print - Enhance type printing for CopyOp, ClampOp, CstrReshapeOp, ComputeReshapeShapeOp, SelectOp. Based on:
[ { "change_type": "MODIFY", "old_path": "tests/filecheck/array.filecheck.py", "new_path": "tests/filecheck/array.filecheck.py", "diff": "@@ -77,9 +77,7 @@ def main(_):\n# CHECK-LABEL: TEST: select bool[2,7] int32[2,7] int32[2,7]\n# CHECK: mhlo.select\n- # CHECK-SAME: tensor<2x7xi1>\n- # CHECK-SAME: t...
Python
Apache License 2.0
google/jax
MHLO Pretty Print - Enhance type printing for CopyOp, ClampOp, CstrReshapeOp, ComputeReshapeShapeOp, SelectOp. Based on: https://github.com/openxla/stablehlo/pull/37 PiperOrigin-RevId: 484271777
260,294
20.10.2022 15:13:24
0
e84a7e25b2010cb39c931ea9ecd05b83f03a9087
[ROCm]: Enable/update multiprocess gpu tests for ROCm
[ { "change_type": "MODIFY", "old_path": "tests/multiprocess_gpu_test.py", "new_path": "tests/multiprocess_gpu_test.py", "diff": "@@ -104,6 +104,10 @@ class MultiProcessGpuTest(jtu.JaxTestCase):\nenv[\"JAX_PORT\"] = str(port)\nenv[\"NUM_TASKS\"] = str(num_tasks)\nenv[\"TASK\"] = str(task)\n+ if jtu.is...
Python
Apache License 2.0
google/jax
[ROCm]: Enable/update multiprocess gpu tests for ROCm
260,287
26.10.2022 15:30:11
0
0fce5be556a5344f7caec69d1d2df86f522d0989
Improve undefined axis checks Previously we checked for out axes being a superset of the defined axes, but that's just not the right relation. In particular, out_axes of {'a'} are not a superset of defined axes {'b'}, but axis 'a' is undefined. The correct check is to verify emptiness of their difference.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/maps.py", "new_path": "jax/experimental/maps.py", "diff": "@@ -490,6 +490,16 @@ def xmap(fun: Callable,\nreturn name\nreturn r\n+ axes_with_resources = set(axis_resources.keys())\n+ if axes_with_resources - defined_names:\n+ raise ValueError(f...
Python
Apache License 2.0
google/jax
Improve undefined axis checks Previously we checked for out axes being a superset of the defined axes, but that's just not the right relation. In particular, out_axes of {'a'} are not a superset of defined axes {'b'}, but axis 'a' is undefined. The correct check is to verify emptiness of their difference.
260,510
27.10.2022 12:47:30
25,200
3e38675ac4159092396dafdd64eae5a7b636fea0
Update debugging_primitives_test to not use nontrivial floating point text comparisons
[ { "change_type": "MODIFY", "old_path": "tests/debugging_primitives_test.py", "new_path": "tests/debugging_primitives_test.py", "diff": "@@ -261,7 +261,7 @@ class DebugPrintTransformationTest(jtu.JaxTestCase):\nreturn x, t\ndef f(x):\n- x = jnp.sin(x)\n+ x = jnp.square(x)\nx = print_tangent(x)\nretur...
Python
Apache License 2.0
google/jax
Update debugging_primitives_test to not use nontrivial floating point text comparisons PiperOrigin-RevId: 484325096
260,681
28.10.2022 10:34:28
25,200
54967e9aba30fbaf39eb16b72ded488a957c11c3
Improve effect support on internal backends.
[ { "change_type": "MODIFY", "old_path": "jax/interpreters/pxla.py", "new_path": "jax/interpreters/pxla.py", "diff": "@@ -1631,7 +1631,8 @@ class PmapExecutable(stages.XlaExecutable):\nif hasattr(pci.backend, \"compile_replicated\"):\nreturn _compile_replicated_pmap_executable_from_hlo(\nxla_computati...
Python
Apache License 2.0
google/jax
Improve effect support on internal backends. PiperOrigin-RevId: 484566725
260,294
16.08.2022 18:44:36
0
4370b3385f53fbfe1fa1a5ac80087b51426032c2
[ROCm] Add dlpack backend support Depends on the Tensorflow commit included in this PR
[ { "change_type": "MODIFY", "old_path": "jax/_src/dlpack.py", "new_path": "jax/_src/dlpack.py", "diff": "@@ -64,6 +64,14 @@ def from_dlpack(dlpack):\ngpu_backend = xla_bridge.get_backend(\"cuda\")\nexcept RuntimeError:\ngpu_backend = None\n+\n+ # Try ROCm if CUDA backend not found\n+ if gpu_backend i...
Python
Apache License 2.0
google/jax
[ROCm] Add dlpack backend support Depends on the Tensorflow commit included in this PR https://github.com/tensorflow/tensorflow/pull/57640
260,294
16.08.2022 18:45:22
0
96eaf1d7d168a30bec5f33797c7d0de692b90425
[ROCM]: Enable more array interoperability tests
[ { "change_type": "MODIFY", "old_path": "tests/array_interoperability_test.py", "new_path": "tests/array_interoperability_test.py", "diff": "@@ -73,7 +73,6 @@ class DLPackTest(jtu.JaxTestCase):\ntake_ownership=[False, True],\ngpu=[False, True],\n)\n- @jtu.skip_on_devices(\"rocm\") # TODO(sharadmv,pha...
Python
Apache License 2.0
google/jax
[ROCM]: Enable more array interoperability tests
260,335
26.10.2022 14:14:58
25,200
6ebf44a68160af0c6df3e086e822055f67fd7f45
make leak checker errors explain why objects are alive
[ { "change_type": "MODIFY", "old_path": "jax/core.py", "new_path": "jax/core.py", "diff": "@@ -20,6 +20,7 @@ from dataclasses import dataclass\nimport functools\nfrom functools import partial, partialmethod, total_ordering\nimport gc\n+import inspect\nimport itertools as it\nimport operator\nfrom ope...
Python
Apache License 2.0
google/jax
make leak checker errors explain why objects are alive Co-authored-by: Qiao Zhang <zhangqiaorjc@google.com> Co-authored-by: Roy Frostig <frostig@google.com>
260,335
28.10.2022 14:39:51
25,200
020353478b03dc95993cd7e6d8e36786037cc2d5
fix ci failure by skipping tests on gpu
[ { "change_type": "MODIFY", "old_path": "tests/array_test.py", "new_path": "tests/array_test.py", "diff": "@@ -786,6 +786,7 @@ class RngShardingTest(jtu.JaxTestCase):\n# tests that the PRNGs are automatically sharded as expected\n@parameterized.named_parameters((\"3\", 3), (\"4\", 4), (\"5\", 5))\n+ ...
Python
Apache License 2.0
google/jax
fix ci failure by skipping tests on gpu
260,335
28.10.2022 14:39:00
25,200
213d2c8592e1bd2bab5bda23a2d7ea94792bb87e
integrate new (partitionable, count-space-exhaustive) counts generation
[ { "change_type": "MODIFY", "old_path": "jax/_src/config.py", "new_path": "jax/_src/config.py", "diff": "@@ -742,11 +742,7 @@ threefry_partitionable = config.define_bool_state(\n'standard jax.random pseudo-random number generation may result '\n'in extraneous communication and/or redundant distribute...
Python
Apache License 2.0
google/jax
integrate new (partitionable, count-space-exhaustive) counts generation
260,447
01.11.2022 11:45:12
25,200
d207194c3c39c519485f85d44df1f5ea61345c1f
[sparse] fix a typo in n_sparse calculation.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/sparse/bcoo.py", "new_path": "jax/experimental/sparse/bcoo.py", "diff": "@@ -350,7 +350,7 @@ def _bcoo_fromdense_jvp(primals, tangents, *, nse, n_batch, n_dense, index_dtype\ndef _bcoo_fromdense_transpose(ct, M, *, nse, n_batch, n_dense, index...
Python
Apache License 2.0
google/jax
[sparse] fix a typo in n_sparse calculation. PiperOrigin-RevId: 485376576
260,681
01.11.2022 14:32:27
25,200
bb0702842b8944ddd97a7e61250905ac2b777764
Make device_put accept a prefix tree with Sharding leaves as the second argument
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -2831,14 +2831,15 @@ def make_jaxpr(fun: Callable,\ndef device_put(\n- x, device: Optional[Union[xc.Device, jax.sharding.Sharding]] = None):\n+ x, device: Union[None, xc.Device, jax.sharding.Sharding...
Python
Apache License 2.0
google/jax
Make device_put accept a prefix tree with Sharding leaves as the second argument PiperOrigin-RevId: 485419880
260,510
01.11.2022 13:00:41
25,200
3bbd5f3028629c56c598d514091f7bc16c12d145
Add colors to sharding visualization
[ { "change_type": "MODIFY", "old_path": "jax/_src/debugging.py", "new_path": "jax/_src/debugging.py", "diff": "@@ -18,7 +18,7 @@ import string\nimport sys\nimport weakref\n-from typing import Any, Dict, Callable, Sequence, Set, Tuple, Union\n+from typing import Any, Dict, Callable, Optional, Sequence...
Python
Apache License 2.0
google/jax
Add colors to sharding visualization
260,287
02.11.2022 08:26:30
25,200
94ba43bfba8606a8e99d122c643c7008ead10123
Don't assume that vmap doesn't introduce constants Because it doesn't hold e.g. for the batcher of ppermute.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/maps.py", "new_path": "jax/experimental/maps.py", "diff": "@@ -1366,7 +1366,7 @@ def _xmap_lowering_rule_replica(ctx, *in_nodes,\n# them!\nvectorized_jaxpr, out_avals, consts = pe.trace_to_jaxpr_dynamic(f, local_avals)\n_check_out_avals_vs_out...
Python
Apache License 2.0
google/jax
Don't assume that vmap doesn't introduce constants Because it doesn't hold e.g. for the batcher of ppermute. PiperOrigin-RevId: 485601414
260,631
02.11.2022 12:01:04
25,200
b467feb250c8920850118ebec19e6eff4634d5f9
[JAX] Add RunTimeError to host_local_array_to_global_array
[ { "change_type": "MODIFY", "old_path": "jax/experimental/multihost_utils.py", "new_path": "jax/experimental/multihost_utils.py", "diff": "@@ -258,7 +258,17 @@ def host_local_array_to_global_array(local_inputs, global_mesh, pspecs):\nlocal_inputs: A Pytree of host local values.\nglobal_mesh: The glob...
Python
Apache License 2.0
google/jax
[JAX] Add RunTimeError to host_local_array_to_global_array PiperOrigin-RevId: 485657586
260,510
02.11.2022 16:07:22
25,200
e1af93a9ba6e5e746257e360518f73cf8b60a116
Enable state effect in `cond_p` (except in `grad` and `vmap`)
[ { "change_type": "MODIFY", "old_path": "jax/_src/lax/control_flow/conditionals.py", "new_path": "jax/_src/lax/control_flow/conditionals.py", "diff": "@@ -35,6 +35,7 @@ from jax._src import ad_util\nfrom jax._src import dtypes\nfrom jax._src import source_info_util\nfrom jax._src import util\n+from j...
Python
Apache License 2.0
google/jax
Enable state effect in `cond_p` (except in `grad` and `vmap`) PiperOrigin-RevId: 485719926
260,287
03.11.2022 05:33:36
25,200
b0621e300c615ee139f181d21e08cd8eb806ec3b
Fix the vmap rule for remat_p It treated constants like args, but failed to convert_constvars_jaxpr to adjust the calling convention.
[ { "change_type": "MODIFY", "old_path": "jax/_src/ad_checkpoint.py", "new_path": "jax/_src/ad_checkpoint.py", "diff": "@@ -569,6 +569,8 @@ def remat_vmap(axis_size, axis_name, main_type, args, dims, *, jaxpr, **params):\n[batching.zero_if_mapped] * len(jaxpr.outvars),\naxis_name=axis_name, main_type=...
Python
Apache License 2.0
google/jax
Fix the vmap rule for remat_p It treated constants like args, but failed to convert_constvars_jaxpr to adjust the calling convention. PiperOrigin-RevId: 485847686
260,674
03.11.2022 05:54:38
25,200
91d134d65b39c5570800fd788c3d41fac87ccebf
Remove unsupported type combinations from dot primitive tests.
[ { "change_type": "MODIFY", "old_path": "jax/experimental/jax2tf/tests/primitive_harness.py", "new_path": "jax/experimental/jax2tf/tests/primitive_harness.py", "diff": "@@ -2737,6 +2737,14 @@ def _make_dot_general_harness(name,\nsuffix += f\"_precision={precision}\"\nif preferred_element_type is not ...
Python
Apache License 2.0
google/jax
Remove unsupported type combinations from dot primitive tests. PiperOrigin-RevId: 485850678
260,335
03.11.2022 15:10:03
25,200
40330079794ba0b3f4588dbaba70676f1fd1ea38
improve error when f_vjp gets more than one argument fixes
[ { "change_type": "MODIFY", "old_path": "jax/_src/api.py", "new_path": "jax/_src/api.py", "diff": "@@ -2531,8 +2531,30 @@ def _lift_linearized(jaxpr, primal_avals, io_tree, out_pvals, consts, *py_args):\nreturn apply_flat_fun(fun, io_tree, *py_args)\n-def _vjp_pullback_wrapper(cotangent_dtypes, cotan...
Python
Apache License 2.0
google/jax
improve error when f_vjp gets more than one argument fixes #13099