Skip to content

Commit

Permalink
Implement Hugging Face few shot inference
Browse files Browse the repository at this point in the history
  • Loading branch information
srsawant34 committed Nov 16, 2023
1 parent 4e57f00 commit 19a0847
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@
"- Now, create a new access token with name: `GPT_INFERENCE` and role: `read`\n",
"- Copy the generated token and paste it below\n",
"\n",
"We will use <a href=\"https://huggingface.co/EleutherAI/gpt-neo-1.3B\">gpt-neo-1.3B</a> model for our demonstration. "
"We use GPT based models since they excel in few-shot learning due to their ability to generate coherent and contextually relevant responses based on limited examples, capturing relationships in data more effectively than many other large language models.\n",
"In this demonstration, we will utilize the <a href=\"https://huggingface.co/EleutherAI/gpt-neo-1.3B\">gpt-neo-1.3B</a> model; additional GPT-based models can be explored <a href=\"https://huggingface.co/EleutherAI\">here</a>. Developed by <a href=\"https://www.eleuther.ai/\">EleutherAI</a>, GPT⁠-⁠Neo is a series of transformer-based language models built on the GPT architecture. EleutherAI aims to create a model of GPT⁠-⁠3's scale and provide open access."
]
},
{
Expand Down Expand Up @@ -386,7 +387,7 @@
"source": [
"### Few-shot learning with custom dataset\n",
"\n",
"You can also use any custom dataset and generate prompts like above. For example, below we will use <a href=\"https://huggingface.co/datasets/carblacac/twitter-sentiment-analysis\">twitter-sentiment-analysis</a>. More datasets in huggingface can be found <a href=\"https://huggingface.co/datasets\">here</a>"
"You can also use any custom dataset and generate prompts like above. For example, below we will use <a href=\"https://huggingface.co/datasets/carblacac/twitter-sentiment-analysis\">twitter-sentiment-analysis</a>. More datasets in huggingface can be found <a href=\"https://huggingface.co/datasets\">here</a>."
]
},
{
Expand Down

0 comments on commit 19a0847

Please sign in to comment.