Spaces:
Running
Running
revise readme for prereqs and workflow clarity
Browse files
README.md
CHANGED
|
@@ -102,7 +102,8 @@ DT-Circuits/
|
|
| 102 |
### Prerequisites
|
| 103 |
- Python 3.9+
|
| 104 |
- PyTorch 2.x
|
| 105 |
-
- TransformerLens
|
|
|
|
| 106 |
|
| 107 |
### Quick Start
|
| 108 |
|
|
@@ -111,7 +112,7 @@ Follow these steps to initialize the environment and verify the installation.
|
|
| 111 |
1. **Environment Setup**
|
| 112 |
```bash
|
| 113 |
python -m venv venv
|
| 114 |
-
source venv/bin/activate
|
| 115 |
pip install -r requirements.txt
|
| 116 |
```
|
| 117 |
|
|
@@ -127,18 +128,14 @@ Follow these steps to initialize the environment and verify the installation.
|
|
| 127 |
streamlit run src/dashboard/app.py
|
| 128 |
```
|
| 129 |
|
| 130 |
-
###
|
| 131 |
-
|
| 132 |
-
The standard pipeline consists of trajectory harvesting via teacher agents, model training, and mechanistic analysis.
|
| 133 |
|
| 134 |
1. **Data Harvesting & Model Training**
|
| 135 |
-
Execute the training script to collect trajectories and train the Decision Transformer.
|
| 136 |
```bash
|
| 137 |
python scripts/train_dt.py
|
| 138 |
```
|
| 139 |
|
| 140 |
2. **Interpretability Analysis**
|
| 141 |
-
Utilize the dashboard for circuit mapping (DLA), causal intervention (patching), and SAE latent exploration.
|
| 142 |
```bash
|
| 143 |
streamlit run src/dashboard/app.py
|
| 144 |
```
|
|
|
|
| 102 |
### Prerequisites
|
| 103 |
- Python 3.9+
|
| 104 |
- PyTorch 2.x
|
| 105 |
+
- TransformerLens
|
| 106 |
+
- SAE-Lens
|
| 107 |
|
| 108 |
### Quick Start
|
| 109 |
|
|
|
|
| 112 |
1. **Environment Setup**
|
| 113 |
```bash
|
| 114 |
python -m venv venv
|
| 115 |
+
source venv/bin/activate
|
| 116 |
pip install -r requirements.txt
|
| 117 |
```
|
| 118 |
|
|
|
|
| 128 |
streamlit run src/dashboard/app.py
|
| 129 |
```
|
| 130 |
|
| 131 |
+
### Workflow
|
|
|
|
|
|
|
| 132 |
|
| 133 |
1. **Data Harvesting & Model Training**
|
|
|
|
| 134 |
```bash
|
| 135 |
python scripts/train_dt.py
|
| 136 |
```
|
| 137 |
|
| 138 |
2. **Interpretability Analysis**
|
|
|
|
| 139 |
```bash
|
| 140 |
streamlit run src/dashboard/app.py
|
| 141 |
```
|