Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT CSE Optimization - Add a gymnasium environment for reinforcement learning #101856

Merged
merged 78 commits into from
May 9, 2024

Commits on May 8, 2024

  1. Initial code

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    9d940a2 View commit details
    Browse the repository at this point in the history
  2. Add notes

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0c31d02 View commit details
    Browse the repository at this point in the history
  3. Add CSE_HeuristicRLHook

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8a5acd5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    476063a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5de67e1 View commit details
    Browse the repository at this point in the history
  6. Shuffle features by type

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    64b4821 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0aa1d8d View commit details
    Browse the repository at this point in the history
  8. Change to snake_case

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4f9fe2a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fe5d334 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    dd762f8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    690c4c4 View commit details
    Browse the repository at this point in the history
  12. Fix paths

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b8fd437 View commit details
    Browse the repository at this point in the history
  13. Fix issue with null result

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8ee8a0f View commit details
    Browse the repository at this point in the history
  14. Save method indexes

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    313788d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2d9e02f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    39a46b5 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    11b4346 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    678c5ee View commit details
    Browse the repository at this point in the history
  19. Reward improvements

    - Scale up rewards.
    - Clamp rewards to [-1, 1]
    - Reward/penalize when complete if there are better/worse CSEs (this is very slow)
    - Reward when complete based on whether we beat the heuristic or not
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    5d5f47e View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c32f704 View commit details
    Browse the repository at this point in the history
  21. Fix inverted graph

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0f8b109 View commit details
    Browse the repository at this point in the history
  22. Split data into test/train

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    303c642 View commit details
    Browse the repository at this point in the history
  23. Refactor for clarity

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    81d8314 View commit details
    Browse the repository at this point in the history
  24. Use numpy for randomness

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6265e40 View commit details
    Browse the repository at this point in the history
  25. Add open questions

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    12ae7f5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    e735ee0 View commit details
    Browse the repository at this point in the history
  27. Refactor and cleanup

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b3032a0 View commit details
    Browse the repository at this point in the history
  28. Add evaluate.py

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b76896c View commit details
    Browse the repository at this point in the history
  29. Fix inverted test/train

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ecdde9b View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    7982aa4 View commit details
    Browse the repository at this point in the history
  31. Rename file

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    cb6dbab View commit details
    Browse the repository at this point in the history
  32. Clean up imports

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8653120 View commit details
    Browse the repository at this point in the history
  33. Changed action space

    - 0 to action_space.n-2 are now the CSEs to apply instead of adding and subtracting 1 to the action.
    - 0 no longer means terminate, instead the action from the model of n-1 is the terminate signal.  This is not passed to the JIT.
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    ca067c1 View commit details
    Browse the repository at this point in the history
  34. Add field validator for perf_score

    This shouldn't happen but it's important enough to validate
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    dd2702a View commit details
    Browse the repository at this point in the history
  35. Update applicability to ensure we have at least enough viable candida…

    …tes and not more than total
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    2c91107 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    430e5c9 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    18dd0f1 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    0ec0e40 View commit details
    Browse the repository at this point in the history
  39. Rename JitEnv -> JitCseEnv

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    191137b View commit details
    Browse the repository at this point in the history
  40. More renames

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    74f628d View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    01cc413 View commit details
    Browse the repository at this point in the history
  42. Fix test/train split

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    42593ff View commit details
    Browse the repository at this point in the history
  43. Reward cleanup

    - Split reward function into shallow and deep.
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    6343d01 View commit details
    Browse the repository at this point in the history
  44. Remove 0 perfscore check

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    727d869 View commit details
    Browse the repository at this point in the history
  45. Enable deep rewards

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f63f576 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    b629873 View commit details
    Browse the repository at this point in the history
  47. Simplify deeper rewards

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    0779315 View commit details
    Browse the repository at this point in the history
  48. Update todo

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b2c76e4 View commit details
    Browse the repository at this point in the history
  49. Add reward customization

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    87341a2 View commit details
    Browse the repository at this point in the history
  50. Clean up __all__

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    adbd9de View commit details
    Browse the repository at this point in the history
  51. Fix issue where we would JIT the first CSE candidate in reset

    This was leftover code from the previous design of RLHook.
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f799976 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    dbc6902 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    bdf9761 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    17dead9 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    c7647fa View commit details
    Browse the repository at this point in the history
  56. Add superpmi_context

    Getting the code well-factored so it's easy to modify.
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    db2566a View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    b1cfb46 View commit details
    Browse the repository at this point in the history
  58. Close the environment

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    58d8e16 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    453dbde View commit details
    Browse the repository at this point in the history
  60. Rename method

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    fa6c60d View commit details
    Browse the repository at this point in the history
  61. Normalize observation

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    eb023e2 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    5dbbc51 View commit details
    Browse the repository at this point in the history
  63. Add RemoveFeaturesWrapper

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b6b32d9 View commit details
    Browse the repository at this point in the history
  64. Update docstring

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    d10a28b View commit details
    Browse the repository at this point in the history
  65. Rename function

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    26d9ed3 View commit details
    Browse the repository at this point in the history
  66. Move feature normalization to a wrapper

    - Also better wrapper factoring.
    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    5e39ded View commit details
    Browse the repository at this point in the history
  67. Remove import

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    7e39ed3 View commit details
    Browse the repository at this point in the history
  68. Fix warning

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    f880166 View commit details
    Browse the repository at this point in the history
  69. Fix Windows issue

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b1ba57e View commit details
    Browse the repository at this point in the history
  70. Properly log when using A2C

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    333236b View commit details
    Browse the repository at this point in the history
  71. Add readme

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    8f277ac View commit details
    Browse the repository at this point in the history
  72. Change argument name

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    5e399ce View commit details
    Browse the repository at this point in the history
  73. Remove whitespace change

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    566c27a View commit details
    Browse the repository at this point in the history
  74. Format fixes

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    80bb745 View commit details
    Browse the repository at this point in the history
  75. Fix formatting

    leculver committed May 8, 2024
    Configuration menu
    Copy the full SHA
    b54e32f View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    6b9bdac View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    dee6f4a View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    05d8574 View commit details
    Browse the repository at this point in the history