Khurram123 commited on
Commit
bfc0dc3
·
verified ·
1 Parent(s): 95c0719

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +63 -10
README.md CHANGED
@@ -1,13 +1,66 @@
1
- # ΣMath — Visual Computation Engine v2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
- An interactive mathematical visualization engine powered by **Qwen-Math** and accelerated by **NVIDIA RTX 4060 Ti**.
 
 
 
4
 
5
- ## Features
6
- - **GPU Accelerated**: Fully offloaded to CUDA.
7
- - **Dual Rendering**: Plotly for interactive 3D/Animations and Matplotlib/mpld3 for 2D.
8
- - **Resilient Engine**: Automatic correction of colorscale mismatches and backend management.
9
 
10
- ## Setup
11
- 1. Place `qwen_math_q4_k_m.gguf` in the root directory.
12
- 2. Install dependencies: `pip install -r requirements.txt`
13
- 3. Run: `python app.py`
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: gguf
4
+ base_model: Qwen/Qwen2.5-Math-7B
5
+ datasets:
6
+ - AI-MO/NuminaMath-TIR
7
+ tags:
8
+ - mathematics
9
+ - interactive
10
+ - 3d-visualization
11
+ - science
12
+ - reasoning
13
+ - uvicorn
14
+ - fastapi
15
+ ---
16
 
17
+ <p align="center">
18
+ <h1 align="center">ΣMath — Visual Computation Engine v2.0</h1>
19
+ <p align="center"><strong>Powered by Qwen-Math & NuminaMath-TIR</strong></p>
20
+ </p>
21
 
22
+ ## 🔬 Project Overview
 
 
 
23
 
24
+ **Developed by: Khurram Pervez, Assistant Professor of Mathematics**
25
+
26
+ **ΣMath Core** is a high-performance mathematical visualization engine that bridges the gap between deep symbolic reasoning and real-time interactive rendering. By leveraging the **NuminaMath-TIR** dataset, the model excels at **Chain-of-Thought (CoT)** reasoning, allowing it to solve complex geometric problems before translating them into interactive code.
27
+
28
+ The engine utilizes a specialized **Resilient Execution Pipeline** to render 3D manifolds, animations, and parametric surfaces directly in the browser, optimized specifically for local deployment on NVIDIA hardware.
29
+
30
+ ## 🚀 The Multi-Stage Pipeline
31
+
32
+ ### 1. TIR (Thought-Intermediate-Reasoning)
33
+ By training on the **NuminaMath-TIR** dataset, the model doesn't just "guess" a plot. It follows a rigorous logical path:
34
+ * **Identification:** Analyzes the geometric properties of the requested manifold.
35
+ * **Calculation:** Determines the necessary vertices, normals, and parametric equations.
36
+ * **Code Synthesis:** Generates high-efficiency Python code (Plotly/Matplotlib).
37
+
38
+ ### 2. The Resilient Engine (FastAPI Layer)
39
+ To ensure stability during research, the system includes a proprietary processing layer:
40
+ * **Dummy Interception:** Captures and silences `plt.show()` commands to prevent GUI thread blocking on Ubuntu/Linux servers.
41
+ * **Colorscale Transpilation:** Automatically maps Matplotlib colormap names (e.g., *spring, summer*) to Plotly-valid equivalents to ensure 3D renders never fail.
42
+ * **Sandbox Execution:** Executes generated code in a safe local scope using your **RTX 4060 Ti**.
43
+
44
+ ### 3. Dynamic Hybrid Rendering
45
+ * **Plotly 3D:** Used for interactive rotation, zooming, and time-series animations (e.g., Lorenz Attractors).
46
+ * **mpld3 (2D):** Used for static or high-precision 2D mathematical function plots with browser-based interactivity.
47
+
48
+ ## 💻 System Configuration
49
+
50
+ | Component | Specification |
51
+ | :--- | :--- |
52
+ | **Compute Engine** | NVIDIA GeForce RTX 4060 Ti (16GB VRAM) |
53
+ | **Model Format** | GGUF (Quantized Q4_K_M) |
54
+ | **OS** | Ubuntu 22.04 LTS (Optimized for `Agg` Backend) |
55
+ | **Frameworks** | FastAPI, Llama-cpp-python, Plotly, mpld3 |
56
+
57
+ ## 🛠️ Quick Start
58
+
59
+ ### 1. Clone & Setup
60
+ ```bash
61
+ # Clone this repository
62
+ git clone [https://huggingface.co/Khurram123/SigmaMath-Visual-Core](https://huggingface.co/Khurram123/SigmaMath-Visual-Core)
63
+ cd SigmaMath-Visual-Core
64
+
65
+ # Install dependencies
66
+ pip install fastapi uvicorn llama-cpp-python numpy matplotlib mpld3 plotly