File size: 7,163 Bytes
9fd9b9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559e9d8
ff73af5
559e9d8
 
 
ff73af5
559e9d8
ff73af5
559e9d8
ff73af5
559e9d8
ff73af5
559e9d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff73af5
7dd5fd9
ff73af5
 
7dd5fd9
 
 
ff73af5
 
 
7dd5fd9
 
 
 
ff73af5
 
7dd5fd9
 
 
 
ff73af5
559e9d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff73af5
559e9d8
 
 
 
 
ff73af5
559e9d8
 
 
 
 
 
 
7dd5fd9
 
 
559e9d8
 
 
 
 
7dd5fd9
ff73af5
7dd5fd9
ff73af5
 
 
 
7dd5fd9
 
 
 
ff73af5
 
7dd5fd9
 
 
ff73af5
 
7dd5fd9
 
 
ff73af5
 
7dd5fd9
 
 
ff73af5
 
 
7dd5fd9
ff73af5
 
 
 
 
 
 
7dd5fd9
ff73af5
 
 
559e9d8
 
 
ff73af5
 
 
 
 
 
 
 
7dd5fd9
ff73af5
 
7dd5fd9
 
ff73af5
 
 
 
7dd5fd9
ff73af5
 
559e9d8
 
 
ff73af5
559e9d8
7dd5fd9
 
 
ff73af5
559e9d8
7dd5fd9
 
ff73af5
 
559e9d8
7dd5fd9
 
 
ff73af5
559e9d8
7dd5fd9
ff73af5
7dd5fd9
ff73af5
559e9d8
ff73af5
559e9d8
ff73af5
559e9d8
 
 
 
ff73af5
559e9d8
 
 
ff73af5
559e9d8
ff73af5
559e9d8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff73af5
559e9d8
ff73af5
559e9d8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
---
language:
  - en
  - zh
license: gpl-3.0
tags:
  - physics
  - mathematics
  - spatial-reasoning
  - code-generation
  - ollama
  - gguf
  - lora
  - deepspeed
  - qlora
  - fine-tuning
datasets:
  - physics-problems
  - mathematics-problems
model-index:
  - name: Askit-OLMo-32B-Spatial-Thinking-Preview
    results:
      - task:
          type: text-generation
        dataset:
          type: physics-math-problems
          name: CPhO & IMO Level Problems
        metrics:
          - type: accuracy
            value: "High spatial reasoning accuracy"
---

# ๐Ÿš€ Askit-OLMo-32B-Spatial-Thinking-Preview

> **AI-Powered Physics Simulation & Mathematical Animation Generation**
>
> Explicit Spatial Reasoning + API-Centric Code Generation

---

## โœจ What Makes Askit Special?

**Askit-OLMo-32B-Spatial-Thinking-Preview** is not just another code generation model. It's a **spatial reasoning specialist** that thinks in 3D coordinates before writing code.

### ๐Ÿง  Core Innovation: Forced Spatial Cognition

Unlike traditional models that generate code directly, Askit enforces a **complete spatial thinking pipeline**:

```
Physics Problem
    โ†“
ใ€็ฉบ้—ด็›ด่ง‰ๅˆ†ๆžใ€‘ (3D Space Analysis)
    โ†“
ใ€็ฉบ้—ดๅๆ ‡่ฎก็ฎ—ใ€‘ (Coordinate Calculations)
    โ†“
ใ€็‰ฉ็†โ†’API็ฟป่ฏ‘ใ€‘ (Physics โ†’ API Translation)
    โ†“
Production-Ready Code
```

**Key Features:**
- โœ… **Forced Spatial Cognition**: Every problem decomposed into 3D coordinates
- โœ… **API-Centric Reasoning**: Physics principles โ†’ PhysicsBridge API calls
- โœ… **Explicit Reasoning**: Complete thinking chain visible in output
- โœ… **Competition-Ready**: Optimized for CPhO & IMO level problems

---

## ๐ŸŽฏ Capabilities

### 1. **Spatial Understanding** ๐Ÿ—บ๏ธ
- 3D object position relationships
- Precise coordinate calculations (x, y, z)
- Automatic trajectory derivation
- Explicit spatial reasoning in every response

### 2. **Physics Modeling** โš™๏ธ
- Classical mechanics, electromagnetism, thermodynamics
- **API-Driven**: Direct PhysicsBridge API generation
- Rigid body collisions, SPH fluids, ODE/PDE solvers
- Complex multi-body systems with constraints

### 3. **Advanced Problem Solving** ๐Ÿ†
- CPhO (Chinese Physics Olympiad) level optimization
- IMO (International Mathematical Olympiad) level optimization
- Deep reasoning for competition problems
- Production-ready simulation code

---

## ๐Ÿ› ๏ธ Ecosystem & Integration

### ๐Ÿ“ฑ Official Software

