Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,77 @@
|
|
1 |
-
---
|
2 |
-
license: apache-2.0
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
# HRWKV7-hxa079-Qwen3-14B
|
5 |
+
|
6 |
+
### Model Description
|
7 |
+
|
8 |
+
HRWKV7-hxa079-Qwen3-14B is an experimental hybrid architecture model that combines RWKV v7's linear attention mechanism with Group Query Attention (GQA) layers. Built upon the Qwen3-14B Instruct foundation, this model replaces most Transformer attention blocks with RWKV blocks while strategically maintaining some GQA layers to enhance performance on specific tasks.
|
9 |
+
|
10 |
+
- **Developed by:** OpenMOSE
|
11 |
+
- **Model type:** Hybrid Linear-Attention Language Model
|
12 |
+
- **Language(s):** Multilingual (inherited from Qwen3-14B)
|
13 |
+
- **License:** Apache-2.0
|
14 |
+
- **Base Model:** Qwen3-14B Instruct
|
15 |
+
- **Year:** 2025
|
16 |
+
|
17 |
+
### Architecture Specifications
|
18 |
+
|
19 |
+
- **Architecture:** RWKV v7 based "hxa079" Architecture + Group Query Attention Hybrid
|
20 |
+
- **Total Layers:** 40 layers (L40D5120)
|
21 |
+
- 34 RWKV layers
|
22 |
+
- 6 GQA layers
|
23 |
+
- **Hidden Dimension:** 5120
|
24 |
+
- **Training Context Window:** 4096 tokens
|
25 |
+
|
26 |
+
## Technical Innovation
|
27 |
+
|
28 |
+
### RWKV "hxa079" Architecture
|
29 |
+
|
30 |
+
The model implements several key improvements over standard RWKV architectures:
|
31 |
+
|
32 |
+
1. **Token Shift Removal**: Unlike traditional RWKV, the hxa079 variant removes token shifting mechanisms
|
33 |
+
2. **GroupNorm Removal**: Eliminates GroupNorm layers for training stability
|
34 |
+
3. **k_first Introduction**: Implements a novel k_first mechanism optimized for attention conversion
|
35 |
+
|
36 |
+
### Hybrid Design Benefits
|
37 |
+
|
38 |
+
- **Linear Attention Inference**: RWKV blocks enable O(1) memory complexity during inference
|
39 |
+
- **Enhanced Needle Tasks**: Strategic placement of GQA layers significantly improves performance on needle-in-haystack retrieval tasks, addressing a known limitation of pure linear attention models
|
40 |
+
- **Implicit Position Encoding**: Interestingly, the model achieves better performance when RoPE (Rotary Position Embedding) is not applied to GQA layers, suggesting that RWKV blocks provide implicit positional encoding capabilities
|
41 |
+
|
42 |
+
## Intended Use
|
43 |
+
|
44 |
+
This is an **experimental research model** designed to explore hybrid architectures combining linear and quadratic attention mechanisms. It is intended for:
|
45 |
+
|
46 |
+
- Research into efficient attention mechanisms
|
47 |
+
- Benchmarking hybrid architecture performance
|
48 |
+
- Exploring linear attention limitations and solutions
|
49 |
+
- Academic and industrial R&D purposes
|
50 |
+
|
51 |
+
## Limitations
|
52 |
+
|
53 |
+
- **Experimental Status**: This model is in experimental stages and may exhibit unexpected behaviors
|
54 |
+
- **Context Window**: Limited to 4096 tokens during training, though RWKV architecture theoretically supports longer sequences
|
55 |
+
- **Performance Variability**: As a hybrid model, performance may vary significantly across different task types
|
56 |
+
|
57 |
+
## Training Details
|
58 |
+
|
59 |
+
- **Training Context Window:** 4096 tokens
|
60 |
+
- **Base Model Initialization:** Weights initialized from Qwen3-14B Instruct
|
61 |
+
- **Architecture Conversion:** Transformer attention blocks systematically replaced with RWKV blocks, except for 6 strategically placed GQA layers
|
62 |
+
|
63 |
+
## Evaluation
|
64 |
+
|
65 |
+
Performance evaluation is ongoing. The model shows promising results in:
|
66 |
+
- Maintaining base model capabilities while achieving linear attention efficiency
|
67 |
+
- Significantly improved needle-in-haystack task performance compared to pure RWKV architectures
|
68 |
+
- Competitive performance on standard language modeling benchmarks
|
69 |
+
|
70 |
+
|
71 |
+
## Model Card Contact
|
72 |
+
|
73 |
+
OpenMOSE - 2025
|
74 |
+
|
75 |
+
---
|
76 |
+
|
77 |
+
*Note: This is an experimental model. Performance characteristics and behaviors may differ from both pure RWKV and standard Transformer architectures. Users should thoroughly evaluate the model for their specific use cases.*
|