Skip to content

Commit

Permalink
added return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir86 committed Mar 28, 2024
1 parent 60ab96f commit 256e396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/rag/rag_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"5it [00:00, 37786.52it/s]\n"
"5it [00:00, 39199.10it/s]\n"
]
},
{
Expand All @@ -101,7 +101,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"100%|██████████| 1/1 [00:01<00:00, 1.83s/it]"
"100%|██████████| 1/1 [00:01<00:00, 1.73s/it]"
]
},
{
Expand Down Expand Up @@ -152,12 +152,12 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"id": "456ecd6c",
"metadata": {},
"outputs": [],
"source": [
"rag_LM.generate(condition=None)"
"lm_response = rag_LM.generate(condition=None)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion llments/lm/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def generate(self, condition: str | None, do_sample: bool = False, max_length: i
Returns:
str: Sampled output sequences from the language model.
"""
pass
return super().generate(condition, do_sample, max_length, temperature, num_return_sequences)



0 comments on commit 256e396

Please sign in to comment.