Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
language: en
|
4 |
+
tags:
|
5 |
+
- gpt2
|
6 |
+
- prompt-scoring
|
7 |
+
license: mit
|
8 |
+
---
|
9 |
+
|
10 |
+
# GPrompT2 Model
|
11 |
+
|
12 |
+
This model is fine-tuned from GPT-2 for prompt scoring.
|
13 |
+
|
14 |
+
## Usage
|
15 |
+
|
16 |
+
```python
|
17 |
+
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
18 |
+
|
19 |
+
model = GPT2LMHeadModel.from_pretrained("your-username/your-model-name")
|
20 |
+
tokenizer = GPT2Tokenizer.from_pretrained("your-username/your-model-name")
|
21 |
+
|
22 |
+
# Use the model for inference
|
23 |
+
```
|
24 |
+
|