Skip to content

Commit

Permalink
Fix for auto_dump for llama3-8b (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan authored May 24, 2024
1 parent 62521ba commit 235c5dc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions upsonic/remote/on_prem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,14 @@ def extract_source(self, value):


def auto_dump(self, value, ask=True, check_idea=True, print_prompts=False, model=None):


if model == None:
model = self.get_default_ai_model()

if model == "llama3-8b":
check_idea = False

if check_idea:
check = self.check_idea(value, print_prompts=print_prompts, model=model)
if check != True:
Expand All @@ -1158,6 +1166,9 @@ def auto_dump(self, value, ask=True, check_idea=True, print_prompts=False, model
{all_scopes}
```
Your answer should be just the suggested position. Dont say any other think.
Suggested Position:
"""
Expand Down Expand Up @@ -1208,6 +1219,7 @@ def get_document(self, scope, version=None):


def check_idea(self, value, print_prompts=False, model=None):

code = textwrap.dedent(self.extract_source(value))


Expand Down

0 comments on commit 235c5dc

Please sign in to comment.