|
15 | 15 | """Installs extra dependencies from a requirements file using uv. |
16 | 16 |
|
17 | 17 | This script is designed to be run to install dependencies specified in |
18 | | -'extra_post_train_deps_from_github.txt', which is expected to be in the same directory. |
| 18 | +'post_train_deps.txt', which is expected to be in the same directory. |
19 | 19 | It first ensures 'uv' is installed and then uses it to install the packages |
20 | 20 | listed in the requirements file. |
21 | 21 | """ |
|
28 | 28 |
|
29 | 29 | def main(): |
30 | 30 | """ |
31 | | - Installs extra dependencies specified in extra_post_train_deps_from_github.txt using uv. |
| 31 | + Installs extra dependencies specified in post_train_deps.txt using uv. |
32 | 32 |
|
33 | | - This script looks for 'extra_post_train_deps_from_github.txt' relative to its own location. |
| 33 | + This script looks for 'post_train_deps.txt' relative to its own location. |
34 | 34 | It executes 'uv pip install -r <path_to_extra_deps.txt> --resolution=lowest'. |
35 | 35 | """ |
36 | 36 | script_dir = Path(__file__).resolve().parent |
37 | 37 |
|
38 | 38 | os.environ["VLLM_TARGET_DEVICE"] = "tpu" |
39 | 39 |
|
40 | | - # Adjust this path if your extra_post_train_deps_from_github.txt is in a different location, |
41 | | - # e.g., script_dir / "data" / "extra_post_train_deps_from_github.txt" |
42 | | - extra_deps_file = script_dir / "extra_post_train_deps_from_github.txt" |
| 40 | + # Adjust this path if your post_train_deps.txt is in a different location, |
| 41 | + # e.g., script_dir / "data" / "post_train_deps.txt" |
| 42 | + extra_deps_file = script_dir / "post_train_deps.txt" |
43 | 43 |
|
44 | 44 | if not extra_deps_file.exists(): |
45 | 45 | print(f"Error: '{extra_deps_file}' not found.") |
46 | | - print("Please ensure 'extra_post_train_deps_from_github.txt' is in the correct location relative to the script.") |
| 46 | + print("Please ensure 'post_train_deps.txt' is in the correct location relative to the script.") |
47 | 47 | sys.exit(1) |
48 | 48 | # Check if 'uv' is available in the environment |
49 | 49 | try: |
|
0 commit comments