Skip to content

Commit

Permalink
naming consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
tcapelle committed May 31, 2023
1 parent 2228f0c commit 4b9908a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llm-apps-course/Generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@
"metadata": {},
"outputs": [],
"source": [
"MODEL = \"gpt-3.5-turbo\"\n",
"# MODEL = \"gpt-4\""
"MODEL_NAME = \"gpt-3.5-turbo\"\n",
"# MODEL_NAME = \"gpt-4\""
]
},
{
Expand All @@ -146,7 +146,7 @@
" {\"role\": \"user\", \"content\": user_prompt},\n",
" ]\n",
" responses = completion_with_backoff(\n",
" model=MODEL,\n",
" model=MODEL_NAME,\n",
" messages=messages,\n",
" n = n,\n",
" )\n",
Expand Down Expand Up @@ -273,7 +273,7 @@
"metadata": {},
"outputs": [],
"source": [
"tokenizer = tiktoken.encoding_for_model(MODEL)\n",
"tokenizer = tiktoken.encoding_for_model(MODEL_NAME)\n",
"tokens_per_document = [len(tokenizer.encode(document)) for _, document in documents]\n",
"pprint(tokens_per_document)"
]
Expand Down

0 comments on commit 4b9908a

Please sign in to comment.