Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# sayed-bot-model-v2
|
| 2 |
+
|
| 3 |
+
Decision Transformer for Sayed Bot — Minecraft bot AI
|
| 4 |
+
|
| 5 |
+
## Model
|
| 6 |
+
- **Architecture:** Transformer Encoder (6 layers, 8 heads, 512 dim)
|
| 7 |
+
- **Input:** `[batch, 20, 15]` — آخر 20 خطوة
|
| 8 |
+
- **Output:** `[batch, 10]` — logits لكل action
|
| 9 |
+
- **Features:** health, food, mobs_nearby, danger_mobs, ores_nearby, items_nearby, has_weapon, has_pickaxe, has_axe, inventory_pct, time_of_day, is_in_danger, is_on_lava, player_nearby, bot_count
|
| 10 |
+
- **Actions:** IDLE, FIGHT, FLEE, MINE, FARM, COLLECT, EXPLORE, CRAFT, CHAT, FOLLOW
|
| 11 |
+
- **Accuracy:** 39.30%
|
| 12 |
+
- **Size:** ~50 MB (INT8)
|
| 13 |
+
- **Trained:** 2026-06-25T11:14:38Z
|
| 14 |
+
|
| 15 |
+
## Usage (ONNX Runtime)
|
| 16 |
+
```python
|
| 17 |
+
import onnxruntime as ort
|
| 18 |
+
import numpy as np
|
| 19 |
+
|
| 20 |
+
session = ort.InferenceSession('bot_model.onnx')
|
| 21 |
+
input_name = session.get_inputs()[0].name
|
| 22 |
+
|
| 23 |
+
sequence = np.zeros((1, 20, 15), dtype=np.float32)
|
| 24 |
+
# املأ الـ sequence بـ 20 خطوة سابقة
|
| 25 |
+
result = session.run(None, {input_name: sequence})
|
| 26 |
+
action_id = result[0].argmax()
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Files
|
| 30 |
+
- [model.onnx](https://huggingface.co/SAyyeedd/sayed-bot-model-v2/resolve/main/bot_model.onnx)
|
| 31 |
+
- [config.json](https://huggingface.co/SAyyeedd/sayed-bot-model-v2/resolve/main/config.json)
|