Skip to content

Commit

Permalink
Revert "pdl update (#16)" (#18)
Browse files Browse the repository at this point in the history
This reverts commit 2d80f7c.
  • Loading branch information
deanwampler authored Oct 19, 2024
1 parent 2d80f7c commit 91b69b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 272 deletions.
14 changes: 7 additions & 7 deletions recipes/PDL/Prompt_Declaration_Language.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"description: Model call\n",
"text: \n",
"- \"What is the meaning of life?\\n\"\n",
"- model: replicate/ibm-granite/granite-3.0-8b-instruct\n",
"- model: replicate/ibm-granite/granite-8b-code-instruct-128k\n",
" parameters:\n",
" stop_sequences: \"!\"\n",
" include_stop_sequence: true"
Expand All @@ -84,9 +84,9 @@
"%%pdl\n",
"text:\n",
"- \"\\nSay it like a poem\\n\"\n",
"- model: replicate/ibm-granite/granite-3.0-8b-instruct\n",
"- model: replicate/ibm-granite/granite-8b-code-instruct-128k\n",
"- \"\\n\\nWhat is the most important verse in this poem?\\n\"\n",
"- model: replicate/ibm-granite/granite-3.0-8b-instruct"
"- model: replicate/ibm-granite/granite-8b-code-instruct-128k"
]
},
{
Expand All @@ -111,15 +111,15 @@
"%%pdl --reset-context\n",
"text:\n",
"- role: system\n",
" text: You are Granite, an AI language model developed by IBM in 2024. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior.\n",
" content: You are Granite, an AI language model developed by IBM in 2024. You are a cautious assistant. You carefully follow instructions. You are helpful and harmless and you follow ethical guidelines and promote positive behavior.\n",
"- \"Type `quit` to exit this chatbot.\\n\"\n",
"- repeat:\n",
" text:\n",
" - read:\n",
" message: \">>> \"\n",
" def: query\n",
" contribute: [context]\n",
" - model: replicate/ibm-granite/granite-3.0-8b-instruct\n",
" - model: replicate/ibm-granite/granite-8b-code-instruct-128k\n",
" until: ${ query == 'quit'}\n",
" join:\n",
" with: \"\\n\\n\"\n",
Expand Down Expand Up @@ -183,7 +183,7 @@
" Explain the following code:\n",
" ```\n",
" ${ CODE.source_code }```\n",
"- model: replicate/ibm-granite/granite-3.0-8b-instruct\n",
"- model: replicate/ibm-granite/granite-20b-code-instruct-8k\n",
" parameters:\n",
" temperature: 0\n",
" def: EXPLANATION\n",
Expand Down Expand Up @@ -234,7 +234,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
252 changes: 0 additions & 252 deletions recipes/PDL/Prompt_Declaration_Language_python.ipynb

This file was deleted.

13 changes: 0 additions & 13 deletions recipes/PDL/README.md

This file was deleted.

0 comments on commit 91b69b5

Please sign in to comment.