[tinker][SkyRL] Add sample and renderer API to new inference client #555
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SkyRL-CPU | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'ci/**' | |
| - 'skyrl/**' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - '.github/workflows/cpu_skyrl.yaml' | |
| pull_request: | |
| paths: | |
| - 'ci/**' | |
| - 'skyrl/**' | |
| - 'tests/**' | |
| - 'pyproject.toml' | |
| - '.github/workflows/cpu_skyrl.yaml' | |
| workflow_dispatch: | |
| permissions: | |
| checks: write # for status checks to appear | |
| contents: read | |
| # Cancel runs for previous commits on the same branch | |
| concurrency: | |
| group: skyrl-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| skyrl_tests: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: . | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| - name: Run lint | |
| run: | | |
| uvx ruff check | |
| - name: Run pytest | |
| run: | | |
| # Note: Qwen 3.5 currently needs transformers v5, but we are not ready to fully migrate to it yet | |
| uv run --extra tinker --extra jax --extra dev --with transformers==5.2.0 pytest --forked -s tests/tx/models/test_qwen3_5.py | |
| uv run --extra tinker --extra jax --extra dev pytest --forked -s tests --ignore=tests/tx/gpu --ignore=tests/train --ignore=tests/backends/skyrl_train --ignore=tests/tx/models/test_qwen3_5.py | |
| - name: Run engine benchmarks | |
| run: | | |
| uv run --extra tinker --extra dev python skyrl/benchmarks/benchmark_engine.py --base-model trl-internal-testing/tiny-Qwen3ForCausalLM --backend-config '{"max_lora_adapters": 3, "max_lora_rank": 1}' --num-warmup-steps 1 --num-steps 1 --num-requests 1 --seq-len 8 --sample-max-tokens 16 | |