tensorflow-alpa icon indicating copy to clipboard operation
tensorflow-alpa copied to clipboard

Rebase to tensorflow mainline

Open merrymercy opened this issue 4 years ago • 4 comments
trafficstars

To avoid the divergence of our codebase and tensorflow/jax mainline, we want to rebase our repos to the tensorflow/jax mainline regularly. This brings several advantages:

  1. Get the latest updates from the mainline. Google is actively improving Jax and XLA GPU backend.
  2. Make future maintenance easier. If we do not sync with the mainline for a long time, we will never be able to sync with the mainline again due to too many conflicts.

I plan to rebase this repo once every two to three months following the tensorflow/jax releases. Note that rebases will rewrite the history of our repos, so we have to sync our local repos carefully after rebase.

Rebase instructions

https://docs.google.com/document/d/1_4X2Z4ewf2c9PcR2Ug4VpKNJxqbrtkhnHiQUt3yX2TI/edit?usp=sharing

Sync local repos

Ask @merrymercy for help

merrymercy avatar May 15 '21 09:05 merrymercy

Rebase History

  • Jul. 19, 2021
  • Sept. 12, 2021
  • Dec. 25, 2021 3fb790c
  • Apr. 8, 2022 394a6cc
  • Jul. 27, 2022 tf: b835ad5009f42980328d973161b362860bcfa451, jax:1a7c8831a8a37f76acc899bf6d6ef510349af044
  • Nov. 20, 2022 tf: 736d0db2217bae3585857045d76e2, jax: 41417eed6f3770e05aeb1d2500967c5314d5de08

merrymercy avatar Jan 03 '22 00:01 merrymercy

@merrymercy jax had switched to use OpenXLA repo instead of TensorFlow: https://github.com/google/jax/commit/172a831219aa7d3524c0c8b5779dc29597a05810

GHGmc2 avatar Mar 19 '23 10:03 GHGmc2

@GHGmc2 Thanks for letting me know. We should follow this change. The maintenance team will discuss how to switch to OpenXLA.

merrymercy avatar Mar 21 '23 17:03 merrymercy

@merrymercy Thanks, I noticed that auto_sharding had been upstreamed to OpenXLA: https://github.com/openxla/xla/tree/main/xla/hlo/experimental/auto_sharding

Will the new code base reuse this part?

GHGmc2 avatar Mar 22 '23 02:03 GHGmc2