baotoan2002 commited on
Commit
1bf7ee2
1 Parent(s): f9affc0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -11
README.md CHANGED
@@ -17,21 +17,22 @@ Hugging Face transformers library
17
  PyTorch or TensorFlow
18
 
19
  ## Installation
20
- Clone this repository: git clone ```https://github.com/sonyway01/Deep-Learning/Final%20Project```
21
- Navigate to the repository directory: ```cd Final Project```
22
- Install the required libraries: ```pip install -r requirements.txt```
23
 
24
  ## Usage
25
- Download the GPT-2 pre-trained model: ```python download_model.py```
26
- Edit the ```generate_text.py``` file to include your desired prompt and generate settings.
27
- Run the ```generate_text.py file``` to generate text: ```python generate_text.py```
28
- Customization
29
- You can customize the GPT-2 model and the text generation settings by editing the ```generate_text.py``` file. For example, you can change the prompt text, the number of tokens to generate, the temperature setting for the model, and more.
 
30
 
31
  ## References
32
- Hugging Face Transformers library: ```https://github.com/huggingface/transformers```
33
- GPT-2 model by me: ```https://huggingface.co/baotoan2002/GPT-2```
34
- OpenAI GPT-2 model: ```https://openai.com/models/gpt-2/```
35
 
36
  ## License
37
  This repository is licensed under the [openrail] License. See the LICENSE file for details.
 
17
  PyTorch or TensorFlow
18
 
19
  ## Installation
20
+ - Clone this repository: git clone ```https://github.com/sonyway01/Deep-Learning/Final%20Project```
21
+ - Navigate to the repository directory: ```cd Final Project```
22
+ - Install the required libraries: ```pip install -r requirements.txt```
23
 
24
  ## Usage
25
+ - Download the GPT-2 pre-trained model: ```python download_model.py```
26
+ - Edit the ```Gpt_2_to_generate_stories.ipynb``` file to include your desired prompt and generate settings.
27
+ - Run the ```Gpt_2_to_generate_stories.ipynb file``` to generate text: ```python Gpt_2_to_generate_stories.ipynb```
28
+
29
+ ## Customization
30
+ You can customize the GPT-2 model and the text generation settings by editing the ```Gpt_2_to_generate_stories.ipynb``` file. For example, you can change the prompt text, the number of tokens to generate, the temperature setting for the model, and more.
31
 
32
  ## References
33
+ - Hugging Face Transformers library: ```https://github.com/huggingface/transformers```
34
+ - GPT-2 model by me: ```https://huggingface.co/baotoan2002/GPT-2```
35
+ - OpenAI GPT-2 model: ```https://openai.com/models/gpt-2/```
36
 
37
  ## License
38
  This repository is licensed under the [openrail] License. See the LICENSE file for details.