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

CodeCompletion + HinglishDocstring #10

Closed
wants to merge 24 commits into from
Closed

CodeCompletion + HinglishDocstring #10

wants to merge 24 commits into from

Conversation

AnirudhG07
Copy link
Collaborator

@AnirudhG07 AnirudhG07 commented Dec 11, 2023

This is a function to create Code Completion with Hinglish Docstring. Hinglish is Hindi language written in Roman characters(used in English language)
Points to keep in mind:
1)It imports Docstring translator from main.py
2) Temperature is set to 0. Hence multiple outputs run will be same. If temperate is changed, change it in the description as well.
3) API Key has to be added for the OpenAI to work. gpt-3.5-turbo is used in Chat Completion.

image

Demo response from HumanEval input 000.py in ground truth files.

@AnirudhG07 AnirudhG07 changed the title CodeGen Completion + HinglishDocstring CodeCompletion + HinglishDocstring Dec 13, 2023
@mrigankpawagi
Copy link
Owner

Fixed conflict

@AnirudhG07
Copy link
Collaborator Author

PolyCoder and CodeGen script is pushed in the branch AG-1. You can input the Hinglish docstrings and get the outputs

@AnirudhG07
Copy link
Collaborator Author

AnirudhG07 commented Dec 16, 2023

Outputs:
PolyCoder is NOT producing correct codes and is very slow, not reliable.
image
Since max length of output was set to be 210. The code is not complete but clearly is wrong.

Suggestion while prompting: use Kaggle notebook, much faster and reliable. Or lab machine.

@mrigankpawagi
Copy link
Owner

Will get back to this. Check related PR on Project A.

@mrigankpawagi
Copy link
Owner

Closing as too old. Another PR will replace this.

@mrigankpawagi mrigankpawagi deleted the AG-1 branch February 26, 2024 10:25
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.

2 participants