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

Integrate main qa #131

Merged
merged 8 commits into from
Apr 11, 2024
Merged

Conversation

viveksingh-ctrl
Copy link
Contributor

No description provided.

@benjaminye
Copy link
Contributor

@viveksingh-ctrl
Can you lint and format? Instructions here: #120 (review)

llmtune/cli/toolkit.py Outdated Show resolved Hide resolved
Comment on lines 2 to 4
import os
from os import listdir
from os.path import exists, join
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import os
from os import listdir
from os.path import exists, join

Copy link
Contributor

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

Comment on lines 93 to 95
qa_path = dir_helper.save_paths.qa
if not exists(qa_path) or not listdir(qa_path):
# Instantiate unit test classes
Copy link
Contributor

@benjaminye benjaminye Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

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", [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
llm_tests = config.get("qa", {}).get("llm_tests", [])
llm_tests = config.qa.llm_tests

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"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test_suite.save_test_results(os.path.join(qa_path, "unit_test_results.csv"))
test_suite.save_test_results(qa_file_path)

Copy link
Contributor

@benjaminye benjaminye left a 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.

@benjaminye benjaminye merged commit 0352c77 into georgian-io:main Apr 11, 2024
1 check passed
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.

None yet

2 participants