alanzhuly commited on
Commit
598a0e1
·
verified ·
1 Parent(s): 210ca43

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - audio-text-to-text
7
+ - chat
8
+ - audio
9
+ - GGUF
10
+ ---
11
+ # OmniAudio-2.6B
12
+ OmniAudio is the world's fastest and most efficient audio-language model for on-device deployment - a 2.6B-parameter multimodal model that processes both text and audio inputs. It integrates three components: **Gemma-2-2b**, **Whisper turbo**, and a custom projector module, enabling secure, responsive audio-text processing directly on edge devices.
13
+ Unlike traditional approaches that chain ASR and LLM models together, OmniAudio-2.6B unifies both capabilities in a single efficient architecture for minimal latency and resource overhead.
14
+
15
+ On a 2024 Mac Mini M4 Pro using Q4_K_M quantized GGUF model, **Qwen2-Audio-7B** processes 1.69 tokens/second while OmniAudio-2.6B achieves 4.97 tokens/second, demonstrating nearly **3x faster performance** on consumer hardware.
16
+
17
+ ## Quick Links
18
+ 1. Interactive Demo in our [HuggingFace Space]().
19
+ 2. [Quickstart for local setup]()
20
+ 3. Learn more in our [Blogs]()
21
+
22
+ ## Use Cases
23
+ * **Voice QA without Internet**: Process offline voice queries like "I am at camping, how do I start a fire without fire starter?" OmniAudio provides practical guidance even without network connectivity.
24
+ * **Voice-in Conversation**: Have conversations about personal experiences. When you say "I am having a rough day at work," OmniAudio engages in supportive talk and active listening.
25
+ * **Creative Content Generation**: Transform voice prompts into creative pieces. Ask "Write a haiku about autumn leaves" and receive poetic responses inspired by your voice input.
26
+ * **Recording Summary**: Simply ask "Can you summarize this meeting note?" to convert lengthy recordings into concise, actionable summaries.
27
+ * **Voice Tone Modification**: Transform casual voice memos into professional communications. When you request "Can you make this voice memo more professional?" OmniAudio adjusts the tone while preserving the core message.
28
+
29
+ ## Run OmniAudio-2.6B on Your Device
30
+ **Step 1: Install Nexa-SDK (local on-device inference framework)**
31
+ [Install Nexa-SDK](https://github.com/NexaAI/nexa-sdk?tab=readme-ov-file#install-option-1-executable-installer)
32
+ > ***Nexa-SDK is a open-sourced, local on-device inference framework, supporting text generation, image generation, vision-language models (VLM), audio-language models, speech-to-text (ASR), and text-to-speech (TTS) capabilities. Installable via Python Package or Executable Installer.***
33
+ **Step 2: Then run the following code in your terminal**
34
+ ```bash
35
+ nexa run omniaudio -st
36
+ ```
37
+ 💻 OmniAudio-2.6B q4_K_M version requires 1.30GB RAM and 1.60GB storage space.
38
+
39
+ ## Training
40
+ We developed OmniAudio through a three-stage training pipeline:
41
+ **Pretraining:** The initial stage focuses on core audio-text alignment using MLS English 10k transcription dataset. We introduced a special <|transcribe|> token to enable the model to distinguish between transcription and completion tasks, ensuring consistent performance across use cases.
42
+ **Supervised Fine-tuning (SFT):** We enhance the model's conversation capabilities using synthetic datasets derived from MLS English 10k transcription. This stage leverages a proprietary model to generate contextually appropriate responses, creating rich audio-text pairs for effective dialogue understanding.
43
+ **Direct Preference Optimization (DPO):** The final stage refines model quality using GPT-4o API as a reference. The process identifies and corrects inaccurate responses while maintaining semantic alignment. We additionally leverage Gemma2's text responses as a gold standard to ensure consistent quality across both audio and text inputs.
44
+
45
+ ## What's Next for OmniAudio?
46
+ OmniAudio is in active development and we are working to advance its capabilities:
47
+ * Building direct audio generation for two-way voice communication
48
+ * Implementing function calling support via [Octopus_v2](https://huggingface.co/NexaAIDev/Octopus-v2) integration
49
+ In the long term, we aim to establish OmniAudio as a comprehensive solution for edge-based audio-language processing.