README.md
Building a Type-Aware Package with Packaging Utilities
Introduction:
This exercise involves creating a Python package that utilizes type hints as per PEP 695 standards and modern packaging techniques such as poetry. The primary goal is to ensure robustness and maintainability through static typing, clear module definitions, and effective management of dependencies.
Requirements for the package:
1. Define an entry point for command line interface (CLI).
2. Incorporate type annotations throughout the codebase.
3. Structure setup configuration using poetry for pip installation.
Instructions:
Follow these steps to set up your environment and run local installations:
```bash
# Initialize a new project with Poetry
poetry new my_package
cd my_package
# Add required dependencies via poetry if necessary
poetry add <dependency>
# Install the package in editable mode (to test locally)
poetry install --no-root
# Verify that 'my_package-cli' is callable after successful installation.
```
Acceptance Criteria:
- Package must compile and run without errors on `pip install`.
- The created CLI should function according to specified requirements.
Checklist for Review:
- Ensure type hints are correctly implemented as per PEP 695 guidelines.
- Test the package under different usage scenarios using pytest or a similar test framework.
results.log
--- ATTEMPT: initial (code=0) ---
--- STDOUT ---
--- RUNTIME PROFILE ---
Device policy: gpu_preferred
Torch: 2.11.0+rocm7.1
Accelerator backend: rocm
Torch CUDA build: None
Torch HIP build: 7.1.52802
CUDA available: True
CUDA device count: 1
CUDA device[0]: AMD Radeon 890M Graphics
Accelerator memory total: 73728.0 MB
Accelerator memory used: 16880.2 MB
Recommended autocast dtype: bf16
Recommended DataLoader pin_memory: True
Recommended DataLoader num_workers: 12
Recommended starting batch size: 64
Recommended CPU threads: 24
/dev/kfd present: True
VRAM_USAGE: 256.00MB
TOKENS_PER_SEC: 2611553.30
RESULT: Benchmark failed with unoptimized performance.
--- STDERR ---
--- HUMAN SUMMARY (LAYMAN) ---
Result: The test completed successfully.
Benchmark script conclusion: RESULT: Benchmark failed with unoptimized performance.