An open API service indexing awesome lists of open source software.

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.

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***