Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import torch
|
2 |
from torch import nn
|
3 |
from torch.nn import functional as F
|
@@ -33,4 +38,6 @@ with torch.cuda.amp.autocast():
|
|
33 |
eos_token_id=tokenizer.additional_special_tokens_ids[tokenizer.additional_special_tokens.index('<question>')]
|
34 |
)
|
35 |
|
36 |
-
message = tokenizer.decode(out[0, :-1]).replace('<question>', "User:\n").replace('<answer>', 'Assistant:\n')
|
|
|
|
|
|
1 |
+
Galactica-6.7b finetuned on webgpt and prompt_dialogue.
|
2 |
+
|
3 |
+
Demo use:
|
4 |
+
|
5 |
+
```
|
6 |
import torch
|
7 |
from torch import nn
|
8 |
from torch.nn import functional as F
|
|
|
38 |
eos_token_id=tokenizer.additional_special_tokens_ids[tokenizer.additional_special_tokens.index('<question>')]
|
39 |
)
|
40 |
|
41 |
+
message = tokenizer.decode(out[0, :-1]).replace('<question>', "User:\n").replace('<answer>', 'Assistant:\n')
|
42 |
+
|
43 |
+
```
|