Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorial 24: replace oasst-sft-1-pythia-12b with zephyr-7b-beta #258

Merged
merged 1 commit into from
Dec 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tutorials/24_Building_Chat_App.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"source": [
"### 2) Create a PromptNode\n",
"\n",
"You'll initialize a PromptNode with the `model_name`, `api_key`, and `max_length` to control the output length of the model. In this tutorial, you'll use [OpenAssistant/oasst-sft-1-pythia-12b](https://huggingface.co/OpenAssistant/oasst-sft-1-pythia-12b), an open source Transformer-based text generation model."
"You'll initialize a PromptNode with the `model_name`, `api_key`, and `max_length` to control the output length of the model. In this tutorial, you'll use [HuggingFaceH4/zephyr-7b-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta), an open source chat Language Model."
]
},
{
Expand All @@ -156,8 +156,8 @@
"source": [
"from haystack.nodes import PromptNode\n",
"\n",
"model_name = \"OpenAssistant/oasst-sft-1-pythia-12b\"\n",
"prompt_node = PromptNode(model_name, api_key=model_api_key, max_length=256)"
"model_name = \"https://huggingface.co/HuggingFaceH4/zephyr-7b-beta\"\n",
"prompt_node = PromptNode(model_name, api_key=model_api_key, max_length=256, stop_words=[\"Human\"])"
]
},
{
Expand Down