Skip to content

Commit

Permalink
Misc fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jondurbin committed Aug 12, 2023
1 parent 466e5b2 commit b8a43e3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.yaml
chat_cards
.DS_Store
airoboros*.yaml
Expand Down
2 changes: 1 addition & 1 deletion airoboros/instructors/multiple_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ def gen_context(_):
):
# Let's double check the answer letter/text match.
if item["response"].strip() not in item["instruction"]:
logger.warning("Response mismatch: {item['response']}")
logger.warning(f"Response mismatch: {item['response']}")
continue
yield item
4 changes: 1 addition & 3 deletions airoboros/instructors/trivia.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,5 @@ async def generate(instructor, **kwargs):
f"Validation failure: {item['instruction']} -- {item['response']}"
)
continue
item[
"system"
] = "You are a world class trivia bot - generate accurate, succint responses."
item["instruction"] = "trivia: " + item["instruction"]
yield item
2 changes: 1 addition & 1 deletion airoboros/self_instruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def initialize_index(self):
docs = ["__initialize__"]

# This is a bit slow.
for doc in docs:
for doc in tqdm(docs):
self.index.add(
np.array(
[
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="airoboros",
version="2.0.22",
version="2.0.23",
description="Updated and improved implementation of the self-instruct system.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit b8a43e3

Please sign in to comment.