meridianal commited on
Commit
e275359
·
verified ·
1 Parent(s): d5fd376

Update model card - stock

Browse files
Files changed (1) hide show
  1. README.md +144 -0
README.md ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: pytorch
3
+ license: mit
4
+ tags:
5
+ - finance
6
+ - trading
7
+ - time-series
8
+ - transformer
9
+ - mamba
10
+ - state-space-models
11
+ - financial-ai
12
+ - stock-prediction
13
+ - forex-prediction
14
+ ---
15
+
16
+ # MeridianAlgo Financial Prediction Models
17
+
18
+ ## Model Overview
19
+
20
+ This repository contains financial prediction models built on the latest state-of-the-art 2026 architecture. These models leverage machine learning techniques, including Mamba State Space Models, Mixture of Experts, and Flash Attention 2, for accurate market forecasting.
21
+
22
+ ### Architecture Highlights
23
+
24
+ - Latest 2026 Architecture: Implementing the latest advances in deep learning for time series.
25
+ - 388M Parameters: Large-scale model for comprehensive pattern recognition.
26
+ - Unified Design: A single high-capacity model architectures for all assets within its class.
27
+ - Specialized Logic: Distinct optimization paths for Stocks and Forex markets.
28
+
29
+ ## Technical Specifications
30
+
31
+ ### Core Technologies
32
+
33
+ | Component | Description |
34
+ |-----------|-------------|
35
+ | Mamba SSM | State Space Models for efficient long-range sequence modeling with linear complexity. |
36
+ | RoPE | Rotary Position Embeddings for enhanced temporal relationship encoding. |
37
+ | GQA | Grouped Query Attention for optimized computational throughput. |
38
+ | MoE | Mixture of Experts with top-k routing for specialized regime recognition. |
39
+ | SwiGLU | Swish-Gated Linear Unit activation for improved transformer performance. |
40
+ | RMSNorm | Root Mean Square Normalization for enhanced gradient stability. |
41
+ | Flash Attention 2 | High-performance, memory-efficient attention implementation. |
42
+
43
+ ### Model Specifications
44
+
45
+ ```
46
+ Architecture: Revolutionary 2026
47
+ Parameters: 388,000,000
48
+ Input Features: 44 technical indicators
49
+ Sequence Length: 30 time steps
50
+ Hidden Dimensions: 768
51
+ Transformer Layers: 6
52
+ Attention Heads: 12 (Query), 4 (Key/Value)
53
+ Experts: 12 specialized models
54
+ Prediction Heads: 8 ensemble heads
55
+ ```
56
+ ## Available Models
57
+
58
+ ### 1. Meridian.AI Stocks Model
59
+ - Repo ID: meridianal/ARA.AI
60
+ - File: models/Meridian.AI_Stocks.pt
61
+ - Purpose: Comprehensive stock market forecasting.
62
+ - Coverage: Broad equity market compatibility.
63
+ - Accuracy: Optimized for directional consistency.
64
+
65
+ ### 2. Meridian.AI Forex Model
66
+ - Repo ID: meridianal/ARA.AI
67
+ - File: models/Meridian.AI_Forex.pt
68
+ - Purpose: High-precision currency pair forecasting.
69
+ - Coverage: Major, Minor, and Exotic pairs.
70
+ - Accuracy: Optimized for pip-based movement prediction.
71
+
72
+ ## Performance Metrics
73
+
74
+ | Attribute | Stocks Model | Forex Model |
75
+ |-----------|--------------|-------------|
76
+ | Parameters | 388 Million | 388 Million |
77
+ | Inference Latency | <100ms | <100ms |
78
+ | Model Size | ~1.5 GB | ~1.5 GB |
79
+ | Accuracy | Optimized | Optimized |
80
+
81
+ ## Usage and Implementation
82
+
83
+ ### Installation
84
+
85
+ ```bash
86
+ pip install torch transformers huggingface_hub
87
+ ```
88
+
89
+ ### Loading and Inference
90
+
91
+ ```python
92
+ from huggingface_hub import hf_hub_download
93
+ from meridianalgo.unified_ml import UnifiedStockML
94
+
95
+ # Download the unified stocks model
96
+ model_path = hf_hub_download(
97
+ repo_id="meridianal/ARA.AI",
98
+ filename="models/Meridian.AI_Stocks.pt"
99
+ )
100
+
101
+ # Initialize the system
102
+ ml = UnifiedStockML(model_path=model_path)
103
+
104
+ # Execute prediction
105
+ prediction = ml.predict_ultimate('AAPL', days=5)
106
+
107
+ print(f"Current Price: {prediction['current_price']}")
108
+ ```
109
+
110
+ ## Training Methodology
111
+
112
+ ### Configuration
113
+ - Optimizer: AdamW with Weight Decay
114
+ - Scheduler: Cosine Annealing with Warm Restarts
115
+ - Loss Function: Balanced Directional Loss
116
+ - Batch Size: 64
117
+ - Learning Rate: 0.0005
118
+
119
+ ### Infrastructure
120
+ Models are trained using a distributed pipeline with Accelerate, tracking all metrics via Comet ML for rigorous validation.
121
+
122
+ ## Limitations and Ethical Use
123
+
124
+ 1. Market Volatility: Performance may degrade during black swan events or extreme volatility.
125
+ 2. Horizon Decay: Predictive accuracy naturally decreases as the forecast horizon extends.
126
+ 3. Historical Bias: Models reflect patterns in historical data which may not repeat.
127
+ 4. Professional Use Only: Intended for research; users bear all financial risk.
128
+
129
+ ## Citation
130
+
131
+ If utilizing these models in professional research or applications, please cite:
132
+
133
+ ```bibtex
134
+ @software{meridianalgo_2026,
135
+ title = {MeridianAlgo: Revolutionary Financial Prediction Platform},
136
+ author = {MeridianAlgo},
137
+ year = {2026},
138
+ version = {4.0.0}
139
+ }
140
+ ```
141
+
142
+ ## Disclaimer
143
+
144
+ IMPORTANT: These models are for research and educational purposes only. They do not constitute financial advice. All trading involves risk of capital loss. The developers and contributors are not registered financial advisors.