-
Notifications
You must be signed in to change notification settings - Fork 86
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
Integrate main qa #131
Integrate main qa #131
Conversation
@viveksingh-ctrl |
llmtune/cli/toolkit.py
Outdated
import os | ||
from os import listdir | ||
from os.path import exists, join |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import os | |
from os import listdir | |
from os.path import exists, join |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are moving all the directory operations to pathlib
llmtune/cli/toolkit.py
Outdated
qa_path = dir_helper.save_paths.qa | ||
if not exists(qa_path) or not listdir(qa_path): | ||
# Instantiate unit test classes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qa_path = dir_helper.save_paths.qa | |
if not exists(qa_path) or not listdir(qa_path): | |
# Instantiate unit test classes | |
qa_file_path = dir_helper.save_paths.qa_file | |
if not qa_file_path.exists(): | |
# Instantiate unit test classes |
llmtune/cli/toolkit.py
Outdated
qa_path = dir_helper.save_paths.qa | ||
if not exists(qa_path) or not listdir(qa_path): | ||
# Instantiate unit test classes | ||
llm_tests = config.get("qa", {}).get("llm_tests", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
llm_tests = config.get("qa", {}).get("llm_tests", []) | |
llm_tests = config.qa.llm_tests |
llmtune/cli/toolkit.py
Outdated
llm_tests = config.get("qa", {}).get("llm_tests", []) | ||
tests = QaTestRegistry.create_tests_from_list(llm_tests) | ||
test_suite = LLMTestSuite.from_csv(results_file_path, tests) | ||
test_suite.save_test_results(os.path.join(qa_path, "unit_test_results.csv")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_suite.save_test_results(os.path.join(qa_path, "unit_test_results.csv")) | |
test_suite.save_test_results(qa_file_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Good stuff!
- Only changes are basically just migrating to
pathlib
. - This was done a couple of days ago -- really sorry about the changes.
No description provided.