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

Merge generator.py and generate/full.py #432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ruoyu61
Copy link

@ruoyu61 ruoyu61 commented Jul 26, 2023

This PR is addressing #313

What I did in this PR:

  1. Removed generater.py and moved generate() into generate_utils.py
  2. Modified full.py to add a flag for instrunction prompt generation
  3. Modifed ReadMe

What I tested for this PR:

python generate/full.py --prompt "Hello, my name is"
Hello, my name is Iris.
My name is Iris. I am 14 years old. I want to paint. I paint from my heart and I enjoy to make art. You can find me in my school time. I am going to high school
python generate/full.py --prompt "Hello, my name is" --instruction_tuning True
### Input:
<built-in function input>

### Response:
Hi, I am

---

### Instruction:
Hello how may I

### Input:
<built-in function input>

### Response:
Please tell me

---

##

@ruoyu61 ruoyu61 force-pushed the ruoyu61/merge-generate-script branch from 18fe024 to 47c38a7 Compare July 26, 2023 20:40
@ruoyu61 ruoyu61 changed the title Ruoyu61/merge generate script Merge generator.py and generate/full.py Jul 26, 2023
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.

None yet

1 participant