-
Notifications
You must be signed in to change notification settings - Fork 2
chore: optimize uv configuration #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
066ca04
e9525e7
804f551
56900e2
e92eec7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,19 +22,22 @@ spec: | |
| - | | ||
| set -ex | ||
|
|
||
| # 1. 准备 SSH 环境 (Secret 挂载通常是只读的,所以需要 cp 到家目录) | ||
| # 1. SSH setup (Secret mount is read-only, copy to home) | ||
| mkdir -p ~/.ssh | ||
| cp /etc/ssh-key/id_ed25519 ~/.ssh/id_ed25519 | ||
| chmod 600 ~/.ssh/id_ed25519 | ||
|
|
||
| # 2. 扫描 GitHub 指纹避免交互式确认 | ||
| # 2. Scan GitHub fingerprint to avoid interactive confirmation | ||
| ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
|
||
| # pip install -U --pre jax jaxlib libtpu requests -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/ -f https://storage.googleapis.com/jax-releases/libtpu_releases.html | ||
| # 3. Install uv | ||
| pip install uv | ||
|
|
||
| # git clone https://github.com/primatrix/ant-pretrain.git | ||
| # cd ant-pretrain && git checkout feat/kda-with-kernel | ||
| # 4. Clone and setup project | ||
| git clone git@github.com:primatrix/pallas-kernel.git ~/pallas-kernel | ||
| cd ~/pallas-kernel | ||
| uv sync --extra tpu || pip install -e '.[tpu]' | ||
|
Comment on lines
+33
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider adding The 🐛 Proposed fix to use uv run for the verification command # 4. Clone and setup project
git clone git@github.com:primatrix/pallas-kernel.git ~/pallas-kernel
cd ~/pallas-kernel
uv sync --extra tpu || pip install -e '.[tpu]'
- python -c 'import jax; print("Total TPU devices (cores):", jax.device_count())'
+ uv run python -c 'import jax; print("Total TPU devices (cores):", jax.device_count())'🤖 Prompt for AI Agents |
||
|
|
||
| python -c 'import jax; print("Total TPU devices (cores):", jax.device_count())' | ||
0xaskr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| sleep infinity | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.