Spaces:
Sleeping
Sleeping
PROTHAM commited on
Commit Β·
7e7ad80
1
Parent(s): 4423d13
Update README with testing instructions and new config
Browse files
README.md
CHANGED
|
@@ -262,7 +262,10 @@ api_debug_env/
|
|
| 262 |
β βββ registry.py β TASK_REGISTRY dict
|
| 263 |
βββ graders/
|
| 264 |
β βββ grader.py β Deterministic reward logic
|
| 265 |
-
|
|
|
|
|
|
|
|
|
|
| 266 |
βββ app.py β FastAPI app with create_app()
|
| 267 |
βββ api_debug_environment.py β Environment logic
|
| 268 |
βββ mock_api.py β Internal mock REST API router
|
|
@@ -298,6 +301,17 @@ curl -X POST http://localhost:7860/reset \
|
|
| 298 |
|
| 299 |
---
|
| 300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
## Environment Variables
|
| 302 |
|
| 303 |
| Variable | Required | Description |
|
|
@@ -306,6 +320,7 @@ curl -X POST http://localhost:7860/reset \
|
|
| 306 |
| `MODEL_NAME` | Yes | Model identifier e.g. `mistralai/Mistral-7B-Instruct-v0.3` |
|
| 307 |
| `HF_TOKEN` | Yes | HuggingFace token with inference access |
|
| 308 |
| `ENV_URL` | No | Override environment URL (default: localhost) |
|
|
|
|
| 309 |
|
| 310 |
---
|
| 311 |
|
|
|
|
| 262 |
β βββ registry.py β TASK_REGISTRY dict
|
| 263 |
βββ graders/
|
| 264 |
β βββ grader.py β Deterministic reward logic
|
| 265 |
+
βββ tests/ β New! Unit tests for environment & grader
|
| 266 |
+
β βββ __init__.py
|
| 267 |
+
β βββ test_environment.py
|
| 268 |
+
βββ server/
|
| 269 |
βββ app.py β FastAPI app with create_app()
|
| 270 |
βββ api_debug_environment.py β Environment logic
|
| 271 |
βββ mock_api.py β Internal mock REST API router
|
|
|
|
| 301 |
|
| 302 |
---
|
| 303 |
|
| 304 |
+
## π§ͺ Testing
|
| 305 |
+
|
| 306 |
+
The environment includes a comprehensive test suite covering the grader, task registry, and episode lifecycle.
|
| 307 |
+
|
| 308 |
+
```bash
|
| 309 |
+
# Run all tests
|
| 310 |
+
python -m pytest tests/ -v
|
| 311 |
+
```
|
| 312 |
+
|
| 313 |
+
---
|
| 314 |
+
|
| 315 |
## Environment Variables
|
| 316 |
|
| 317 |
| Variable | Required | Description |
|
|
|
|
| 320 |
| `MODEL_NAME` | Yes | Model identifier e.g. `mistralai/Mistral-7B-Instruct-v0.3` |
|
| 321 |
| `HF_TOKEN` | Yes | HuggingFace token with inference access |
|
| 322 |
| `ENV_URL` | No | Override environment URL (default: localhost) |
|
| 323 |
+
| `MOCK_BASE_URL` | No | Internal URL for the Mock API (default: http://localhost:7860) |
|
| 324 |
|
| 325 |
---
|
| 326 |
|