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

Update and rename run_evaluation_llm4decompile_singleGPU.py to update… #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thisisvk45
Copy link

…d_run_evaluation_llm4decompile_singleGPU.py

The optimized code improves efficiency by minimizing file operations and subprocess calls. It consolidates file writes and uses temporary files more effectively, reducing redundant operations. By combining compile and run commands and handling exceptions concisely, the code avoids unnecessary subprocess calls.

String operations are streamlined using str.splitlines() and str.strip() to handle and process strings more efficiently. Additionally, the prompt preparation and decoding steps are simplified to speed up data processing. These changes collectively enhance the time and space efficiency of the code.

…d_run_evaluation_llm4decompile_singleGPU.py

The optimized code improves efficiency by minimizing file operations and subprocess calls. It consolidates file writes and uses temporary files more effectively, reducing redundant operations. By combining compile and run commands and handling exceptions concisely, the code avoids unnecessary subprocess calls.

 String operations are streamlined using str.splitlines() and str.strip() to handle and process strings more efficiently. Additionally, the prompt preparation and decoding steps are simplified to speed up data processing. These changes collectively enhance the time and space efficiency of the code.
@albertan017
Copy link
Owner

Thank you for your interest. However, we haven't observed any speed improvements with the script. It would be beneficial if you could use tempfile to handle the files, as implemented in run_evaluation_llm4decompile_vllm.py.

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