Redvodk sovthpaw commited on
Commit
7620583
·
0 Parent(s):

Duplicate from sovthpaw/senter-omni-model

Browse files

Co-authored-by: sovthpaw <sovthpaw@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ qwen2.5-omni-128k-4bit/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ senter-banner.png filter=lfs diff=lfs merge=lfs -text
38
+ thumbnail.png filter=lfs diff=lfs merge=lfs -text
39
+ model_card.png filter=lfs diff=lfs merge=lfs -text
40
+ senter-animated-banner.mp4 filter=lfs diff=lfs merge=lfs -text
41
+ senter-fixed-banner.mp4 filter=lfs diff=lfs merge=lfs -text
42
+ senter-fixed-banner.gif filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - sovthpaw/senter-omni-data
5
+ language:
6
+ - en
7
+ base_model:
8
+ - Qwen/Qwen2.5-Omni-3B
9
+ pipeline_tag: any-to-any
10
+ ---
11
+ <div align="center">
12
+
13
+ ![Alt Text](senter-fixed-banner.gif)
14
+
15
+
16
+ 🤘🤖
17
+
18
+ </div>
19
+
20
+ **🎯 ONE MODEL, ALL MODALITIES, CHAT & EMBED** - Unlike pipeline approaches, Senter-Omni is a single 4B parameter model that truly understands and reasons across text, images, audio, and video simultaneously.
21
+
22
+ **🔓 OPEN & UNCENSORED** - Apache 2.0 licensed with unrestricted responses for maximum utility.
23
+
24
+ **🧠 128K CONTEXT** - Extended RoPE scaling for handling massive documents and conversations.
25
+
26
+ **💾 MEMORY EFFICIENT** - 4-bit quantized model that fits on consumer GPUs while maintaining full multimodal capabilities.
27
+
28
+ ---
29
+ </div>
30
+
31
+ ## 🚀 **Quick Start**
32
+
33
+ ### **Installation**
34
+ ```bash
35
+ git clone https://github.com/SouthpawIN/senter-omni.git
36
+ cd senter-omni
37
+ pip install -r requirements.txt
38
+
39
+ # Download the quantized model (instructions below)
40
+ # Then run the demo:
41
+ python senter_omni_demo.py
42
+ ```
43
+
44
+ ### **Basic Usage**
45
+ ```python
46
+ from omni import OmniClient
47
+
48
+ # Initialize Senter-Omni
49
+ client = OmniClient()
50
+
51
+ # Streaming chat
52
+ response = client.chat([
53
+ {"role": "user", "content": "Hello Senter!"}
54
+ ], stream=True)
55
+
56
+ # Multimodal chat with image
57
+ response = client.chat([
58
+ {"role": "user", "content": [
59
+ {"type": "image", "image": "photo.jpg"},
60
+ {"type": "text", "text": "What do you see?"}
61
+ ]}
62
+ ])
63
+
64
+ # Cross-modal embeddings
65
+ embedding = client.embed("any content", modality="auto")
66
+ ```
67
+
68
+ ---
69
+
70
+ ## 🎭 **Multimodal Capabilities**
71
+
72
+ ### **Text Understanding & Generation**
73
+ - **Mathematical Reasoning**: Step-by-step problem solving
74
+ - **Code Generation**: Python, JavaScript, and more
75
+ - **Creative Writing**: Stories, scripts, poetry
76
+ - **Technical Analysis**: Complex explanations and documentation
77
+
78
+ ### **Visual Understanding**
79
+ - **Image Analysis**: Detailed descriptions of visual content
80
+ - **Geometric Recognition**: Shapes, colors, spatial relationships
81
+ - **Creative Interpretation**: Stories inspired by images
82
+ - **Technical Diagrams**: Understanding charts, graphs, schematics
83
+
84
+ ### **Audio Processing**
85
+ - **Sound Analysis**: Identifying audio content and patterns
86
+ - **Speech Understanding**: Transcribing and interpreting spoken content
87
+ - **Music Analysis**: Recognizing musical elements and genres
88
+ - **Environmental Audio**: Identifying sounds from various sources
89
+
90
+ ### **Cross-Modal Reasoning**
91
+ - **Unified Understanding**: Connecting information across modalities
92
+ - **Contextual Analysis**: Using multiple inputs for better reasoning
93
+ - **Creative Synthesis**: Combining visual, audio, and text for rich responses
94
+
95
+ ### **Model Specifications**
96
+ - **Parameters**: 4B (quantized to 4-bit)
97
+ - **Context Length**: 128K tokens (RoPE scaled)
98
+ - **Memory Usage**: ~8GB VRAM
99
+ - **Inference Speed**: Real-time streaming
100
+ - **Modalities**: Text, Image, Audio, Video
101
+
102
+ ### **Embedding Capabilities**
103
+ - **Unified Space**: 1024D embeddings for all modalities
104
+ - **Cross-Modal Search**: Find similar content across text, images, audio
105
+ - **Similarity Matching**: Cosine similarity in unified space
106
+ - **Memory Efficient**: Same model for chat and embeddings
107
+
108
+ ---
109
+
110
+ ## 🎯 **Real Examples**
111
+
112
+ ### **Image Analysis**
113
+ ```python
114
+ # Analyze geometric shapes
115
+ response = client.chat([
116
+ {"role": "user", "content": [
117
+ {"type": "image", "image": "test_assets/real_test_image.jpg"},
118
+ {"type": "text", "text": "What geometric shapes do you see?"}
119
+ ]}
120
+ ])
121
+
122
+ # Output: "I see a red square, blue square, and green oval arranged vertically"
123
+ ```
124
+
125
+ ### **Audio Understanding**
126
+ ```python
127
+ # Process audio content
128
+ response = client.chat([
129
+ {"role": "user", "content": [
130
+ {"type": "audio", "audio": "test_assets/real_test_audio.wav"},
131
+ {"type": "text", "text": "What do you hear?"}
132
+ ]}
133
+ ])
134
+
135
+ # Output: "I hear an electric hum from a device like a radio or TV"
136
+ ```
137
+
138
+ ### **Creative Multimodal Storytelling**
139
+ ```python
140
+ # Create stories from images
141
+ response = client.chat([
142
+ {"role": "user", "content": [
143
+ {"type": "image", "image": "shapes.jpg"},
144
+ {"type": "text", "text": "Create a story inspired by this image"}
145
+ ]}
146
+ ])
147
+
148
+ # Output: Rich, creative stories combining visual elements with narrative
149
+ ```
150
+
151
+ ### **Cross-Modal Embeddings**
152
+ ```python
153
+ # Embed different modalities
154
+ text_emb = client.embed("beautiful mountain landscape")
155
+ image_emb = client.embed("mountain_photo.jpg", modality="image")
156
+ audio_emb = client.embed("nature_sounds.wav", modality="audio")
157
+
158
+ # All embeddings are in the same 1024D space for comparison
159
+ ```
160
+
161
+ ---
162
+
163
+ ## 🔧 **Technical Architecture**
164
+
165
+ ### **Model Details**
166
+ - **Base**: Qwen2.5-Omni-3B (Apache 2.0 licensed)
167
+ - **Quantization**: 4-bit NF4 for memory efficiency
168
+ - **Context Extension**: Yarn RoPE scaling to 128K
169
+ - **Streaming**: Custom TimingStreamer for real-time output
170
+ - **Embeddings**: Hash-based unified 1024D space
171
+
172
+ ### **Training Data**
173
+ - **131,893 samples** from multiple high-quality datasets:
174
+ - 50,000 ShareGPT conversations (chat)
175
+ - 30,000 AgentCode samples (function calling)
176
+ - 20,000 Stack Overflow (coding)
177
+ - 30,000 Hermes-3 (instruction tuning)
178
+ - 1,893 Hermes function calling
179
+
180
+ ### **Key Features**
181
+ - **XML Tag Support**: `<think>`, `<notepad>`, `<system>`, `<user>`, `<assistant>`
182
+ - **Uncensored Responses**: No content restrictions
183
+ - **Function Calling**: Tool integration capabilities
184
+ - **Memory Efficient**: Single model for chat and embeddings
185
+
186
+ ---
187
+
188
+ ## 📦 **Installation & Setup**
189
+
190
+ ### **1. Clone Repository**
191
+ ```bash
192
+ git clone https://github.com/SouthpawIN/senter-omni.git
193
+ cd senter-omni
194
+ ```
195
+
196
+ ### **2. Install Dependencies**
197
+ ```bash
198
+ pip install -r requirements.txt
199
+ ```
200
+
201
+ ### **3. Download Model**
202
+ The quantized model (3.5GB) is hosted on Hugging Face due to GitHub's 100MB file limit:
203
+
204
+ - **Dataset**: https://huggingface.co/datasets/SouthpawIN/senter-omni-data
205
+
206
+ ```bash
207
+ # Option 1: Download from Hugging Face (Recommended)
208
+ git lfs install
209
+ git clone https://huggingface.co/SouthpawIN/senter-omni-model
210
+ cp -r senter-omni-model/* ./senter_omni_128k/
211
+
212
+ # Option 2: Manual download
213
+ # Download from: https://huggingface.co/SouthpawIN/senter-omni-model
214
+ ```
215
+
216
+ ## 🎮 **Interactive Demo**
217
+
218
+ The comprehensive demo showcases all capabilities:
219
+
220
+ ```bash
221
+ python senter_omni_demo.py
222
+ ```
223
+
224
+ **Demo Sections:**
225
+ 1. **🎓 Training Capabilities** - Dataset overview and training features
226
+ 2. **💬 Multimodal Chat** - Text, image, audio, and combined processing
227
+ 3. **🔍 Cross-Modal Embeddings** - Unified embedding space demonstration
228
+ 4. **🚀 Building Guide** - API usage and integration examples
229
+
230
+ ---
231
+
232
+ ## 🛠️ **API Reference**
233
+
234
+ ### **Core Methods**
235
+
236
+ #### **`client.chat(messages, **kwargs)`**
237
+ ```python
238
+ # Basic chat
239
+ response = client.chat([
240
+ {"role": "user", "content": "Hello!"}
241
+ ])
242
+
243
+ # With parameters
244
+ response = client.chat(
245
+ messages=[{"role": "user", "content": "Hello!"}],
246
+ max_tokens=256,
247
+ temperature=0.7,
248
+ stream=True
249
+ )
250
+
251
+ # Multimodal
252
+ response = client.chat([
253
+ {"role": "user", "content": [
254
+ {"type": "image", "image": "photo.jpg"},
255
+ {"type": "text", "text": "Describe this image"}
256
+ ]}
257
+ ])
258
+ ```
259
+
260
+ #### **`client.embed(content, modality="auto")`**
261
+ ```python
262
+ # Text embedding
263
+ emb = client.embed("sample text")
264
+
265
+ # Image embedding
266
+ emb = client.embed("image.jpg", modality="image")
267
+
268
+ # Audio embedding
269
+ emb = client.embed("audio.wav", modality="audio")
270
+
271
+ # Auto-detect modality
272
+ emb = client.embed("[IMAGE] photo.jpg") # Detects as image
273
+ ```
274
+
275
+ #### **`client.cross_search(query, top_k=5)`**
276
+ ```python
277
+ # Search across modalities
278
+ results = client.cross_search("mountain landscape")
279
+ # Returns: {"text": [...], "image": [...], "audio": [...]}
280
+ ```
281
+
282
+ #### **`client.retrieve_context(query, context_window=5)`**
283
+ ```python
284
+ # Get relevant context
285
+ context = client.retrieve_context("nature scenes")
286
+ # Returns multimodal context items
287
+ ```
288
+
289
+ ---
290
+
291
+ ### **Memory Usage**
292
+ - **Model Loading**: ~8GB VRAM
293
+ - **Inference**: ~10GB VRAM peak
294
+ - **Embeddings**: Shared model (no additional memory)
295
+ - **Context (128K)**: ~2GB additional for full context
296
+
297
+ ### **Development Setup**
298
+ ```bash
299
+ git clone https://github.com/SouthpawIN/senter-omni.git
300
+ cd senter-omni
301
+ pip install -r requirements.txt
302
+ python senter_omni_demo.py # Test installation
303
+ ```
304
+ ---
305
+
306
+ ## 📄 **License**
307
+
308
+ **Apache 2.0 License** - See [LICENSE](LICENSE) for details.
309
+
310
+ This project uses:
311
+ - **Qwen2.5-Omni**: Apache 2.0 (Alibaba Cloud)
312
+ - **Training Datasets**: Various open licenses
313
+ - **Code**: Apache 2.0
314
+
315
+ ---
316
+
317
+ ## 🙏 **Acknowledgments**
318
+
319
+ - **Alibaba Cloud** for Qwen2.5-Omni architecture
320
+ - **Nous Research** for Hermes dataset and inspiration
321
+ - **Alignment Lab AI** for development and training
322
+ - **Unsloth** for efficient training framework
323
+ - **HuggingFace** for model hosting and tools
324
+ - **Open Source Community** for datasets and tools
325
+ ---
326
+
327
+ <div align="center">
328
+
329
+ **🎭 EXPERIENCE THE FUTURE OF MULTIMODAL AI WITH SENTER-OMNI**
330
+
331
+ *Built with ❤️ by sovthpaw at Alignment Lab AI*
332
+
333
+ Donations:
334
+
335
+ https://www.paypal.me/Sellgames1l
336
+ </div>
hf_model_readme.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - SouthpawIN/senter-omni-data
5
+ language:
6
+ - en
7
+ base_model:
8
+ - unsloth/Qwen2.5-Omni-3B-GGUF
9
+ tags:
10
+ - any-to-any
11
+ pipeline_tag: text-generation
12
+ ---
13
+
14
+ # 🎭 Senter-Omni
15
+
16
+ **Multimodal AI Assistant with Cross-Modal Embeddings**
17
+
18
+ ![Senter-Omni Fixed Banner](https://github.com/SouthpawIN/senter-omni/raw/main/senter-fixed-banner.gif)
19
+
20
+ ## 🌟 Overview
21
+
22
+ Senter-Omni is a 4B parameter multimodal AI assistant that understands and reasons across text, images, audio, and video simultaneously. Built on Qwen2.5-Omni with extended 128K context and Apache 2.0 licensing.
23
+
24
+ ## ✨ Key Features
25
+
26
+ - **🎯 ONE MODEL, ALL MODALITIES** - Single model for text, image, audio, and video
27
+ - **⚡ TRUE STREAMING** - Real-time token generation (~0.234s time-to-first-token)
28
+ - **🔓 OPEN & UNCENSORED** - Apache 2.0 licensed with unrestricted responses
29
+ - **🧠 128K CONTEXT** - Extended RoPE scaling for massive documents
30
+ - **💾 MEMORY EFFICIENT** - 4-bit quantized model for consumer GPUs
31
+ - **🔍 CROSS-MODAL EMBEDDINGS** - Unified 1024D space for all modalities
32
+
33
+ ## 🚀 Quick Start
34
+
35
+ ```python
36
+ from omni import OmniClient
37
+
38
+ # Initialize Senter-Omni
39
+ client = OmniClient()
40
+
41
+ # Multimodal chat
42
+ response = client.chat([
43
+ {"role": "user", "content": [
44
+ {"type": "image", "image": "photo.jpg"},
45
+ {"type": "text", "text": "What do you see?"}
46
+ ]}
47
+ ])
48
+
49
+ # Cross-modal embeddings
50
+ embedding = client.embed("any content", modality="auto")
51
+ ```
52
+
53
+ ## 📊 Model Specifications
54
+
55
+ - **Parameters**: 4B (quantized to 4-bit)
56
+ - **Context Length**: 128K tokens (RoPE scaled)
57
+ - **Memory Usage**: ~8GB VRAM
58
+ - **Modalities**: Text, Image, Audio, Video
59
+ - **License**: Apache 2.0
60
+
61
+ ## 🔗 Links
62
+
63
+ - **GitHub Repository**: https://github.com/SouthpawIN/senter-omni
64
+ - **Training Dataset**: https://huggingface.co/datasets/SouthpawIN/senter-omni-data
65
+ - **Demo Script**: Run `python senter_omni_demo.py` in the GitHub repo
66
+
67
+ ## 🎯 Performance
68
+
69
+ - **Time to First Token**: ~0.234s
70
+ - **Text Generation**: 2-5 seconds
71
+ - **Image Analysis**: 3-6 seconds
72
+ - **Audio Processing**: 4-8 seconds
73
+ - **Multimodal Chat**: 5-10 seconds
74
+
75
+ ## 🛠️ Installation
76
+
77
+ ```bash
78
+ git clone https://github.com/SouthpawIN/senter-omni.git
79
+ cd senter-omni
80
+ pip install -r requirements.txt
81
+ python senter_omni_demo.py
82
+ ```
83
+
84
+ ## 📝 Citation
85
+
86
+ ```bibtex
87
+ @misc{senter-omni,
88
+ title={Senter-Omni: Multimodal AI Assistant with Cross-Modal Embeddings},
89
+ author={Chris at Alignment Lab AI},
90
+ year={2024},
91
+ url={https://github.com/SouthpawIN/senter-omni}
92
+ }
93
+ ```
94
+
95
+ ---
96
+
97
+ **Built with ❤️ by Chris at Alignment Lab AI**
metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_name": "Qwen2.5-Omni-128K-4bit",
3
+ "original_model": "unsloth/Qwen2.5-Omni-3B",
4
+ "optimization": "4-bit NF4 + Extended RoPE",
5
+ "quantization": "4-bit NF4",
6
+ "rope_scaling": "YaRN",
7
+ "max_context": 131072,
8
+ "original_context": 32768,
9
+ "context_multiplier": 4.0,
10
+ "multimodal_support": true,
11
+ "vision_support": true,
12
+ "audio_support": true,
13
+ "video_support": true,
14
+ "memory_reduction": "50-60%",
15
+ "speed_improvement": "2-3x faster",
16
+ "quality_preservation": "Maintained with Unsloth"
17
+ }
model_card.png ADDED

