Document mirror and proxy defaults

This commit is contained in:
Codex
2026-06-24 23:10:52 +08:00
parent 65153eb4f6
commit 03d6326e26
2 changed files with 18 additions and 5 deletions

View File

@@ -5,10 +5,15 @@ Use this skill when the user wants to run or modify the TI coding-agent SFT prob
## Repository Contract
- Work in `/ssd/workspace/yi/ti_coding_agent_probe` on B300 unless the user says otherwise.
- Use the B300 proxy for all network access:
- Use the B300/g0049 machine-specific proxy for all network access:
- `http_proxy=http://100.72.0.101:8888`
- `https_proxy=http://100.72.0.101:8888`
- `HF_ENDPOINT=https://hf-mirror.com`
- The default package mirrors are domestic China mirrors:
- `PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/`
- `UV_DEFAULT_INDEX=https://mirrors.aliyun.com/pypi/simple/`
- `UV_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/`
- When moving this repo to another machine, first verify or replace the proxy variables. The proxy values above are not portable cluster-wide defaults.
- Do not install Python packages globally. Use the repository-local `.venv` created by `scripts/setup_env.sh`.
- `scripts/setup_env.sh` installs `uv` inside `.venv`, then installs SWIFT from the submodule using SWIFT's documented source-install path: `uv pip install -e third_party/modelscope-swift --torch-backend=auto`.
- Default setup adds training extras: `deepspeed<0.19`, `liger-kernel`, `tensorboard`, and `nvitop`. Disable with `INSTALL_TRAINING_EXTRAS=0`.