victormiller
commited on
Commit
•
843d8ac
1
Parent(s):
8443d66
Create README.md
Browse files
README.md
CHANGED
@@ -1,19 +1,31 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
datasets:
|
4 |
-
-
|
5 |
-
- icybee/share_gpt_90k_v1
|
6 |
language:
|
7 |
- en
|
8 |
widget:
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
library_name: transformers
|
18 |
pipeline_tag: text-generation
|
19 |
tags:
|
@@ -23,7 +35,7 @@ tags:
|
|
23 |
# AmberSafe
|
24 |
|
25 |
|
26 |
-
We present AmberSafe,
|
27 |
|
28 |
## Model Description
|
29 |
|
@@ -35,7 +47,7 @@ We present AmberSafe, a model finetuned for safety using [LLM360/AmberChat](http
|
|
35 |
- [Fully processed Amber pretraining data](https://huggingface.co/datasets/LLM360/AmberDatasets)
|
36 |
|
37 |
|
38 |
-
# Loading
|
39 |
|
40 |
```python
|
41 |
import torch
|
@@ -45,7 +57,7 @@ tokenizer = LlamaTokenizer.from_pretrained("LLM360/AmberSafe")
|
|
45 |
model = LlamaForCausalLM.from_pretrained("LLM360/AmberSafe")
|
46 |
|
47 |
#template adapated from fastchat
|
48 |
-
template= "###Human: {prompt}\n###Assistant:"
|
49 |
|
50 |
prompt = "How do I mount a tv to drywall safely?"
|
51 |
|
@@ -60,14 +72,13 @@ Alternatively, you may use [FastChat](https://github.com/lm-sys/FastChat):
|
|
60 |
python3 -m fastchat.serve.cli --model-path LLM360/AmberSafe
|
61 |
```
|
62 |
|
63 |
-
#
|
64 |
|
65 |
## DataMix
|
66 |
| Subset | Number of rows | License |
|
67 |
| ----------- | ----------- | ----------- |
|
68 |
-
|
|
69 |
-
|
|
70 |
-
| Total | 233k | |
|
71 |
|
72 |
## Hyperparameters
|
73 |
| Hyperparameter | Value |
|
@@ -96,7 +107,8 @@ python3 -m fastchat.serve.cli --model-path LLM360/AmberSafe
|
|
96 |
| Model | MT-Bench |
|
97 |
|------------------------------------------------------|------------------------------------------------------------|
|
98 |
| LLM360/Amber 359 | 2.48750 |
|
99 |
-
|
|
|
|
100 |
|
101 |
# Citation
|
102 |
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
datasets:
|
4 |
+
- PKU-Alignment/PKU-SafeRLHF
|
|
|
5 |
language:
|
6 |
- en
|
7 |
widget:
|
8 |
+
- example_title: example 1
|
9 |
+
text: How do I mount a tv to drywall safely?
|
10 |
+
output:
|
11 |
+
text: >-
|
12 |
+
Mounting a TV to drywall safely is crucial to ensure the longevity of your
|
13 |
+
TV and the wall. Here's a step-by-step guide on how to do it safely:
|
14 |
+
1. Choose the right mount: Choose a mount that is compatible with your TV and the wall. Make sure the mount is rated for drywall and not just wood or concrete.
|
15 |
+
2. Prepare the wall: Before mounting the TV, make sure the wall is clean and free from any debris or paint. Use a stud finder to locate the studs in the wall.
|
16 |
+
3. Install the mount: Follow the manufacturer's instructions for mounting the TV to the wall. Use appropriate hardware and tools to secure the mount to the wall.
|
17 |
+
4. Level the TV: Level the TV on the mount using a spirit level or a leveling kit provided by the mount manufacturer.
|
18 |
+
5. Attach the TV to the mount: Attach the TV to the mount using the appropriate hardware and tools. Tighten the bolts and screws to ensure the TV is securely attached.
|
19 |
+
6. Connect the cables: Connect the TV cables to the appropriate ports on the back of the TV and the mount.
|
20 |
+
7. Test the mount: Test the mount to ensure it's secure and stable. Adjust the mount as needed to ensure the TV is level and secure.
|
21 |
+
Mounting a TV to drywall safely is crucial to avoid damaging the wall or the TV. Follow these steps carefully and use appropriate tools and hardware to ensure a secure and stable installation.
|
22 |
+
- example_title: example 2
|
23 |
+
text: Happy is to sad as calm is to _.
|
24 |
+
output:
|
25 |
+
text: >-
|
26 |
+
The adjective that can be used to describe the opposite of calm is
|
27 |
+
"anxious" or "stressed." So, from happy to sad, we can say that happy is
|
28 |
+
to sad as calm is to anxious or stressed.
|
29 |
library_name: transformers
|
30 |
pipeline_tag: text-generation
|
31 |
tags:
|
|
|
35 |
# AmberSafe
|
36 |
|
37 |
|
38 |
+
We present AmberSafe, an instruction following model finetuned from [LLM360/AmberChat](https://huggingface.co/LLM360/AmberChat).
|
39 |
|
40 |
## Model Description
|
41 |
|
|
|
47 |
- [Fully processed Amber pretraining data](https://huggingface.co/datasets/LLM360/AmberDatasets)
|
48 |
|
49 |
|
50 |
+
# Loading AmberChat
|
51 |
|
52 |
```python
|
53 |
import torch
|
|
|
57 |
model = LlamaForCausalLM.from_pretrained("LLM360/AmberSafe")
|
58 |
|
59 |
#template adapated from fastchat
|
60 |
+
template= "A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.\n### Human: Got any creative ideas for a 10 year old’s birthday?\n### Assistant: Of course! Here are some creative ideas for a 10-year-old's birthday party:\n1. Treasure Hunt: Organize a treasure hunt in your backyard or nearby park. Create clues and riddles for the kids to solve, leading them to hidden treasures and surprises.\n2. Science Party: Plan a science-themed party where kids can engage in fun and interactive experiments. You can set up different stations with activities like making slime, erupting volcanoes, or creating simple chemical reactions.\n3. Outdoor Movie Night: Set up a backyard movie night with a projector and a large screen or white sheet. Create a cozy seating area with blankets and pillows, and serve popcorn and snacks while the kids enjoy a favorite movie under the stars.\n4. DIY Crafts Party: Arrange a craft party where kids can unleash their creativity. Provide a variety of craft supplies like beads, paints, and fabrics, and let them create their own unique masterpieces to take home as party favors.\n5. Sports Olympics: Host a mini Olympics event with various sports and games. Set up different stations for activities like sack races, relay races, basketball shooting, and obstacle courses. Give out medals or certificates to the participants.\n6. Cooking Party: Have a cooking-themed party where the kids can prepare their own mini pizzas, cupcakes, or cookies. Provide toppings, frosting, and decorating supplies, and let them get hands-on in the kitchen.\n7. Superhero Training Camp: Create a superhero-themed party where the kids can engage in fun training activities. Set up an obstacle course, have them design their own superhero capes or masks, and organize superhero-themed games and challenges.\n8. Outdoor Adventure: Plan an outdoor adventure party at a local park or nature reserve. Arrange activities like hiking, nature scavenger hunts, or a picnic with games. Encourage exploration and appreciation for the outdoors.\nRemember to tailor the activities to the birthday child's interests and preferences. Have a great celebration!\n### Human: {prompt}\n### Assistant:"
|
61 |
|
62 |
prompt = "How do I mount a tv to drywall safely?"
|
63 |
|
|
|
72 |
python3 -m fastchat.serve.cli --model-path LLM360/AmberSafe
|
73 |
```
|
74 |
|
75 |
+
# AmberChat Finetuning Details
|
76 |
|
77 |
## DataMix
|
78 |
| Subset | Number of rows | License |
|
79 |
| ----------- | ----------- | ----------- |
|
80 |
+
| PKU-Alignment/PKU-SafeRLHF | 30k | cc-by-nc-4.0 |
|
81 |
+
| Total | 30k | |
|
|
|
82 |
|
83 |
## Hyperparameters
|
84 |
| Hyperparameter | Value |
|
|
|
107 |
| Model | MT-Bench |
|
108 |
|------------------------------------------------------|------------------------------------------------------------|
|
109 |
| LLM360/Amber 359 | 2.48750 |
|
110 |
+
| LLM360/AmberChat | 5.428125 |
|
111 |
+
| **LLM360/AmberSafe** | **0.00000** |
|
112 |
|
113 |
# Citation
|
114 |
|