Skip to content

Commit 6ba9ace

Browse files
committed
Changes as requested by Author
1 parent 97ce9e9 commit 6ba9ace

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,16 @@ This repository is simple implementation GPT-2 about **text-generator** in **Pyt
2020
## Quick Start
2121

2222
1. download GPT2 pre-trained model in Pytorch which huggingface/pytorch-pretrained-BERT already made! (Thanks for sharing! it's help my problem transferring tensorflow(ckpt) file to Pytorch Model!)
23-
2423
```shell
2524
$ git clone https://github.com/graykode/gpt-2-Pytorch && cd gpt-2-Pytorch
2625
# download huggingface's pytorch model
2726
$ curl --output gpt2-pytorch_model.bin https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-pytorch_model.bin
2827
# setup requirements
29-
$ python3 -m venv venv
30-
$ source venv/bin/activate
31-
$ pip install torch tqdm
32-
$ brew install libomp
33-
$ export LC_ALL=en_US.UTF-8
34-
$ export LANG=en_US.UTF-8
28+
# if using mac os, then run setup as descibed [here](/Mac OS Setup/)
3529
$ pip install -r requirements.txt
3630
```
3731

32+
3833
2. Now, You can run like this.
3934

4035
- Text from Book 1984, George Orwell
@@ -67,7 +62,16 @@ See more detail option about `temperature` and `top_k` in [here](https://github.
6762
- Pytorch 0.41+
6863
- regex 2017.4.5
6964

70-
65+
### Mac OS Setup
66+
```shell
67+
$ python3 -m venv venv
68+
$ source venv/bin/activate
69+
$ pip install torch tqdm
70+
$ brew install libomp
71+
$ export LC_ALL=en_US.UTF-8
72+
$ export LANG=en_US.UTF-8
73+
$ pip install -r requirements.txt
74+
```
7175

7276
## Author
7377

0 commit comments

Comments
 (0)