Update README.md
Browse files
README.md
CHANGED
|
@@ -11,16 +11,6 @@ https://github.com/openai/gpt-2/blob/master/src/model.py
|
|
| 11 |
https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt2/modeling_gpt2.py
|
| 12 |
|
| 13 |
"""
|
| 14 |
-
## Model Details :
|
| 15 |
-
|
| 16 |
-
[]
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
### Model Description
|
| 21 |
-
|
| 22 |
-
<!-- Provide a longer summary of what this model is. -->
|
| 23 |
-
|
| 24 |
|
| 25 |
|
| 26 |
- **Developed by:** [Jayesh Thakare]
|
|
@@ -28,7 +18,7 @@ https://github.com/huggingface/transformers/blob/main/src/transformers/models/gp
|
|
| 28 |
|
| 29 |
|
| 30 |
## Training Details
|
| 31 |
-
|
| 32 |
```
|
| 33 |
import torch
|
| 34 |
import torch.nn as nn
|
|
@@ -244,6 +234,7 @@ context = torch.zeros((1, 1), dtype=torch.long, device=device)
|
|
| 244 |
print(decode(m.generate(context, max_new_tokens=2000)[0].tolist()))
|
| 245 |
|
| 246 |
```
|
|
|
|
| 247 |
|
| 248 |
### Training Data
|
| 249 |
|
|
|
|
| 11 |
https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt2/modeling_gpt2.py
|
| 12 |
|
| 13 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
- **Developed by:** [Jayesh Thakare]
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
## Training Details
|
| 21 |
+
[
|
| 22 |
```
|
| 23 |
import torch
|
| 24 |
import torch.nn as nn
|
|
|
|
| 234 |
print(decode(m.generate(context, max_new_tokens=2000)[0].tolist()))
|
| 235 |
|
| 236 |
```
|
| 237 |
+
]
|
| 238 |
|
| 239 |
### Training Data
|
| 240 |
|