You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`src/dependencies/requirements/base_requirements/cuda12-requirements.txt`) or the post-training files (`src/dependencies/requirements/base_requirements/tpu-post-train-requirements.txt`).
40
40
2.**Find the JAX build commit hash**: The dependency generation process is
41
41
pinned to a specific nightly build of JAX. You need to find the commit hash
42
42
for the desired JAX build.
43
-
3.**Generate the requirement files**: Run the `seed-env` CLI tool to generate
44
-
new, fully-pinned requirements files based on your changes.
43
+
3.**Generate the requirement files**: Run `src/dependencies/scripts/generate_requirements.sh`,
44
+
which internally invokes `seed-env` to produce fully-pinned requirements files.
45
45
4.**Verify the new dependencies**: Test the new dependencies to ensure the
46
46
project installs and runs correctly.
47
47
@@ -66,17 +66,17 @@ if you want to build `seed-env` from source.
66
66
67
67
## Step 1: Modify base requirements
68
68
69
-
Update the desired dependencies in `src/dependencies/requirements/base_requirements/requirements.txt` or the hardware-specific pre-training files (`src/dependencies/requirements/base_requirements/tpu-requirements.txt`, `src/dependencies/requirements/base_requirements/cuda12-requirements.txt`).
69
+
Update the desired dependencies in `src/dependencies/requirements/base_requirements/requirements.txt` or the hardware-specific pre-training files (`src/dependencies/requirements/base_requirements/tpu-requirements.txt`, `src/dependencies/requirements/base_requirements/cuda12-requirements.txt`) or the post-training files (`src/dependencies/requirements/base_requirements/tpu-post-train-requirements.txt`).
70
70
71
71
## Step 2: Find the JAX build commit hash
72
72
73
73
The dependency generation process is pinned to a specific nightly build of JAX. You need to find the commit hash for the desired JAX build from [JAX `build/` folder](https://github.com/jax-ml/jax/commits/main/build) and copy its full commit hash.
74
74
75
75
## Step 3: Generate the requirements files
76
76
77
-
Next, run the `seed-env` CLI to generate the new requirements files. You will
78
-
need to do this separately for the TPU and GPU environments. The generated files
79
-
will be placed in a directory specified by `--output-dir`.
77
+
Next, run `generate_requirements.sh`to generate the new requirements files. This
78
+
script wraps the `seed-env` CLI and handles exporting the lock, and applying any
79
+
overrides. You will need to do this separately for the TPU and GPU environments.
80
80
81
81
> **Note:** The current `src/dependencies/requirements/generated_requirements/` in the repository were generated using JAX build commit hash: [e0d2967b50abbefd651d563dbcd7afbcb963d08c](https://github.com/jax-ml/jax/commit/e0d2967b50abbefd651d563dbcd7afbcb963d08c).
82
82
@@ -85,35 +85,46 @@ will be placed in a directory specified by `--output-dir`.
85
85
If you have made changes to TPU pre-training dependencies in `src/dependencies/requirements/base_requirements/tpu-requirements.txt`, you need to regenerate the pinned pre-training requirements in `generated_requirements/` directory. Run the following command, replacing `<jax-build-commit-hash>` with the hash you copied in the previous step:
If you have made changes to the post-training dependencies in `src/dependencies/requirements/base_requirements/tpu-post-train-requirements.txt`, you need to regenerate the pinned post-training requirements in `generated_requirements/` directory. Run the following command, replacing `<jax-build-commit-hash>` with the hash you copied in the previous step:
If you have made changes to the GPU pre-training dependencies in `src/dependencies/requirements/base_requirements/cuda12-requirements.txt`, you need to regenerate the pinned pre-training requirements in `generated_requirements/` directory. Run the following command, replacing `<jax-build-commit-hash>` with the hash you copied in the previous step:
0 commit comments