Skip to content

[WIP] Start of compositional prompting#37

Open
KE7 wants to merge 11 commits intomainfrom
compositionLocal
Open

[WIP] Start of compositional prompting#37
KE7 wants to merge 11 commits intomainfrom
compositionLocal

Conversation

@KE7
Copy link
Copy Markdown
Owner

@KE7 KE7 commented Mar 7, 2024

No description provided.


def __init__(self):
super().__init__()
openai.api_base = "http://localhost:8080/v1"
Copy link
Copy Markdown
Owner Author

@KE7 KE7 Mar 7, 2024

Choose a reason for hiding this comment

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

I will hate myself for starting like this but I am just trying to go ><

If we do grammar constraints this wont work. If we do LMQL constraints, this might work?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can you explain the distinction when we meet

continue

# we could not compile the program so we just return our best effort
# TODO: do a GPT-Judge thing here and ask which was the best then return that one?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good TODO want to make sure it doesn't get lost in the PR

Copy link
Copy Markdown
Collaborator

@devanshanker devanshanker left a comment

Choose a reason for hiding this comment

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

Good looks, we should make sure the methodology and instructional/ToT Q/A process is consistent across local models and API (at least to the extent that context lengths / LMQL allow)

questions = None
with os.open(PromptFiles.COMPOSITIONAL_GBNF.value) as f:
prompt = f.read()
questions = yaml.safe_load(prompt)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@KE7
Copy link
Copy Markdown
Owner Author

KE7 commented Mar 10, 2024

image

Current state of affair's is that I can generate constants section with 100% compilation. I am splitting inference by reasoning with mixtral and coding with claude. I could do all with claude but this way "saves money"

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.

2 participants