mrfakename
commited on
Commit
•
dd40f6a
1
Parent(s):
24df868
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
license_name: identity
|
4 |
+
task_categories:
|
5 |
+
- text-generation
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
tags:
|
9 |
+
- identity
|
10 |
+
pretty_name: Identity
|
11 |
+
size_categories:
|
12 |
+
- 1K<n<10K
|
13 |
+
---
|
14 |
+
# Identity
|
15 |
+
|
16 |
+
Do your models keep referring to themselves by the wrong name? This dataset is an attempt to train models to have a consistent identity.
|
17 |
+
|
18 |
+
This dataset contains around 1000 short conversations where the user asks about the identity of the assistant. The assistant replies with its name and developer. You can customize the dataset for your own model.
|
19 |
+
|
20 |
+
## Usage
|
21 |
+
|
22 |
+
**Important!** Do not use an unmodified version of this dataset to train your models. Make sure to run the code below to generate dataset with the correct identity.
|
23 |
+
|
24 |
+
```python
|
25 |
+
# Replace with your model's identity
|
26 |
+
MODEL_NAME = 'Assistant'
|
27 |
+
MODEL_DEVELOPER = 'Developer'
|
28 |
+
RESULT_DATASET_ID = '<your_username>/<repo_id>' # Where do you want to push the dataset?
|
29 |
+
|
30 |
+
# Load the dataset
|
31 |
+
from datasets import load_dataset
|
32 |
+
|
33 |
+
dataset = load_dataset('mrfakename/identity', split='train')
|
34 |
+
|
35 |
+
# Replace instances of "Assistant" and "Company" with identity
|
36 |
+
def replace_identity(example):
|
37 |
+
messages = example['conversations']
|
38 |
+
for message in messages:
|
39 |
+
message['value'] = message['value'].replace('Assistant', MODEL_NAME).replace('Developer', MODEL_DEVELOPER)
|
40 |
+
return {'conversations': messages}
|
41 |
+
|
42 |
+
# Apply the identity
|
43 |
+
dataset = dataset.map(replace_identity)
|
44 |
+
|
45 |
+
# Push to the hub
|
46 |
+
dataset.push_to_hub(RESULT_DATASET_ID)
|
47 |
+
```
|
48 |
+
|
49 |
+
## License
|
50 |
+
|
51 |
+
This dataset is free to use. If you redistribute a modified (or unmodified) version of this dataset, please include a link back to this original dataset. If you train a model on this dataset, attribution is not required but much appreciated.
|
52 |
+
|
53 |
+
THE DATASET IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS DATASET INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS DATASET.
|