Repository navigation
infra: CPU CI for optimus-rm (#176) - #178
Merged
Merged
Conversation
Runs opt_prime/tests (pytest) and the native_kv unittest suite on CPU for pushes and PRs to optimus-rm, with torch 2.10.0 (CPU wheel) and transformers 5.1.0. pyproject now lists the modules imported at module level (torch, transformers, numpy, psutil) and a test extra. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
There is no CI (
.github/does not exist), although the README asks for the examples to pass before a merge, andpyproject.tomldeclares no base dependencies even thoughpsutilandnumpyare imported at module level.Changes
.github/workflows/cpu-tests.yml: on pushes and PRs tooptimus-rm, install torch 2.10.0 (CPU wheel),opt_prime[test], transformers 5.1.0 and triton, then runpytest -q testsinopt_prime/andunittest discoverinexamples/pd/native_kv.opt_prime/pyproject.toml: basedependencies = [torch, transformers, numpy, psutil](unpinned, so the README's version matrix still applies) and atestextra (pytest, requests, pyzmq, safetensors, scipy).Verification
Reproduced the CI recipe in a fresh venv on Python 3.10 with no GPU visible (
CUDA_VISIBLE_DEVICES=""), without furiosa_torch:pip install torch==2.10.0 --index-url https://download.pytorch.org/whl/cpu && pip install -e "opt_prime[test]" "transformers==5.1.0" tritonpytest -q tests(inopt_prime/): 391 passed, 28 skipped, 135 subtests passed, 0 failed, 186 s.unittest discover -s opt_prime/examples/pd/native_kv -p 'test_*.py': 51 tests OK (17 skipped need CUDA).test_gpu_activation, so the workflow installs it.The 6
test_backward_through_offloaded_expertsfailures seen on the RNGD+A100 host come from furiosa_torch autoloading and do not occur here.Compatibility and limits
Related Issue
Closes #176
🤖 Generated with Claude Code