**Askit.** - Interactive Physics Animation Platform
- ๐ŸŒ **Website**: [askit.space](https://askit.space)
- ๐Ÿ’ป **GitHub**: [github.com/SStarrySSky/Askit.](https://github.com/SStarrySSky/Askit.)
- ๐Ÿ“ฆ **Features**:
  - Real-time physics simulation with OpenGL rendering
  - Interactive controls (sliders, buttons, checkboxes)
  - Timeline-based animation control
  - Snapshot system for AI context awareness
  - PhysicsBridge API integration

### ๐Ÿ”— Integration Points

```
Askit-OLMo-32B Model
        โ†“
    Generates Code
        โ†“
PhysicsBridge API
        โ†“
Askit. Platform
        โ†“
Real-time Visualization
```

### ๐Ÿ“š Related Projects

| Project | Purpose | Link |
|---------|---------|------|
| **Askit.** | Interactive Animation Platform | [GitHub](https://github.com/SStarrySSky/Askit.) |
| **PhysicsBridge** | Physics Engine Wrapper | Integrated in Askit. |
| **OLMo-3.1-32B** | Base Model | [Allen AI](https://huggingface.co/allenai/OLMo-3.1-32B-Instruct) |

---

## ๐Ÿ“Š Model Specifications

| Aspect | Details |
|--------|---------|
| **Base Model** | OLMo-3.1-32B-Instruct |
| **Fine-tuning** | LoRA (Rank 256) |
| **Training Data** | 3,500+ physics/math problems |
| **Framework** | DeepSpeed ZeRO-3 + BF16 |
| **Hardware** | 3x RTX 5090 GPUs |
| **Output Format** | Explicit reasoning chains + code |

---

## ๐Ÿ’ก Output Format

The model generates **complete reasoning chains** with explicit spatial thinking:

```
<thought>
ใ€็ฉบ้—ด็›ด่ง‰ๅˆ†ๆžใ€‘
- 3D space structure analysis
- Initial positions (xโ‚€, yโ‚€, zโ‚€)
- Initial velocities (vโ‚“, vแตง, vแตค)
- Coordinate system setup

ใ€็‰ฉ็†ๅŽŸ็†ๆŽจๅฏผใ€‘
- Applicable physics laws
- Force analysis
- Acceleration calculations

ใ€็ฉบ้—ดๅๆ ‡่ฎก็ฎ—ใ€‘
- Position at time t: (x(t), y(t), z(t))
- Velocity vector: (vโ‚“(t), vแตง(t), vแตค(t))
- Trajectory equations

ใ€็‰ฉ็†โ†’API็ฟป่ฏ‘ใ€‘
- PhysicsBridge API calls
- Parameter mapping: coordinates โ†’ API
- Initial conditions setup
</thought>

<code>
# PhysicsBridge API Integration
physics = PhysicsBridge()
physics.create_rigid_body(
    position=(xโ‚€, yโ‚€, zโ‚€),
    velocity=(vโ‚“, vแตง, vแตค),
    mass=m,
    shape='sphere'
)
# ... more API calls
</code>
```

---

## ๐Ÿš€ Quick Start

```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "SStarrySSky/Askit-OLMo-32B-Spatial-Thinking-Preview"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

# Physics simulation with spatial reasoning
prompt = """
Create a physics simulation for a ball dropped from 10 meters.
Ball mass: 1kg, initial velocity: (0, 0, 0)
Use PhysicsBridge API.
"""

inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=2048, temperature=0.7)
print(tokenizer.decode(outputs[0]))
```

---

## ๐Ÿ“– Use Cases

### ๐ŸŽ“ Physics Education
- Interactive animations for teaching concepts
- Explicit spatial reasoning aids student understanding
- API-driven code runs directly in Askit. platform

### ๐Ÿ“Š Mathematical Visualization
- Visual demonstrations of math problems
- Geometric accuracy through coordinate calculations
- Perfect for IMO-level problem visualization

### ๐Ÿ”ฌ Research Simulation
- Academic research physics simulations
- Correct coordinate systems guaranteed
- Real-time rendering via PhysicsBridge

### ๐Ÿ† Competitive Problem Solving
- CPhO and IMO level problem solving
- Forced spatial reasoning matches competition requirements
- Production-ready simulation code

---

## ๐Ÿ”— Links & Resources

### Official Channels
- ๐ŸŒ **Website**: [askit.space](https://askit.space)
- ๐Ÿ’ป **GitHub Repository**: [github.com/SStarrySSky/Askit.](https://github.com/SStarrySSky/Askit.)
- ๐Ÿค— **HuggingFace Model**: [SStarrySSky/Askit-OLMo-32B-Spatial-Thinking-Preview](https://huggingface.co/SStarrySSky/Askit-OLMo-32B-Spatial-Thinking-Preview)

### Base Technologies
- ๐Ÿง  **OLMo-3.1-32B**: [allenai/OLMo-3.1-32B-Instruct](https://huggingface.co/allenai/OLMo-3.1-32B-Instruct)
- โš™๏ธ **Transformers**: [huggingface.co/transformers](https://huggingface.co/transformers/)

---

## ๐Ÿ“„ License

**GPL-3.0 License** - See [LICENSE](https://github.com/SStarrySSky/Askit./blob/main/LICENSE)

---

## ๐Ÿ™ Acknowledgments

Built on top of **OLMo-3.1-32B-Instruct** by Allen Institute for AI.

Integrated with **Askit.** - Interactive Physics Animation Platform.

---

<div align="center">

**Made with โค๏ธ by Starry Sky**

[๐ŸŒ Website](https://askit.space) โ€ข [๐Ÿ’ป GitHub](https://github.com/SStarrySSky/Askit.) โ€ข [๐Ÿค— HuggingFace](https://huggingface.co/SStarrySSky/Askit-OLMo-32B-Spatial-Thinking-Preview)

</div>