Spaces:
Sleeping
Sleeping
Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
tags:
|
| 3 |
-
- ml-intern
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
|
|
|
| 5 |
# π₯ AlphaForge x K2 Think V2 β Elite Quant Trading Demo
|
| 6 |
|
| 7 |
**Live Space**: [https://huggingface.co/spaces/Premchan369/alphaforge-k2think](https://huggingface.co/spaces/Premchan369/alphaforge-k2think)
|
|
@@ -10,6 +24,41 @@ Built for the **Build with K2 Think V2 Challenge** by MBZUAI.
|
|
| 10 |
|
| 11 |
---
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## β οΈ Setup Required (One-Time)
|
| 14 |
|
| 15 |
This Space requires a **K2 Think V2 API key** to function. To configure it:
|
|
@@ -65,6 +114,24 @@ This Space requires a **K2 Think V2 API key** to function. To configure it:
|
|
| 65 |
|
| 66 |
---
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
## π Architecture
|
| 69 |
|
| 70 |
```
|
|
@@ -105,11 +172,14 @@ This Space requires a **K2 Think V2 API key** to function. To configure it:
|
|
| 105 |
|
| 106 |
---
|
| 107 |
|
| 108 |
-
## π
|
| 109 |
|
| 110 |
-
|
| 111 |
-
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
---
|
| 115 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: AlphaForge x K2 Think V2
|
| 3 |
+
emoji: π₯
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: "4.44.0"
|
| 8 |
+
python_version: "3.10"
|
| 9 |
+
app_file: app.py
|
| 10 |
+
pinned: false
|
| 11 |
tags:
|
| 12 |
+
- ml-intern
|
| 13 |
+
- k2-think
|
| 14 |
+
- quant-trading
|
| 15 |
+
- finance
|
| 16 |
+
- ai
|
| 17 |
---
|
| 18 |
+
|
| 19 |
# π₯ AlphaForge x K2 Think V2 β Elite Quant Trading Demo
|
| 20 |
|
| 21 |
**Live Space**: [https://huggingface.co/spaces/Premchan369/alphaforge-k2think](https://huggingface.co/spaces/Premchan369/alphaforge-k2think)
|
|
|
|
| 24 |
|
| 25 |
---
|
| 26 |
|
| 27 |
+
## π Evolution & Improvement Timeline
|
| 28 |
+
|
| 29 |
+
This project went through multiple iterations β each version building on insights from the previous:
|
| 30 |
+
|
| 31 |
+
### v1: Initial Prototype (AlphaForge Core)
|
| 32 |
+
**What**: Basic technical analysis dashboard with yfinance + Plotly
|
| 33 |
+
- Candlestick charts, RSI, MACD, Bollinger Bands
|
| 34 |
+
- **Problem**: Static indicators, no AI reasoning, limited portfolio tools
|
| 35 |
+
|
| 36 |
+
### v2: K2 Think V2 Integration (This Space)
|
| 37 |
+
**What**: Added MBZUAI's SOTA reasoning model for deep analysis
|
| 38 |
+
- AI-powered market analysis with chain-of-thought reasoning
|
| 39 |
+
- Mean-variance portfolio optimization with efficient frontier
|
| 40 |
+
- Risk metrics suite (Sharpe, Sortino, VaR, CVaR, Calmar)
|
| 41 |
+
- Direct K2 Think V2 chat interface
|
| 42 |
+
- **Improvement**: Transformed from indicator dashboard β institutional-grade quant platform
|
| 43 |
+
|
| 44 |
+
### v3: Model Efficiency Breakthrough (Q-TensorFormer)
|
| 45 |
+
**What**: Built **Q-TensorFormer** β a parallel research project that revolutionizes how financial models are deployed:
|
| 46 |
+
- **Tensor-Train (TT) decomposition** compresses model FFN layers by 7-8Γ
|
| 47 |
+
- **PennyLane quantum circuits** enhance token representations
|
| 48 |
+
- **Entropy-guided adaptive rank scheduling** β models auto-adjust complexity per input
|
| 49 |
+
- **Budget-constrained training** β deploy on edge GPUs with fixed latency/memory budgets
|
| 50 |
+
|
| 51 |
+
**Relevance to AlphaForge**: The Q-TensorFormer compression technique can be applied to financial NLP models (sentiment analysis, earnings call summarization, news classification) to run 2-3Γ cheaper in production.
|
| 52 |
+
|
| 53 |
+
### Future: Unified Platform
|
| 54 |
+
Combining K2 Think V2 reasoning + Q-TensorFormer compression:
|
| 55 |
+
- **Ticker Sentiment**: Run sentiment analysis on earnings transcripts at 3Γ lower cost
|
| 56 |
+
- **News Classification**: Classify 1000s of financial news items with compressed models
|
| 57 |
+
- **On-Device Trading Assistant**: Deploy compressed LLMs on mobile for real-time alerts
|
| 58 |
+
- **Portfolio Report Generation**: AI-generated portfolio summaries with compressed models
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
## β οΈ Setup Required (One-Time)
|
| 63 |
|
| 64 |
This Space requires a **K2 Think V2 API key** to function. To configure it:
|
|
|
|
| 114 |
|
| 115 |
---
|
| 116 |
|
| 117 |
+
## π Where It Can Be Used
|
| 118 |
+
|
| 119 |
+
| **Domain** | **Use Case** | **AlphaForge Feature** | **Impact** |
|
| 120 |
+
|-----------|-------------|----------------------|-----------|
|
| 121 |
+
| π¦ **Hedge Funds** | Daily alpha signal generation | Single Stock Analysis | Replace junior analyst screening work |
|
| 122 |
+
| π **Wealth Management** | Portfolio rebalancing recommendations | Portfolio Optimizer | 10Γ faster than manual rebalancing |
|
| 123 |
+
| π **Quant Education** | Interview prep, strategy explanation | K2 Think Chat | Interactive quant learning at any level |
|
| 124 |
+
| π’ **Prop Trading** | Pre-market analysis & risk checks | AI Deep Analysis | Catch risks before the open |
|
| 125 |
+
| π± **Retail Investors** | Actionable trade ideas | Composite Alpha Signal | Institutional-grade signals for everyone |
|
| 126 |
+
| π€ **AI Trading Bots** | Signal generation pipeline | K2 Think V2 API | Combine AI reasoning with automated execution |
|
| 127 |
+
| π **Financial Media** | Market commentary generation | AI Analysis | Auto-generate daily market wrap-ups |
|
| 128 |
+
| π¬ **Quant Research** | Strategy backtesting ideas | Portfolio Optimizer | Rapid hypothesis testing |
|
| 129 |
+
| πΌ **Risk Management** | VaR/CVaR monitoring | Risk Metrics Suite | Real-time risk dashboard |
|
| 130 |
+
| π« **Universities** | Teaching computational finance | Full Platform | Modern tools for modern finance education |
|
| 131 |
+
| β‘ **Edge Deployment** | Compressed models for mobile | Q-TensorFormer Integration | Financial NLP on-device (future) |
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
## π Architecture
|
| 136 |
|
| 137 |
```
|
|
|
|
| 172 |
|
| 173 |
---
|
| 174 |
|
| 175 |
+
## π Related Projects
|
| 176 |
|
| 177 |
+
| Project | Link | Description |
|
| 178 |
+
|---------|------|-------------|
|
| 179 |
+
| **Q-TensorFormer v3** | [Premchan369/q-tensorformer](https://huggingface.co/Premchan369/q-tensorformer) | Quantum-enhanced tensor network LLM compression β 7-8Γ FFN compression, budget-constrained deployment |
|
| 180 |
+
| **Full AlphaForge Platform** | [Premchan369/alphaforge-quant-system](https://huggingface.co/Premchan369/alphaforge-quant-system) | 25 quant modules, open-source institutional trading platform |
|
| 181 |
+
| **K2 Think V2 Challenge** | [build.k2think.ai](https://build.k2think.ai/) | Official challenge page by MBZUAI |
|
| 182 |
+
| **MBZUAI** | [mbzuai.ac.ae](https://mbzuai.ac.ae/) | Mohamed bin Zayed University of AI |
|
| 183 |
|
| 184 |
---
|
| 185 |
|