From c6955d76040b47e1c3d44332d0c5f6af5536938a Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 17 Jun 2024 10:23:01 -0400 Subject: [PATCH] Rename instructlab.config to instructlab.configuration This changed in the instructlab repo, so match it. Signed-off-by: Russell Bryant --- requirements.txt | 2 +- src/instructlab/sdg/generate_data.py | 2 +- src/instructlab/sdg/utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6cef0cd5..b57bd22b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ openai>=1.13.3,<2.0.0 rouge_score tqdm>=4.66.2,<5.0.0 # TODO: remove 'instructlab' once https://github.com/instructlab/sdg/issues/6 is resolved -instructlab +instructlab>=0.17.0 diff --git a/src/instructlab/sdg/generate_data.py b/src/instructlab/sdg/generate_data.py index 4bbd9ac5..f45f5027 100644 --- a/src/instructlab/sdg/generate_data.py +++ b/src/instructlab/sdg/generate_data.py @@ -15,7 +15,7 @@ # Third Party # instructlab - All of these need to go away (other than sdg) - issue #6 -from instructlab.config import get_model_family +from instructlab.configuration import get_model_family from instructlab.utils import ( chunk_document, max_seed_example_tokens, diff --git a/src/instructlab/sdg/utils.py b/src/instructlab/sdg/utils.py index 75528b6d..83423fe8 100644 --- a/src/instructlab/sdg/utils.py +++ b/src/instructlab/sdg/utils.py @@ -13,7 +13,7 @@ # Third Party # instructlab - TODO these need to go away, issue #6 -from instructlab.config import DEFAULT_API_KEY, DEFAULT_MODEL_OLD +from instructlab.configuration import DEFAULT_API_KEY, DEFAULT_MODEL_OLD from instructlab.utils import get_sysprompt from openai import OpenAI, OpenAIError import httpx