Git LFS Details

  • SHA256: db92e87df5801c2d0a7c350e7b823d8ad7fea0d5f5d2760b20780157367c94e5
  • Pointer size: 131 Bytes
  • Size of remote file: 419 kB
qwen2.5-omni-128k-4bit/added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|AUDIO|>": 151646,
5
+ "<|IMAGE|>": 151655,
6
+ "<|VIDEO|>": 151656,
7
+ "<|audio_bos|>": 151647,
8
+ "<|audio_eos|>": 151648,
9
+ "<|box_end|>": 151649,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|quad_end|>": 151651,
19
+ "<|quad_start|>": 151650,
20
+ "<|repo_name|>": 151663,
21
+ "<|vision_bos|>": 151652,
22
+ "<|vision_eos|>": 151653,
23
+ "<|vision_pad|>": 151654
24
+ }
qwen2.5-omni-128k-4bit/chat_template.jinja ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {% set audio_count = namespace(value=0) %}{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system
2
+ You are a helpful assistant.<|im_end|>
3
+ {% endif %}<|im_start|>{{ message['role'] }}
4
+ {% if message['content'] is string %}{{ message['content'] }}<|im_end|>
5
+ {% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_bos|><|IMAGE|><|vision_eos|>{% elif content['type'] == 'audio' or 'audio' in content or 'audio_url' in content %}{% set audio_count.value = audio_count.value + 1 %}{% if add_audio_id %}Audio {{ audio_count.value }}: {% endif %}<|audio_bos|><|AUDIO|><|audio_eos|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_bos|><|VIDEO|><|vision_eos|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
6
+ {% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
7
+ {% endif %}
qwen2.5-omni-128k-4bit/config.json ADDED
@@ -0,0 +1,653 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2_5OmniForConditionalGeneration"
4
+ ],
5
+ "dtype": "float16",
6
+ "enable_audio_output": true,
7
+ "enable_talker": true,
8
+ "max_position_embeddings": 131072,
9
+ "model_type": "qwen2_5_omni",
10
+ "pad_token_id": 151654,
11
+ "quantization_config": {
12
+ "_load_in_4bit": true,
13
+ "_load_in_8bit": false,
14
+ "bnb_4bit_compute_dtype": "float16",
15
+ "bnb_4bit_quant_storage": "uint8",
16
+ "bnb_4bit_quant_type": "nf4",
17
+ "bnb_4bit_use_double_quant": true,
18
+ "llm_int8_enable_fp32_cpu_offload": false,
19
+ "llm_int8_has_fp16_weight": false,
20
+ "llm_int8_skip_modules": null,
21
+ "llm_int8_threshold": 6.0,
22
+ "load_in_4bit": true,
23
+ "load_in_8bit": false,
24
+ "quant_method": "bitsandbytes"
25
+ },
26
+ "rope_scaling": {
27
+ "extended_max_position_embeddings": 131072,
28
+ "factor": 2.0,
29
+ "original_max_position_embeddings": 32768,
30
+ "type": "yarn"
31
+ },
32
+ "talker_config": {
33
+ "_name_or_path": "Qwen2.5-Omni-3B/talker",
34
+ "architectures": [
35
+ "Qwen2OmniTalkerForConditionalGeneration"
36
+ ],
37
+ "attention_dropout": 0.0,
38
+ "audio_end_token_id": 151648,
39
+ "audio_start_token_id": 151647,
40
+ "audio_token_index": 151646,
41
+ "dtype": "float16",
42
+ "embedding_size": 2048,
43
+ "head_dim": 64,
44
+ "hidden_act": "silu",
45
+ "hidden_size": 896,
46
+ "image_token_index": 151655,
47
+ "init_std": 0.02,
48
+ "initializer_range": 0.02,
49
+ "intermediate_size": 4864,
50
+ "layer_types": [
51
+ "full_attention",
52
+ "full_attention",
53
+ "full_attention",
54
+ "full_attention",
55
+ "full_attention",
56
+ "full_attention",
57
+ "full_attention",
58
+ "full_attention",
59
+ "full_attention",
60
+ "full_attention",
61
+ "full_attention",
62
+ "full_attention",
63
+ "full_attention",
64
+ "full_attention",
65
+ "full_attention",
66
+ "full_attention",
67
+ "full_attention",
68
+ "full_attention",
69
+ "full_attention",
70
+ "full_attention",
71
+ "full_attention",
72
+ "full_attention",
73
+ "full_attention",
74
+ "full_attention"
75
+ ],
76
+ "max_position_embeddings": 32768,
77
+ "max_window_layers": 28,
78
+ "model_type": "qwen2_5_omni_talker",
79
+ "num_attention_heads": 14,
80
+ "num_hidden_layers": 24,
81
+ "num_key_value_heads": 2,
82
+ "position_id_per_seconds": 25,
83
+ "rms_norm_eps": 1e-06,
84
+ "rope_scaling": {
85
+ "mrope_section": [
86
+ 16,
87
+ 16,
88
+ 0
89
+ ],
90
+ "rope_type": "default",
91
+ "type": "default"
92
+ },
93
+ "rope_theta": 1000000.0,
94
+ "seconds_per_chunk": 2,
95
+ "sliding_window": null,
96
+ "spatial_merge_size": 2,
97
+ "tts_codec_end_token_id": 8294,
98
+ "tts_codec_mask_token_id": 8296,
99
+ "tts_codec_pad_token_id": 8292,
100
+ "tts_codec_start_token_id": 8293,
101
+ "tts_text_end_token_id": 151861,
102
+ "tts_text_pad_token_id": 151859,
103
+ "tts_text_start_token_id": 151860,
104
+ "use_cache": true,
105
+ "use_sliding_window": false,
106
+ "video_token_index": 151656,
107
+ "vision_end_token_id": 151653,
108
+ "vision_start_token_id": 151652,
109
+ "vocab_size": 8448
110
+ },
111
+ "thinker_config": {
112
+ "_name_or_path": "Qwen2.5-Omni-3B/thinker",
113
+ "architectures": [
114
+ "Qwen2OmniNaViTThinkerForConditionalGeneration"
115
+ ],
116
+ "audio_config": {
117
+ "_name_or_path": "",
118
+ "activation_dropout": 0.0,
119
+ "activation_function": "gelu",
120
+ "add_cross_attention": false,
121
+ "architectures": null,
122
+ "attention_dropout": 0.0,
123
+ "bad_words_ids": null,
124
+ "begin_suppress_tokens": null,
125
+ "bos_token_id": null,
126
+ "chunk_size_feed_forward": 0,
127
+ "cross_attention_hidden_size": null,
128
+ "d_model": 1280,
129
+ "decoder_start_token_id": null,
130
+ "diversity_penalty": 0.0,
131
+ "do_sample": false,
132
+ "dropout": 0.0,
133
+ "dtype": null,
134
+ "early_stopping": false,
135
+ "encoder_attention_heads": 20,
136
+ "encoder_ffn_dim": 5120,
137
+ "encoder_layerdrop": 0.0,
138
+ "encoder_layers": 32,
139
+ "encoder_no_repeat_ngram_size": 0,
140
+ "eos_token_id": null,
141
+ "exponential_decay_length_penalty": null,
142
+ "finetuning_task": null,
143
+ "forced_bos_token_id": null,
144
+ "forced_eos_token_id": null,
145
+ "id2label": {
146
+ "0": "LABEL_0",
147
+ "1": "LABEL_1"
148
+ },
149
+ "init_std": 0.02,
150
+ "initializer_range": 0.02,
151
+ "is_decoder": false,
152
+ "is_encoder_decoder": false,
153
+ "label2id": {
154
+ "LABEL_0": 0,
155
+ "LABEL_1": 1
156
+ },
157
+ "length_penalty": 1.0,
158
+ "max_length": 20,
159
+ "max_source_positions": 1500,
160
+ "min_length": 0,
161
+ "model_type": "qwen2_5_omni_audio_encoder",
162
+ "n_window": 100,
163
+ "no_repeat_ngram_size": 0,
164
+ "num_beam_groups": 1,
165
+ "num_beams": 1,
166
+ "num_hidden_layers": 32,
167
+ "num_mel_bins": 128,
168
+ "num_return_sequences": 1,
169
+ "output_attentions": false,
170
+ "output_dim": 2048,
171
+ "output_hidden_states": false,
172
+ "output_scores": false,
173
+ "pad_token_id": null,
174
+ "prefix": null,
175
+ "problem_type": null,
176
+ "pruned_heads": {},
177
+ "remove_invalid_values": false,
178
+ "repetition_penalty": 1.0,
179
+ "return_dict": true,
180
+ "return_dict_in_generate": false,
181
+ "scale_embedding": false,
182
+ "sep_token_id": null,
183
+ "suppress_tokens": null,
184
+ "task_specific_params": null,
185
+ "temperature": 1.0,
186
+ "tf_legacy_loss": false,
187
+ "tie_encoder_decoder": false,
188
+ "tie_word_embeddings": true,
189
+ "tokenizer_class": null,
190
+ "top_k": 50,
191
+ "top_p": 1.0,
192
+ "torchscript": false,
193
+ "typical_p": 1.0,
194
+ "use_bfloat16": false
195
+ },
196
+ "audio_end_token_id": 151648,
197
+ "audio_start_token_id": 151647,
198
+ "audio_token_index": 151646,
199
+ "bos_token_id": 151644,
200
+ "dtype": "float16",
201
+ "eos_token_id": 151645,
202
+ "ignore_index": -100,
203
+ "image_token_index": 151655,
204
+ "init_std": 0.02,
205
+ "initializer_range": 0.02,
206
+ "model_type": "qwen2_5_omni_thinker",
207
+ "pad_token_id": 151643,
208
+ "position_id_per_seconds": 25,
209
+ "seconds_per_chunk": 2,
210
+ "text_config": {
211
+ "_name_or_path": "",
212
+ "add_cross_attention": false,
213
+ "architectures": null,
214
+ "attention_dropout": 0.0,
215
+ "bad_words_ids": null,
216
+ "begin_suppress_tokens": null,
217
+ "bos_token_id": null,
218
+ "chunk_size_feed_forward": 0,
219
+ "cross_attention_hidden_size": null,
220
+ "decoder_start_token_id": null,
221
+ "diversity_penalty": 0.0,
222
+ "do_sample": false,
223
+ "dtype": null,
224
+ "early_stopping": false,
225
+ "encoder_no_repeat_ngram_size": 0,
226
+ "eos_token_id": null,
227
+ "exponential_decay_length_penalty": null,
228
+ "finetuning_task": null,
229
+ "forced_bos_token_id": null,
230
+ "forced_eos_token_id": null,
231
+ "hidden_act": "silu",
232
+ "hidden_size": 2048,
233
+ "id2label": {
234
+ "0": "LABEL_0",
235
+ "1": "LABEL_1"
236
+ },
237
+ "init_std": 0.02,
238
+ "initializer_range": 0.02,
239
+ "intermediate_size": 11008,
240
+ "is_decoder": false,
241
+ "is_encoder_decoder": false,
242
+ "label2id": {
243
+ "LABEL_0": 0,
244
+ "LABEL_1": 1
245
+ },
246
+ "layer_types": [
247
+ "full_attention",
248
+ "full_attention",
249
+ "full_attention",
250
+ "full_attention",
251
+ "full_attention",
252
+ "full_attention",
253
+ "full_attention",
254
+ "full_attention",
255
+ "full_attention",
256
+ "full_attention",
257
+ "full_attention",
258
+ "full_attention",
259
+ "full_attention",
260
+ "full_attention",
261
+ "full_attention",
262
+ "full_attention",
263
+ "full_attention",
264
+ "full_attention",
265
+ "full_attention",
266
+ "full_attention",
267
+ "full_attention",
268
+ "full_attention",
269
+ "full_attention",
270
+ "full_attention",
271
+ "full_attention",
272
+ "full_attention",
273
+ "full_attention",
274
+ "full_attention",
275
+ "full_attention",
276
+ "full_attention",
277
+ "full_attention",
278
+ "full_attention",
279
+ "full_attention",
280
+ "full_attention",
281
+ "full_attention",
282
+ "full_attention"
283
+ ],
284
+ "length_penalty": 1.0,
285
+ "max_length": 20,
286
+ "max_position_embeddings": 32768,
287
+ "max_window_layers": 70,
288
+ "min_length": 0,
289
+ "model_type": "qwen2_5_omni_text",
290
+ "no_repeat_ngram_size": 0,
291
+ "num_attention_heads": 16,
292
+ "num_beam_groups": 1,
293
+ "num_beams": 1,
294
+ "num_hidden_layers": 36,
295
+ "num_key_value_heads": 2,
296
+ "num_return_sequences": 1,
297
+ "output_attentions": false,
298
+ "output_hidden_states": false,
299
+ "output_scores": false,
300
+ "pad_token_id": null,
301
+ "prefix": null,
302
+ "problem_type": null,
303
+ "pruned_heads": {},
304
+ "remove_invalid_values": false,
305
+ "repetition_penalty": 1.0,
306
+ "return_dict": true,
307
+ "return_dict_in_generate": false,
308
+ "rms_norm_eps": 1e-06,
309
+ "rope_scaling": {
310
+ "mrope_section": [
311
+ 16,
312
+ 24,
313
+ 24
314
+ ],
315
+ "rope_type": "default",
316
+ "type": "default"
317
+ },
318
+ "rope_theta": 1000000.0,
319
+ "sep_token_id": null,
320
+ "sliding_window": null,
321
+ "suppress_tokens": null,
322
+ "task_specific_params": null,
323
+ "temperature": 1.0,
324
+ "tf_legacy_loss": false,
325
+ "tie_encoder_decoder": false,
326
+ "tie_word_embeddings": false,
327
+ "tokenizer_class": null,
328
+ "top_k": 50,
329
+ "top_p": 1.0,
330
+ "torchscript": false,
331
+ "typical_p": 1.0,
332
+ "use_bfloat16": false,
333
+ "use_cache": true,
334
+ "use_sliding_window": false,
335
+ "vocab_size": 151936
336
+ },
337
+ "user_token_id": 872,
338
+ "video_token_index": 151656,
339
+ "vision_config": {
340
+ "_name_or_path": "",
341
+ "add_cross_attention": false,
342
+ "architectures": null,
343
+ "bad_words_ids": null,
344
+ "begin_suppress_tokens": null,
345
+ "bos_token_id": null,
346
+ "chunk_size_feed_forward": 0,
347
+ "cross_attention_hidden_size": null,
348
+ "decoder_start_token_id": null,
349
+ "depth": 32,
350
+ "diversity_penalty": 0.0,
351
+ "do_sample": false,
352
+ "dtype": null,
353
+ "early_stopping": false,
354
+ "embed_dim": 1280,
355
+ "encoder_no_repeat_ngram_size": 0,
356
+ "eos_token_id": null,
357
+ "exponential_decay_length_penalty": null,
358
+ "finetuning_task": null,
359
+ "forced_bos_token_id": null,
360
+ "forced_eos_token_id": null,
361
+ "fullatt_block_indexes": [
362
+ 7,
363
+ 15,
364
+ 23,
365
+ 31
366
+ ],
367
+ "hidden_act": "silu",
368
+ "hidden_size": 1280,
369
+ "id2label": {
370
+ "0": "LABEL_0",
371
+ "1": "LABEL_1"
372
+ },
373
+ "in_channels": 3,
374
+ "in_chans": 3,
375
+ "init_std": 0.02,
376
+ "initializer_range": 0.02,
377
+ "intermediate_size": 3420,
378
+ "is_decoder": false,
379
+ "is_encoder_decoder": false,
380
+ "label2id": {
381
+ "LABEL_0": 0,
382
+ "LABEL_1": 1
383
+ },
384
+ "length_penalty": 1.0,
385
+ "max_length": 20,
386
+ "min_length": 0,
387
+ "model_type": "qwen2_5_omni_vision_encoder",
388
+ "no_repeat_ngram_size": 0,
389
+ "num_beam_groups": 1,
390
+ "num_beams": 1,
391
+ "num_heads": 16,
392
+ "num_return_sequences": 1,
393
+ "out_hidden_size": 2048,
394
+ "output_attentions": false,
395
+ "output_hidden_states": false,
396
+ "output_scores": false,
397
+ "pad_token_id": null,
398
+ "patch_size": 14,
399
+ "prefix": null,
400
+ "problem_type": null,
401
+ "pruned_heads": {},
402
+ "remove_invalid_values": false,
403
+ "repetition_penalty": 1.0,
404
+ "return_dict": true,
405
+ "return_dict_in_generate": false,
406
+ "sep_token_id": null,
407
+ "spatial_merge_size": 2,
408
+ "spatial_patch_size": 14,
409
+ "suppress_tokens": null,
410
+ "task_specific_params": null,
411
+ "temperature": 1.0,
412
+ "temporal_patch_size": 2,
413
+ "tf_legacy_loss": false,
414
+ "tie_encoder_decoder": false,
415
+ "tie_word_embeddings": true,
416
+ "tokenizer_class": null,
417
+ "tokens_per_second": 25,
418
+ "top_k": 50,
419
+ "top_p": 1.0,
420
+ "torchscript": false,
421
+ "typical_p": 1.0,
422
+ "use_bfloat16": false,
423
+ "window_size": 112
424
+ },
425
+ "vision_end_token_id": 151653,
426
+ "vision_start_token_id": 151652,
427
+ "vision_token_id": 151654
428
+ },
429
+ "token2wav_config": {
430
+ "bigvgan_config": {
431
+ "_name_or_path": "",
432
+ "add_cross_attention": false,
433
+ "architectures": null,
434
+ "bad_words_ids": null,
435
+ "begin_suppress_tokens": null,
436
+ "bos_token_id": null,
437
+ "chunk_size_feed_forward": 0,
438
+ "cross_attention_hidden_size": null,
439
+ "decoder_start_token_id": null,
440
+ "diversity_penalty": 0.0,
441
+ "do_sample": false,
442
+ "dtype": null,
443
+ "early_stopping": false,
444
+ "encoder_no_repeat_ngram_size": 0,
445
+ "eos_token_id": null,
446
+ "exponential_decay_length_penalty": null,
447
+ "finetuning_task": null,
448
+ "forced_bos_token_id": null,
449
+ "forced_eos_token_id": null,
450
+ "id2label": {
451
+ "0": "LABEL_0",
452
+ "1": "LABEL_1"
453
+ },
454
+ "is_decoder": false,
455
+ "is_encoder_decoder": false,
456
+ "label2id": {
457
+ "LABEL_0": 0,
458
+ "LABEL_1": 1
459
+ },
460
+ "length_penalty": 1.0,
461
+ "max_length": 20,
462
+ "mel_dim": 80,
463
+ "min_length": 0,
464
+ "model_type": "qwen2_5_omni_bigvgan",
465
+ "no_repeat_ngram_size": 0,
466
+ "num_beam_groups": 1,
467
+ "num_beams": 1,
468
+ "num_return_sequences": 1,
469
+ "output_attentions": false,
470
+ "output_hidden_states": false,
471
+ "output_scores": false,
472
+ "pad_token_id": null,
473
+ "prefix": null,
474
+ "problem_type": null,
475
+ "pruned_heads": {},
476
+ "remove_invalid_values": false,
477
+ "repetition_penalty": 1.0,
478
+ "resblock_dilation_sizes": [
479
+ [
480
+ 1,
481
+ 3,
482
+ 5
483
+ ],
484
+ [
485
+ 1,
486
+ 3,
487
+ 5
488
+ ],
489
+ [
490
+ 1,
491
+ 3,
492
+ 5
493
+ ]
494
+ ],
495
+ "resblock_kernel_sizes": [
496
+ 3,
497
+ 7,
498
+ 11
499
+ ],
500
+ "return_dict": true,
501
+ "return_dict_in_generate": false,
502
+ "sep_token_id": null,
503
+ "suppress_tokens": null,
504
+ "task_specific_params": null,
505
+ "temperature": 1.0,
506
+ "tf_legacy_loss": false,
507
+ "tie_encoder_decoder": false,
508
+ "tie_word_embeddings": true,
509
+ "tokenizer_class": null,
510
+ "top_k": 50,
511
+ "top_p": 1.0,
512
+ "torchscript": false,
513
+ "typical_p": 1.0,
514
+ "upsample_initial_channel": 1536,
515
+ "upsample_kernel_sizes": [
516
+ 11,
517
+ 7,
518
+ 4,
519
+ 4,
520
+ 4,
521
+ 4
522
+ ],
523
+ "upsample_rates": [
524
+ 5,
525
+ 3,
526
+ 2,
527
+ 2,
528
+ 2,
529
+ 2
530
+ ],
531
+ "use_bfloat16": false,
532
+ "use_bias_at_final": false
533
+ },
534
+ "dit_config": {
535
+ "_name_or_path": "",
536
+ "add_cross_attention": false,
537
+ "architectures": null,
538
+ "bad_words_ids": null,
539
+ "begin_suppress_tokens": null,
540
+ "block_size": 24,
541
+ "bos_token_id": null,
542
+ "chunk_size_feed_forward": 0,
543
+ "cross_attention_hidden_size": null,
544
+ "decoder_start_token_id": null,
545
+ "depth": 22,
546
+ "dim": 1024,
547
+ "diversity_penalty": 0.0,
548
+ "do_sample": false,
549
+ "dropout": 0.1,
550
+ "dtype": "float32",
551
+ "early_stopping": false,
552
+ "emb_dim": 512,
553
+ "enc_attention_channels": 64,
554
+ "enc_channels": [
555
+ 256,
556
+ 256,
557
+ 256,
558
+ 256,
559
+ 768
560
+ ],
561
+ "enc_dilations": [
562
+ 1,
563
+ 2,
564
+ 3,
565
+ 4,
566
+ 1
567
+ ],
568
+ "enc_dim": 128,
569
+ "enc_emb_dim": 192,
570
+ "enc_global_context": true,
571
+ "enc_kernel_sizes": [
572
+ 5,
573
+ 3,
574
+ 3,
575
+ 3,
576
+ 1
577
+ ],
578
+ "enc_lin_neurons": 192,
579
+ "enc_res2net_scale": 2,
580
+ "enc_se_channels": 64,
581
+ "encoder_no_repeat_ngram_size": 0,
582
+ "eos_token_id": null,
583
+ "exponential_decay_length_penalty": null,
584
+ "ff_mult": 2,
585
+ "finetuning_task": null,
586
+ "forced_bos_token_id": null,
587
+ "forced_eos_token_id": null,
588
+ "head_dim": 64,
589
+ "heads": 16,
590
+ "hidden_size": 1024,
591
+ "id2label": {
592
+ "0": "LABEL_0",
593
+ "1": "LABEL_1"
594
+ },
595
+ "is_decoder": false,
596
+ "is_encoder_decoder": false,
597
+ "label2id": {
598
+ "LABEL_0": 0,
599
+ "LABEL_1": 1
600
+ },
601
+ "length_penalty": 1.0,
602
+ "look_ahead_layers": [
603
+ 10
604
+ ],
605
+ "look_backward_layers": [
606
+ 0,
607
+ 20
608
+ ],
609
+ "max_length": 20,
610
+ "max_position_embeddings": 32768,
611
+ "mel_dim": 80,
612
+ "min_length": 0,
613
+ "model_type": "qwen2_5_omni_dit",
614
+ "no_repeat_ngram_size": 0,
615
+ "num_attention_heads": 16,
616
+ "num_beam_groups": 1,
617
+ "num_beams": 1,
618
+ "num_embeds": 8193,
619
+ "num_hidden_layers": 22,
620
+ "num_return_sequences": 1,
621
+ "output_attentions": false,
622
+ "output_hidden_states": false,
623
+ "output_scores": false,
624
+ "pad_token_id": null,
625
+ "prefix": null,
626
+ "problem_type": null,
627
+ "pruned_heads": {},
628
+ "remove_invalid_values": false,
629
+ "repeats": 2,
630
+ "repetition_penalty": 1.0,
631
+ "return_dict": true,
632
+ "return_dict_in_generate": false,
633
+ "rope_theta": 10000.0,
634
+ "sep_token_id": null,
635
+ "suppress_tokens": null,
636
+ "task_specific_params": null,
637
+ "temperature": 1.0,
638
+ "tf_legacy_loss": false,
639
+ "tie_encoder_decoder": false,
640
+ "tie_word_embeddings": true,
641
+ "tokenizer_class": null,
642
+ "top_k": 50,
643
+ "top_p": 1.0,
644
+ "torchscript": false,
645
+ "typical_p": 1.0,
646
+ "use_bfloat16": false
647
+ },
648
+ "dtype": "float16",
649
+ "model_type": "qwen2_5_omni_token2wav"
650
+ },
651
+ "transformers_version": "4.56.0",
652
+ "unsloth_fixed": true
653
+ }
qwen2.5-omni-128k-4bit/generation_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "transformers_version": "4.56.0"
4
+ }
qwen2.5-omni-128k-4bit/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
qwen2.5-omni-128k-4bit/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6381a50ed1bc99b6a340e232074c4481b7853cff2a57a53830492aa0765dfcb7
3
+ size 3538950941
qwen2.5-omni-128k-4bit/preprocessor_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 300,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 128,
6
+ "hop_length": 160,
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "max_pixels": 12845056,
19
+ "merge_size": 2,
20
+ "min_pixels": 3136,
21
+ "n_fft": 400,
22
+ "n_samples": 4800000,
23
+ "nb_max_frames": 30000,
24
+ "padding_side": "right",
25
+ "padding_value": 0.0,
26
+ "patch_size": 14,
27
+ "processor_class": "Qwen2_5OmniProcessor",
28
+ "return_attention_mask": true,
29
+ "sampling_rate": 16000,
30
+ "temporal_patch_size": 2
31
+ }
qwen2.5-omni-128k-4bit/special_tokens_map.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|AUDIO|>",
6
+ "<|audio_bos|>",
7
+ "<|audio_eos|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_bos|>",
12
+ "<|vision_eos|>",
13
+ "<|vision_pad|>",
14
+ "<|IMAGE|>",
15
+ "<|VIDEO|>"
16
+ ],
17
+ "audio_bos_token": "<|audio_bos|>",
18
+ "audio_eos_token": "<|audio_eos|>",
19
+ "audio_token": "<|AUDIO|>",
20
+ "eos_token": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "image_token": "<|IMAGE|>",
28
+ "pad_token": {
29
+ "content": "<|vision_pad|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ },
35
+ "video_token": "<|VIDEO|>",
36
+ "vision_bos_token": "<|vision_bos|>",
37
+ "vision_eos_token": "<|vision_eos|>"
38
+ }
qwen2.5-omni-128k-4bit/spk_dict.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a05609b28f5d42b7b748f0f07592545c8f1f6885b9ae8fff64baf56e86b2a18
3
+ size 259544
qwen2.5-omni-128k-4bit/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8441917e39ae0244e06d704b95b3124795cec478e297f9afac39ba670d7e9d99
3
+ size 11421870
qwen2.5-omni-128k-4bit/tokenizer_config.json ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|AUDIO|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|audio_bos|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|audio_eos|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_bos|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_eos|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|IMAGE|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|VIDEO|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "151657": {
117
+ "content": "<tool_call>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": false
123
+ },
124
+ "151658": {
125
+ "content": "</tool_call>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": false
131
+ },
132
+ "151659": {
133
+ "content": "<|fim_prefix|>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": false
139
+ },
140
+ "151660": {
141
+ "content": "<|fim_middle|>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": false
147
+ },
148
+ "151661": {
149
+ "content": "<|fim_suffix|>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": false
155
+ },
156
+ "151662": {
157
+ "content": "<|fim_pad|>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": false
163
+ },
164
+ "151663": {
165
+ "content": "<|repo_name|>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": false
171
+ },
172
+ "151664": {
173
+ "content": "<|file_sep|>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": false
179
+ }
180
+ },
181
+ "additional_special_tokens": [
182
+ "<|im_start|>",
183
+ "<|im_end|>",
184
+ "<|AUDIO|>",
185
+ "<|audio_bos|>",
186
+ "<|audio_eos|>",
187
+ "<|box_end|>",
188
+ "<|quad_start|>",
189
+ "<|quad_end|>",
190
+ "<|vision_bos|>",
191
+ "<|vision_eos|>",
192
+ "<|vision_pad|>",
193
+ "<|IMAGE|>",
194
+ "<|VIDEO|>"
195
+ ],
196
+ "audio_bos_token": "<|audio_bos|>",
197
+ "audio_eos_token": "<|audio_eos|>",
198
+ "audio_token": "<|AUDIO|>",
199
+ "bos_token": null,
200
+ "clean_up_tokenization_spaces": false,
201
+ "eos_token": "<|im_end|>",
202
+ "errors": "replace",
203
+ "extra_special_tokens": {
204
+ "audio_bos_token": "<|audio_bos|>",
205
+ "audio_eos_token": "<|audio_eos|>",
206
+ "audio_token": "<|AUDIO|>",
207
+ "image_token": "<|IMAGE|>",
208
+ "video_token": "<|VIDEO|>",
209
+ "vision_bos_token": "<|vision_bos|>",
210
+ "vision_eos_token": "<|vision_eos|>"
211
+ },
212
+ "image_token": "<|IMAGE|>",
213
+ "model_max_length": 32768,
214
+ "pad_token": "<|vision_pad|>",
215
+ "padding_side": "left",
216
+ "processor_class": "Qwen2_5OmniProcessor",
217
+ "split_special_tokens": false,
218
+ "tokenizer_class": "Qwen2Tokenizer",
219
+ "unk_token": null,
220
+ "video_token": "<|VIDEO|>",
221
+ "vision_bos_token": "<|vision_bos|>",
222
+ "vision_eos_token": "<|vision_eos|>"
223
+ }
qwen2.5-omni-128k-4bit/video_preprocessor_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 300,
3
+ "crop_size": null,
4
+ "data_format": "channels_first",
5
+ "default_to_square": true,
6
+ "device": null,
7
+ "dither": 0.0,
8
+ "do_center_crop": null,
9
+ "do_convert_rgb": true,
10
+ "do_normalize": true,
11
+ "do_pad": null,
12
+ "do_rescale": true,
13
+ "do_resize": true,
14
+ "do_sample_frames": false,
15
+ "feature_extractor_type": "WhisperFeatureExtractor",
16
+ "feature_size": 128,
17
+ "fps": null,
18
+ "hop_length": 160,
19
+ "image_mean": [
20
+ 0.48145466,
21
+ 0.4578275,
22
+ 0.40821073
23
+ ],
24
+ "image_processor_type": "Qwen2VLImageProcessor",
25
+ "image_std": [
26
+ 0.26862954,
27
+ 0.26130258,
28
+ 0.27577711
29
+ ],
30
+ "input_data_format": null,
31
+ "max_frames": 768,
32
+ "max_pixels": 12845056,
33
+ "merge_size": 2,
34
+ "min_frames": 4,
35
+ "min_pixels": 3136,
36
+ "n_fft": 400,
37
+ "n_samples": 4800000,
38
+ "nb_max_frames": 30000,
39
+ "num_frames": null,
40
+ "padding_side": "right",
41
+ "padding_value": 0.0,
42
+ "patch_size": 14,
43
+ "processor_class": "Qwen2_5OmniProcessor",
44
+ "resample": 3,
45
+ "rescale_factor": 0.00392156862745098,
46
+ "return_attention_mask": true,
47
+ "return_metadata": false,
48
+ "sampling_rate": 16000,
49
+ "size": {
50
+ "longest_edge": 12845056,
51
+ "shortest_edge": 3136
52
+ },
53
+ "size_divisor": null,
54
+ "temporal_patch_size": 2,
55
+ "video_metadata": null,
56
+ "video_processor_type": "Qwen2VLVideoProcessor"
57
+ }
qwen2.5-omni-128k-4bit/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
senter-animated-banner.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47342cc17acf3d6be30e213f627f1e28c811e8025f2584ae278bad2cff92e7df
3
+ size 1052819
senter-banner.png ADDED

Git LFS Details

  • SHA256: db92e87df5801c2d0a7c350e7b823d8ad7fea0d5f5d2760b20780157367c94e5
  • Pointer size: 131 Bytes
  • Size of remote file: 419 kB
senter-fixed-banner.gif ADDED

Git LFS Details

  • SHA256: 6a68a1f1744997b497950e2afe7e44ddb2c466903e24dc274a0e85b822ab5c6b
  • Pointer size: 133 Bytes
  • Size of remote file: 16 MB
senter-fixed-banner.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:47342cc17acf3d6be30e213f627f1e28c811e8025f2584ae278bad2cff92e7df
3
+ size 1052819
thumbnail.png ADDED

Git LFS Details

  • SHA256: db92e87df5801c2d0a7c350e7b823d8ad7fea0d5f5d2760b20780157367c94e5
  • Pointer size: 131 Bytes
  • Size of remote file: 419 kB