Skip to content

Conversation

@ChuanLi1101
Copy link
Collaborator

@ChuanLi1101 ChuanLi1101 commented Dec 9, 2025

Summary

This PR adds a basic unit test framework to the ATOM project.

Changes

  • Added tests/ directory with pytest-based unit tests
  • Added tests for SamplingParams dataclass
  • Added tests for CompilationConfig and CUDAGraphMode
  • Updated pyproject.toml with pytest dev dependencies and configuration

Test Coverage

  • test_sampling_params.py: Tests default values, custom values, and equality
  • test_config.py: Tests CUDAGraphMode enum methods and CompilationConfig validation

How to Run

pip install pytest
pytest tests/ -v## Notes

  • Tests are pure Python and do not require GPU hardware
  • Compatible with both NVIDIA CUDA and AMD ROCm environments

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.

2 participants