Skip to content

Conversation

Thamirawaran
Copy link
Collaborator

No description provided.

@Thamirawaran Thamirawaran requested a review from Copilot April 4, 2025 07:40
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

scripts/Sample_ft.ipynb:250

  • Slicing the response lines starting from index 4 may be unreliable if the response format changes. Consider using a more robust method to extract the hypothesis.
hypothesis = "\n".join(lines[4:])

" return_tensors = \"pt\",\n",
" ).to(\"cuda\")\n",
"\n",
" from transformers import TextStreamer\n",
Copy link

Copilot AI Apr 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Importing TextStreamer inside the loop could impact performance due to repeated imports. Consider moving this import outside the loop.

Suggested change
" from transformers import TextStreamer\n",

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant