Commit
•
6badd60
1
Parent(s):
8034190
Update README.md
Browse files
README.md
CHANGED
@@ -12,7 +12,9 @@ tags:
|
|
12 |
- text-generation-inference
|
13 |
---
|
14 |
|
15 |
-
Generate title for conversation
|
|
|
|
|
16 |
|
17 |
```python
|
18 |
model_name = "theblackcat102/alpaca-title-generator-mt0-large"
|
@@ -32,4 +34,20 @@ for i, beam_output in enumerate(outputs):
|
|
32 |
print('-----')
|
33 |
print("{}".format(tokenizer.decode(beam_output, skip_special_tokens=True)))
|
34 |
# > Help requested.
|
35 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
- text-generation-inference
|
13 |
---
|
14 |
|
15 |
+
# Generate title for conversation
|
16 |
+
|
17 |
+
## How to use
|
18 |
|
19 |
```python
|
20 |
model_name = "theblackcat102/alpaca-title-generator-mt0-large"
|
|
|
34 |
print('-----')
|
35 |
print("{}".format(tokenizer.decode(beam_output, skip_special_tokens=True)))
|
36 |
# > Help requested.
|
37 |
+
```
|
38 |
+
|
39 |
+
## Generate title data
|
40 |
+
|
41 |
+
data was generated using response pair from `yahma/alpaca-cleaned` and use openai turbo model for title.
|
42 |
+
|
43 |
+
```
|
44 |
+
""
|
45 |
+
user: {}
|
46 |
+
assistant: {}
|
47 |
+
""
|
48 |
+
|
49 |
+
Generate a very short title within 5 words of the conversation above, title must be as relevant as possible. Title language must be same as the context
|
50 |
+
|
51 |
+
TITLE:
|
52 |
+
```
|
53 |
+
|