Skip to content

Conversation

jonathan343
Copy link
Contributor

@jonathan343 jonathan343 commented Oct 14, 2025

Summary

Rough draft for high cpu usage fix. Need to add tests and go through another self review. But the code in this PR successfully reduces CPU usage without any change to the user experience for the bidirectional nova_sonic.py example.

Testing

  1. Checkout this PR locally
    • gh pr checkout 573
  2. Create a activate a Python virtual environment
    • uv venv && source .venv/bin/activate
  3. Install workspace dependencies
    • make install
  4. Install bedrock runtime sdk client
    • uv pip install aws-sdk-bedrock-runtime
  5. Download the monitor_cpu.py and bidirection.py test scripts.
  6. Run python monitor_cpu.py and bidirection.py

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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