Delete test_readme.md
Browse files- test_readme.md +0 -56
test_readme.md
DELETED
|
@@ -1,56 +0,0 @@
|
|
| 1 |
-
# Testing Your Exported Model
|
| 2 |
-
|
| 3 |
-
This bundle contains a fully runnable bigram language model. No GPU,
|
| 4 |
-
no external dependencies - Python 3.8+ standard library only.
|
| 5 |
-
|
| 6 |
-
## Files
|
| 7 |
-
|
| 8 |
-
| File | Purpose |
|
| 9 |
-
|------|---------|
|
| 10 |
-
| `model.json` | The trained model (transitions + config + metrics) |
|
| 11 |
-
| `test.py` | Interactive chat wrapper |
|
| 12 |
-
| `test.sh` | Test harness (validates + generates samples) |
|
| 13 |
-
| `run.sh` | Minimal launcher for test.py |
|
| 14 |
-
|
| 15 |
-
## Quick Start
|
| 16 |
-
|
| 17 |
-
### macOS / Linux
|
| 18 |
-
|
| 19 |
-
```bash
|
| 20 |
-
chmod +x test.sh run.sh
|
| 21 |
-
./test.sh
|
| 22 |
-
```
|
| 23 |
-
|
| 24 |
-
### Windows (PowerShell)
|
| 25 |
-
|
| 26 |
-
```powershell
|
| 27 |
-
python test.py
|
| 28 |
-
```
|
| 29 |
-
|
| 30 |
-
### One-shot generation
|
| 31 |
-
|
| 32 |
-
```bash
|
| 33 |
-
python3 test.py alice
|
| 34 |
-
# => alice… (seed-dependent continuation)
|
| 35 |
-
```
|
| 36 |
-
|
| 37 |
-
### Custom temperature
|
| 38 |
-
|
| 39 |
-
```bash
|
| 40 |
-
python3 test.py --temperature 0.5
|
| 41 |
-
python3 test.py alice --temperature 1.2
|
| 42 |
-
```
|
| 43 |
-
|
| 44 |
-
## Manual Test
|
| 45 |
-
|
| 46 |
-
```bash
|
| 47 |
-
python3 -c "import json; m=json.load(open('model.json')); print(len(m['vocab']), 'tokens,', len(m['transitions']), 'states')"
|
| 48 |
-
```
|
| 49 |
-
|
| 50 |
-
Expected output: `<N> tokens, <M> states`.
|
| 51 |
-
|
| 52 |
-
## Troubleshooting
|
| 53 |
-
|
| 54 |
-
- **`python3 not found`** - install Python 3.8+ from https://python.org
|
| 55 |
-
- **`model.json not found`** - make sure you are inside the extracted directory
|
| 56 |
-
- **`Permission denied`** - run `chmod +x test.sh run.sh` first
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|