Safetensors
Chinese
English
glm4
Azure99 commited on
Commit
a2d2c32
·
verified ·
1 Parent(s): ae923f4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -3
README.md CHANGED
@@ -1,3 +1,71 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - Azure99/blossom-v6.1-sft-stage1
5
+ - Azure99/blossom-v6.1-sft-stage2
6
+ language:
7
+ - zh
8
+ - en
9
+ base_model:
10
+ - THUDM/GLM-4-32B-Base-0414
11
+
12
+ ---
13
+
14
+ # **BLOSSOM-V6.1-GLM-32B**
15
+
16
+ [💻Github](https://github.com/Azure99/BlossomLM) • [🚀Blossom Chat Demo](https://blossom-chat.com/)
17
+
18
+ ### Introduction
19
+
20
+ Blossom is a powerful open-source conversational large language model that provides reproducible post-training data, dedicated to delivering an open, powerful, and cost-effective locally accessible general-purpose model for everyone.
21
+
22
+ | Chat Model | Resource | Base Model |
23
+ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------- |
24
+ | [Blossom-V6.1-32B](https://huggingface.co/Azure99/Blossom-V6.1-32B) | [Demo](https://huggingface.co/spaces/Azure99/Blossom-V6.1-32B-AWQ-Demo) [AWQ](https://huggingface.co/Azure99/Blossom-V6.1-32B-AWQ) [GGUF](https://huggingface.co/Azure99/Blossom-V6.1-32B-GGUF) [Ollama](https://ollama.com/azure99/blossom-v6.1:32b) | Qwen2.5-32B |
25
+ | [Blossom-V6.1-GLM-32B](https://huggingface.co/Azure99/Blossom-V6.1-GLM-32B) | [GGUF](https://huggingface.co/Azure99/Blossom-V6.1-GLM-32B-GGUF) [Ollama](https://ollama.com/azure99/blossom-v6.1:glm-32b) | GLM-4-32B-Base-0414 |
26
+ | [Blossom-V6.1-14B](https://huggingface.co/Azure99/Blossom-V6.1-14B) | [Demo](https://huggingface.co/spaces/Azure99/Blossom-V6.1-14B-Demo) [AWQ](https://huggingface.co/Azure99/Blossom-V6.1-14B-AWQ) [GGUF](https://huggingface.co/Azure99/Blossom-V6.1-14B-GGUF) [Ollama](https://ollama.com/azure99/blossom-v6.1:14b) | Qwen3-14B-Base |
27
+ | [Blossom-V6.1-8B](https://huggingface.co/Azure99/Blossom-V6.1-8B) | [Demo](https://huggingface.co/spaces/Azure99/Blossom-V6.1-8B-Demo) [AWQ](https://huggingface.co/Azure99/Blossom-V6.1-8B-AWQ) [GGUF](https://huggingface.co/Azure99/Blossom-V6.1-8B-GGUF) [Ollama](https://ollama.com/azure99/blossom-v6.1:8b) | Qwen3-8B-Base |
28
+
29
+ Hint: Blossom-V6.1-GLM-32B performs better than Blossom-V6.1-32B on everyday tasks.
30
+
31
+ You can find the training data here: [Blossom-V6.1-SFT-Stage1](https://huggingface.co/datasets/Azure99/blossom-v6.1-sft-stage1) (1 epoch)、[Blossom-V6.1-SFT-Stage2](https://huggingface.co/datasets/Azure99/blossom-v6.1-sft-stage2) (3 epoch).
32
+
33
+ ### **Data Synthesis Workflow Overview**
34
+
35
+ Primarily employs three cost-effective models: Deepseek-V3, Gemini 2.5 Flash, and Doubao-Pro-32K (denoted as A, B, C)—to regenerate responses under different scenarios using tailored synthesis strategies.
36
+
37
+ For example:
38
+
39
+ - In objective scenarios like mathematics (where answers are unique), Model A first generates responses as a "teacher." If reference answers exist in the source data, Model B verifies the correctness of A's responses against them. If no reference answers exist, Model C generates a second response, and Model B checks consistency between A and C's outputs. Inconsistent responses are filtered out.
40
+ - For subjective scenarios, three models cross-evaluate each other. For instance, Models A and B generate responses to a question, and Model C evaluates which is better. The superior response may be retained as training data or used for preference data construction. To mitigate model bias, roles (respondent/evaluator) are randomly assigned to A, B, and C in each instance.
41
+
42
+ Additional rule-based filtering is applied, such as:
43
+
44
+ - N-Gram filtering to remove data with many repetitions.
45
+ - Discarding questions containing toxic content that triggers teacher model refusals.
46
+
47
+ Further technical details will be released in the future. The data is synthesized by the [🌸BlossomData](https://github.com/Azure99/BlossomData) framework.
48
+
49
+ ### Inference
50
+
51
+ ```python
52
+ from transformers import AutoModelForCausalLM, AutoTokenizer
53
+
54
+ MODEL = "Azure99/Blossom-V6.1-GLM-32B"
55
+
56
+ model = AutoModelForCausalLM.from_pretrained(MODEL)
57
+ tokenizer = AutoTokenizer.from_pretrained(MODEL)
58
+
59
+ messages = [
60
+ {"role": "user", "content": "北京有什么好吃的"}
61
+ ]
62
+
63
+ formatted_input = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
64
+ input_ids = tokenizer([formatted_input], return_tensors="pt").to(model.device).input_ids
65
+ generated_ids = model.generate(input_ids, max_new_tokens=512)
66
+ generated_ids = [
67
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(input_ids, generated_ids)
68
+ ]
69
+
70
+ print(tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0])
71
+ ```