Skip to content

infra: CPU CI for optimus-rm (#176) - #178

Merged
gspark-etri merged 1 commit into
optimus-rmfrom
infra/176-cpu-ci
Oct 23, 2026
Merged

gspark-etri merged 1 commit into
optimus-rmfrom
infra/176-cpu-ci

Conversation

@gspark-etri

Copy link
Copy Markdown
Collaborator

Background

There is no CI (.github/ does not exist), although the README asks for the examples to pass before a merge, and pyproject.toml declares no base dependencies even though psutil and numpy are imported at module level.

Changes

  • .github/workflows/cpu-tests.yml: on pushes and PRs to optimus-rm, install torch 2.10.0 (CPU wheel), opt_prime[test], transformers 5.1.0 and triton, then run pytest -q tests in opt_prime/ and unittest discover in examples/pd/native_kv.
  • opt_prime/pyproject.toml: base dependencies = [torch, transformers, numpy, psutil] (unpinned, so the README's version matrix still applies) and a test extra (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" triton
  • pytest -q tests (in opt_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).
  • Without triton, the native_kv suite fails to import test_gpu_activation, so the workflow installs it.

The 6 test_backward_through_offloaded_experts failures seen on the RNGD+A100 host come from furiosa_torch autoloading and do not occur here.

Compatibility and limits

  • CPU only: GPU and NPU paths stay skipped; a self-hosted GPU/NPU job is a later step.
  • Tests one configuration (torch 2.10.0, transformers 5.1.0); the transformers 4.x configuration in the README is not covered yet.

Related Issue

Closes #176

🤖 Generated with Claude Code

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>
@gspark-etri
gspark-etri merged commit 10ad620 into optimus-rm Oct 23, 2026
1 check passed
@gspark-etri
gspark-etri deleted the infra/176-cpu-ci branch October 23, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant