mia naomi
commited on
Commit
·
a212f62
1
Parent(s):
5cd560f
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
```python
|
2 |
from IPython import display
|
3 |
!pip install transformers==4.14.1 -q
|
@@ -6,7 +15,7 @@ from IPython import display
|
|
6 |
|
7 |
import transformers_8bit
|
8 |
|
9 |
-
model, tokenizer, config = transformers_8bit.gptj("crumb/gpt-j-6b-finetune-super-glue
|
10 |
|
11 |
prompt = tokenizer("<QUERY> If birds are in group B, and snakes are in group A, what group are pythons in? <RESPONSE>", return_tensors='pt')
|
12 |
prompt = {key: value.to('cuda') for key, value in prompt.items()}
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
datasets:
|
5 |
+
- super_glue
|
6 |
+
---
|
7 |
+
|
8 |
+
see [this repo](https://huggingface.co/crumb/gpt-j-6b-shakespeare) for more information
|
9 |
+
|
10 |
```python
|
11 |
from IPython import display
|
12 |
!pip install transformers==4.14.1 -q
|
|
|
15 |
|
16 |
import transformers_8bit
|
17 |
|
18 |
+
model, tokenizer, config = transformers_8bit.gptj("crumb/gpt-j-6b-finetune-super-glue", device='cuda')
|
19 |
|
20 |
prompt = tokenizer("<QUERY> If birds are in group B, and snakes are in group A, what group are pythons in? <RESPONSE>", return_tensors='pt')
|
21 |
prompt = {key: value.to('cuda') for key, value in prompt.items()}
|