mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
Merge branch 'main' into uv-improvements
This commit is contained in:
2
.github/workflows/basic-tests-linux-uv.yml
vendored
2
.github/workflows/basic-tests-linux-uv.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
- name: Set up Python (uv)
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install uv and dependencies
|
||||
shell: bash
|
||||
|
||||
3
.github/workflows/basic-tests-macos-uv.yml
vendored
3
.github/workflows/basic-tests-macos-uv.yml
vendored
@@ -33,13 +33,14 @@ jobs:
|
||||
- name: Set up Python (uv)
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install uv and dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv sync --dev --python 3.11
|
||||
uv python install 3.11
|
||||
uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
|
||||
uv add pytest-ruff nbval
|
||||
|
||||
|
||||
@@ -31,12 +31,12 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv python install 3.10
|
||||
uv python install 3.11
|
||||
uv add . --dev
|
||||
uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
|
||||
uv add torch==${{ matrix.pytorch-version }}
|
||||
|
||||
2
.github/workflows/basic-tests-pip.yml
vendored
2
.github/workflows/basic-tests-pip.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Create Virtual Environment and Install Dependencies
|
||||
run: |
|
||||
|
||||
4
.github/workflows/basic-tests-pytorch-rc.yml
vendored
4
.github/workflows/basic-tests-pytorch-rc.yml
vendored
@@ -27,12 +27,12 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.10"
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv python install 3.10
|
||||
uv python install 3.11
|
||||
uv add . --dev
|
||||
uv pip install -r ch05/07_gpt_to_llama/tests/test-requirements-extra.txt
|
||||
uv add pytest-ruff nbval
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
pip install --upgrade pip
|
||||
pip install uv
|
||||
uv venv --python=python3.10
|
||||
uv venv --python=python3.11
|
||||
source .venv/Scripts/activate
|
||||
pip install -r requirements.txt # because of dependency issue on Windows when using `uv pip`
|
||||
pip install tensorflow-io-gcs-filesystem==0.31.0 # Explicit for Windows
|
||||
|
||||
4
.github/workflows/check-links.yml
vendored
4
.github/workflows/check-links.yml
vendored
@@ -18,12 +18,12 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv python install 3.10
|
||||
uv python install 3.11
|
||||
uv add . --dev
|
||||
uv add pytest-ruff pytest-check-links
|
||||
# Current version of retry doesn't work well if there are broken non-URL links
|
||||
|
||||
4
.github/workflows/check-spelling-errors.yml
vendored
4
.github/workflows/check-spelling-errors.yml
vendored
@@ -18,12 +18,12 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install codespell
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv python install 3.10
|
||||
uv python install 3.11
|
||||
uv add . --dev
|
||||
uv add codespell
|
||||
|
||||
|
||||
4
.github/workflows/pep8-linter.yml
vendored
4
.github/workflows/pep8-linter.yml
vendored
@@ -14,11 +14,11 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.10'
|
||||
python-version: '3.11'
|
||||
- name: Install ruff (a faster flake 8 equivalent)
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
uv python install 3.10
|
||||
uv python install 3.11
|
||||
uv add . --dev
|
||||
uv add ruff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user