Add new_results with OPT-2.7B Java evaluation and fix inference scripts - #1
Open
Hrushik007 wants to merge 1 commit into
Open
Hrushik007 wants to merge 1 commit into
Hrushik007 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds replicated Java evaluation outputs for OPT-2.7B (fixed-exit) and supporting plotting scripts, while updating dependencies and adjusting the evaluator’s OPT model import.
Changes:
- Updated Python dependencies (version pin changes and removal of an NVIDIA CUDA wheel pin).
- Added OPT-2.7B Java fixed-exit evaluation result JSONs (per-exit + aggregated) under both
results/andnew_results/. - Added Pareto plotting scripts for the Java fixed-exit metrics.
Reviewed changes
Copilot reviewed 28 out of 41 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/requirements.txt | Adjusts dependency pins (CodeBLEU / tree-sitter) and removes a CUDA wheel pin. |
| src/eval/evaluator.py | Changes OPT fixed-exit model import (now aliases OPTEESingleHead). |
| results/replication/opt_java/eval_exit_3.json | Adds replication metrics for exit 3. |
| results/replication/opt_java/eval_exit_5.json | Adds replication metrics for exit 5. |
| results/replication/opt_java/eval_exit_7.json | Adds replication metrics for exit 7. |
| results/replication/opt_java/eval_exit_9.json | Adds replication metrics for exit 9. |
| results/replication/opt_java/eval_exit_11.json | Adds replication metrics for exit 11. |
| results/replication/opt_java/eval_exit_13.json | Adds replication metrics for exit 13. |
| results/replication/opt_java/eval_exit_15.json | Adds replication metrics for exit 15. |
| results/replication/opt_java/eval_exit_19.json | Adds replication metrics for exit 19. |
| results/replication/opt_java/eval_exit_23.json | Adds replication metrics for exit 23. |
| results/replication/opt_java/eval_exit_27.json | Adds replication metrics for exit 27. |
| results/replication/opt_java/eval_exit_31.json | Adds replication metrics for exit 31. |
| results/replication/opt_java/eval_all_fixed_exits.json | Adds aggregated replication metrics across fixed exits. |
| results/figures/plot_pareto.py | Adds a script to plot a Pareto frontier from the fixed-exit metrics. |
| new_results/replication/opt_java/eval_exit_3.json | Adds replication metrics for exit 3 (new_results). |
| new_results/replication/opt_java/eval_exit_5.json | Adds replication metrics for exit 5 (new_results). |
| new_results/replication/opt_java/eval_exit_7.json | Adds replication metrics for exit 7 (new_results). |
| new_results/replication/opt_java/eval_exit_9.json | Adds replication metrics for exit 9 (new_results). |
| new_results/replication/opt_java/eval_exit_11.json | Adds replication metrics for exit 11 (new_results). |
| new_results/replication/opt_java/eval_exit_13.json | Adds replication metrics for exit 13 (new_results). |
| new_results/replication/opt_java/eval_exit_15.json | Adds replication metrics for exit 15 (new_results). |
| new_results/replication/opt_java/eval_exit_19.json | Adds replication metrics for exit 19 (new_results). |
| new_results/replication/opt_java/eval_exit_23.json | Adds replication metrics for exit 23 (new_results). |
| new_results/replication/opt_java/eval_exit_27.json | Adds replication metrics for exit 27 (new_results). |
| new_results/replication/opt_java/eval_exit_31.json | Adds replication metrics for exit 31 (new_results). |
| new_results/replication/opt_java/eval_all_fixed_exits.json | Adds aggregated replication metrics across fixed exits (new_results). |
| new_results/figures/plot_pareto.py | Adds a script to plot a Pareto frontier from the fixed-exit metrics (new_results). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| from zeus.monitor import ZeusMonitor | ||
|
|
||
| from src.models.opt.modeling_opt_single_head_fixed_exit import OPTFixedEESingleHead | ||
| from src.models.opt.modeling_opt_single_head_fixed_exit import OPTEESingleHead as OPTFixedEESingleHead |
| plt.grid(True, linestyle='--', alpha=0.7) | ||
| plt.plot(energy[-1], codebleu[-1], marker='*', color='gold', markersize=15, markeredgecolor='black') | ||
| plt.tight_layout() | ||
| out_path = os.path.expanduser('~/greencode/results/figures/opt_java_metrics_comparison_ctx_0.2.pdf') |
| plt.grid(True, linestyle='--', alpha=0.7) | ||
| plt.plot(energy[-1], codebleu[-1], marker='*', color='gold', markersize=15, markeredgecolor='black') | ||
| plt.tight_layout() | ||
| out_path = os.path.expanduser('~/greencode/results/figures/opt_java_metrics_comparison_ctx_0.2.pdf') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.