cy0307 commited on
Commit
e297a76
Β·
verified Β·
1 Parent(s): b09ee5c

Upload from Ropedia Academy

Browse files
Files changed (1) hide show
  1. README.md +70 -14
README.md CHANGED
@@ -4,19 +4,25 @@ library_name: pytorch
4
  tags:
5
  - ropedia-academy
6
  - educational
 
 
 
7
  - agent
8
  ---
9
 
10
  # Agent + tool-use harness
11
 
12
- A reusable harness: a tool registry, a tool-using agent loop, a task suite, and a scorer.
13
 
14
- Trained from scratch in **[Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/)** β€” an interactive, bilingual course on embodied & spatial AI. **Educational model:** small and quick to train; the value is the *method* and a reproducible pipeline, not a leaderboard score.
 
 
15
 
16
  | | |
17
  |---|---|
 
18
  | **Task** | agent evaluation |
19
- | **Data** | tool-use task suite |
20
  | **Track** | AG Β· Agents & RL |
21
  | **Notebook** | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/training/AG_agent_harness.ipynb) |
22
 
@@ -28,22 +34,48 @@ Trained from scratch in **[Ropedia Academy](https://chaoyue0307.github.io/ropedi
28
  - **Split:** eval suite
29
  - **Source:** procedural
30
 
31
- ## Results
32
 
33
- | metric | value |
34
- |---|---|
35
- | success_rate | 1.0 |
 
 
 
 
36
 
37
 
38
  ![figure](figure.png)
39
 
40
- ## How to use
41
 
42
  ```python
43
  import torch
44
- state = torch.load("model.pt", map_location="cpu") # some labs save pose.pt / gaussians.pt / transform.pt
45
- # Rebuild the model class from the Ropedia Academy notebook (linked above), then:
46
- # model.load_state_dict(state)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  ```
48
 
49
  ## Files
@@ -52,10 +84,34 @@ state = torch.load("model.pt", map_location="cpu") # some labs save pose.pt /
52
  - `results.json`
53
 
54
 
55
- ## Reproduce / train your own
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
- Open the [lab notebook in Colab](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/training/AG_agent_harness.ipynb) β†’ **Runtime β†’ GPU β†’ Run all**, then its *Publish to the Hugging Face Hub* cell. Browse every lab in the [Ropedia Academy Labs tab](https://chaoyue0307.github.io/ropedia-academy/labs).
 
 
 
58
 
59
 
60
  ---
61
- *Part of the [Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/) trained-model collection.*
 
4
  tags:
5
  - ropedia-academy
6
  - educational
7
+ - embodied-ai
8
+ - from-scratch
9
+ - reproducible
10
  - agent
11
  ---
12
 
13
  # Agent + tool-use harness
14
 
15
+ > A reusable harness: a tool registry, a tool-using agent loop, a task suite, and a scorer.
16
 
17
+ Trained from scratch in **[Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/)** β€” an interactive, bilingual course on embodied & spatial AI. **Educational model:** small and quick to train; the value is the *method* and a reproducible pipeline, not a leaderboard score. Try it live in the **[Ropedia demos Space](https://huggingface.co/spaces/cy0307/ropedia-demos)**.
18
+
19
+ ## At a glance
20
 
21
  | | |
22
  |---|---|
23
+ | **Base model** | Trained **from scratch** (random initialization) β€” no pretrained base model. |
24
  | **Task** | agent evaluation |
25
+ | **Training objective** | No training β€” a tool-use agent **loop + scorer** (an evaluation harness). |
26
  | **Track** | AG Β· Agents & RL |
27
  | **Notebook** | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/training/AG_agent_harness.ipynb) |
28
 
 
34
  - **Split:** eval suite
35
  - **Source:** procedural
36
 
37
+ ## Training config
38
 
39
+ No training β€” a tool registry + ReAct-style loop + scorer over a 5-task suite.
40
+
41
+ ## Evaluation results
42
+
43
+ | metric | value | meaning |
44
+ |---|---|---|
45
+ | `success_rate` | 1.0 | fraction of agent tasks solved with the correct final answer |
46
 
47
 
48
  ![figure](figure.png)
49
 
50
+ ## Inference example
51
 
52
  ```python
53
  import torch
54
+ state = torch.load("model.pt", map_location="cpu") # this repo's checkpoint
55
+ # Rebuild the exact module from the lab notebook (see "Reproduce"), then:
56
+ # model.load_state_dict(state); model.eval()
57
+ ```
58
+
59
+ ## Limitations
60
+
61
+ **Educational scale.** Trained quickly on CPU on small or synthetic data, so absolute numbers are not competitive with production systems β€” the value is the *method* and a reproducible pipeline. No large-scale data, no hyperparameter sweep, and no multi-seed variance is reported. **Not for production use.**
62
+
63
+ ## Failure cases
64
+
65
+ Only as strong as the task suite & scorer; brittle tool-call parsing; doesn't probe long-horizon planning.
66
+
67
+ ## Reproduce / train your own
68
+
69
+ **One click:** open the notebook in Colab β†’ **Runtime β†’ GPU β†’ Run all**, then run its *Publish to the Hugging Face Hub* cell.
70
+
71
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ChaoYue0307/ropedia-academy/blob/main/notebooks/training/AG_agent_harness.ipynb)
72
+
73
+ **From a shell:**
74
+ ```bash
75
+ git clone https://github.com/ChaoYue0307/ropedia-academy.git && cd ropedia-academy
76
+ pip install torch numpy matplotlib scikit-learn scikit-image gymnasium
77
+ jupyter nbconvert --to notebook --execute notebooks/training/AG_agent_harness.ipynb --output run.ipynb
78
+ # optional: override training length, e.g. STEPS=2000 (or EPISODES=600) before running
79
  ```
80
 
81
  ## Files
 
84
  - `results.json`
85
 
86
 
87
+ ## License
88
+
89
+ Code & weights: **MIT** (this repository) β€” educational use encouraged.
90
+ Data: generated procedurally in the notebook β€” no external dataset.
91
+
92
+ ## Citation
93
+
94
+ If you use this model or the course materials, please cite:
95
+
96
+ ```bibtex
97
+ @misc{ropedia_academy,
98
+ title = {Ropedia Academy: an interactive course on embodied & spatial AI},
99
+ author = {Ropedia Academy},
100
+ year = {2026},
101
+ howpublished = {\url{https://chaoyue0307.github.io/ropedia-academy/}}
102
+ }
103
+ ```
104
+
105
+
106
+ **Method / original work:** Yao et al., *ReAct*, ICLR 2023; Schick et al., *Toolformer*, 2023.
107
+
108
+ ## Related assets
109
 
110
+ - πŸš€ **Live demos:** [https://huggingface.co/spaces/cy0307/ropedia-demos](https://huggingface.co/spaces/cy0307/ropedia-demos)
111
+ - πŸ€— **All trained models + collection:** [https://huggingface.co/cy0307](https://huggingface.co/cy0307)
112
+ - πŸ“š **Course & all labs:** [https://chaoyue0307.github.io/ropedia-academy/](https://chaoyue0307.github.io/ropedia-academy/) Β· [Labs tab](https://chaoyue0307.github.io/ropedia-academy/labs)
113
+ - πŸ’» **Source / notebooks:** [github.com/ChaoYue0307/ropedia-academy](https://github.com/ChaoYue0307/ropedia-academy)
114
 
115
 
116
  ---
117
+ *Part of the [Ropedia Academy](https://chaoyue0307.github.io/ropedia-academy/) trained-model collection. Contributions & issues welcome on [GitHub](https://github.com/ChaoYue0307/ropedia-academy).*