Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,128 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
base_model: Felladrin/Minueza-32M-Base
|
4 |
+
pipeline_tag: text-generation
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
datasets:
|
8 |
+
- HuggingFaceH4/ultrachat_200k
|
9 |
+
- Felladrin/ChatML-ultrachat_200k
|
10 |
+
widget:
|
11 |
+
- messages:
|
12 |
+
- role: system
|
13 |
+
content: >-
|
14 |
+
You are a career counselor. The user will provide you with an individual looking for guidance in their professional life, and your task is to assist them in determining what careers they are most suited for based on their skills, interests, and experience. You should also conduct research into the various options available, explain the job market trends in different industries, and advice on which qualifications would be beneficial for pursuing particular fields.
|
15 |
+
- role: user
|
16 |
+
content: Heya!
|
17 |
+
- role: assistant
|
18 |
+
content: Hi! How may I help you?
|
19 |
+
- role: user
|
20 |
+
content: >-
|
21 |
+
I am interested in developing a career in software engineering. What
|
22 |
+
would you recommend me to do?
|
23 |
+
- messages:
|
24 |
+
- role: system
|
25 |
+
content: You are a highly knowledgeable assistant. Help the user as much as you can.
|
26 |
+
- role: user
|
27 |
+
content: How I can become a healthier person?
|
28 |
+
- messages:
|
29 |
+
- role: system
|
30 |
+
content: You are a helpful assistant who gives creative responses.
|
31 |
+
- role: user
|
32 |
+
content: Write the specs of a game about mages in a fantasy world.
|
33 |
+
- messages:
|
34 |
+
- role: system
|
35 |
+
content: You are a helpful assistant who answers user's questions with details.
|
36 |
+
- role: user
|
37 |
+
content: Tell me about the pros and cons of social media.
|
38 |
+
- messages:
|
39 |
+
- role: system
|
40 |
+
content: You are a helpful assistant who answers user's questions with details and curiosity.
|
41 |
+
- role: user
|
42 |
+
content: What are some potential applications for quantum computing?
|
43 |
+
inference:
|
44 |
+
parameters:
|
45 |
+
max_new_tokens: 250
|
46 |
+
do_sample: true
|
47 |
+
temperature: 0.65
|
48 |
+
top_p: 0.55
|
49 |
+
top_k: 35
|
50 |
+
repetition_penalty: 1.176
|
51 |
---
|
52 |
+
|
53 |
+
# Minueza-32M-UltraChat: A chat model with 32 million parameters
|
54 |
+
|
55 |
+
- Base model: [Felladrin/Minueza-32M-Base](https://huggingface.co/Felladrin/Minueza-32M-Base)
|
56 |
+
- Dataset: [[ChatML](https://huggingface.co/datasets/Felladrin/ChatML-ultrachat_200k)] [HuggingFaceH4/ultrachat_200k](https://huggingface.co/datasets/HuggingFaceH4/ultrachat_200k)
|
57 |
+
- License: [Apache License 2.0](https://huggingface.co/Felladrin/Minueza-32M-UltraChat/resolve/main/license.txt)
|
58 |
+
- Availability in other ML formats:
|
59 |
+
- GGUF: [Felladrin/gguf-Minueza-32M-UltraChat](https://huggingface.co/Felladrin/gguf-Minueza-32M-UltraChat)
|
60 |
+
- ONNX: [Felladrin/onnx-Minueza-32M-UltraChat](https://huggingface.co/Felladrin/onnx-Minueza-32M-UltraChat)
|
61 |
+
|
62 |
+
## Recommended Prompt Format
|
63 |
+
|
64 |
+
```
|
65 |
+
<|im_start|>system
|
66 |
+
{system_message}<|im_end|>
|
67 |
+
<|im_start|>user
|
68 |
+
{user_message}<|im_end|>
|
69 |
+
<|im_start|>assistant
|
70 |
+
```
|
71 |
+
|
72 |
+
## Recommended Inference Parameters
|
73 |
+
|
74 |
+
```yml
|
75 |
+
do_sample: true
|
76 |
+
temperature: 0.65
|
77 |
+
top_p: 0.55
|
78 |
+
top_k: 35
|
79 |
+
repetition_penalty: 1.176
|
80 |
+
```
|
81 |
+
|
82 |
+
## Usage Example
|
83 |
+
|
84 |
+
```python
|
85 |
+
from transformers import pipeline
|
86 |
+
|
87 |
+
generate = pipeline("text-generation", "Felladrin/Minueza-32M-UltraChat")
|
88 |
+
|
89 |
+
messages = [
|
90 |
+
{
|
91 |
+
"role": "system",
|
92 |
+
"content": "You are a helpful assistant who answers the user's questions with details and curiosity.",
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"role": "user",
|
96 |
+
"content": "What are some potential applications for quantum computing?",
|
97 |
+
},
|
98 |
+
]
|
99 |
+
|
100 |
+
prompt = generate.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
101 |
+
|
102 |
+
output = generate(
|
103 |
+
prompt,
|
104 |
+
max_new_tokens=256,
|
105 |
+
do_sample=True,
|
106 |
+
temperature=0.65,
|
107 |
+
top_k=35,
|
108 |
+
top_p=0.55,
|
109 |
+
repetition_penalty=1.176,
|
110 |
+
)
|
111 |
+
|
112 |
+
print(output[0]["generated_text"])
|
113 |
+
```
|
114 |
+
|
115 |
+
## How it was trained
|
116 |
+
|
117 |
+
This model was trained with [SFTTrainer](https://huggingface.co/docs/trl/main/en/sft_trainer) using the following settings:
|
118 |
+
|
119 |
+
| Hyperparameter | Value |
|
120 |
+
| :--------------------- | :-------------------------------------------- |
|
121 |
+
| Learning rate | 2e-5 |
|
122 |
+
| Total train batch size | 16 |
|
123 |
+
| Max. sequence length | 2048 |
|
124 |
+
| Weight decay | 0 |
|
125 |
+
| Warmup ratio | 0.1 |
|
126 |
+
| Optimizer | Adam with betas=(0.9,0.999) and epsilon=1e-08 |
|
127 |
+
| Scheduler | cosine |
|
128 |
+
| Seed | 42 |
|