jpatel
commited on
Commit
·
d6eb2ad
1
Parent(s):
b4260af
readme file update
Browse files
README.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
+
|
5 |
+
# Model Name
|
6 |
+
|
7 |
+
regligiousgptbase - model based on GPT2, trained from scratch on religious books data from major three religions in the world. this model is trained on religious book like
|
8 |
+
1) The bible 2) The Quran 3)The Bhagavad Gita
|
9 |
+
|
10 |
+
## Usage
|
11 |
+
|
12 |
+
```python
|
13 |
+
from transformers import GPT2Model, GPT2Config
|
14 |
+
|
15 |
+
# Load configuration
|
16 |
+
config = GPT2Config.from_json_file('config.json')
|
17 |
+
|
18 |
+
# Initialize model
|
19 |
+
model = GPT2Model(config)
|
20 |
+
model.load_state_dict(torch.load("model.pth"))
|
21 |
+
|
22 |
+
# Example usage
|
23 |
+
inputs = ...
|
24 |
+
outputs = model(**inputs)
|