Skip to content

Commit

Permalink
use Paul's branch of guidance for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed May 10, 2024
1 parent ff44a97 commit c1dcde9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
url = https://github.com/ggerganov/llama.cpp
[submodule "py/guidance"]
path = py/guidance
url = https://github.com/guidance-ai/guidance
url = https://github.com/paulbkoch/guidance
branch = pk-azure-guidance
6 changes: 0 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions controllers/guidance_ctrl/run_g.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ def main():
grm = "How much is 2 + 2? " + gen(name="test", max_tokens=10, regex=r"\(")
grm = "<color>red</color>\n<color>" + gen(stop="</color>") + " and test2"

lm = "Here's a "
lm += select(['joke', 'poem'], name='type')
lm += ": "
lm += gen("words", regex=r"[A-Z ]+", stop="\n")
grm = lm


# read current script file
# with open(__file__) as f:
# script = f.read()
Expand Down
2 changes: 1 addition & 1 deletion py/guidance
Submodule guidance updated 112 files

0 comments on commit c1dcde9

Please sign in to comment.