https://github.com/sovit-123/gpt_instruct
GPT instruct based models in less than a billion parameters.
https://github.com/sovit-123/gpt_instruct
Last synced: about 1 year ago
JSON representation
GPT instruct based models in less than a billion parameters.
- Host: GitHub
- URL: https://github.com/sovit-123/gpt_instruct
- Owner: sovit-123
- License: mit
- Created: 2023-08-11T17:02:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-11T17:32:54.000Z (almost 3 years ago)
- Last Synced: 2025-02-03T10:46:20.975Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gpt_instruct
GPT instruct based models in less than a billion parameters.
GPT 2 model trained on the Alpaca dataset for slightly over 50000 steps released.
Download and extract the `infer_model.zip` file (**see Releases**) in the project directory and run `gpt2_instruct.py --prompt ""`.
Prompt should be within quotes.
**Example**
```
python gpt2_instruct.py --prompt "Give three points on how to stay healthy."
```
Output:
```
1. Eat nutritious food that is low in fat.
2. Get enough sleep and rest every night.
3. Follow recommended guidelines for exercise.
```
***If you retrain the model, copy the models, tokenizers, merges, etc from the resulting folder into the `infer_model` folder or change the path in the `gpt_instruct.py` file***