|
Download test_readme.md from webxos/microd_v2: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/webxos/microd_v2/resolve/main/test_readme.md
- Command line
-
hf download hf://webxos/microd_v2/test_readme.md
-
curl -L -o test_readme.md https://huggingface.co/webxos/microd_v2/resolve/main/test_readme.md
1.22 kB
| # Testing Your Exported Model | |
| This bundle contains a fully runnable bigram language model. No GPU, | |
| no external dependencies - Python 3.8+ standard library only. | |
| ## Files | |
| | File | Purpose | | |
| |------|---------| | |
| | `model.json` | The trained model (transitions + config + metrics) | | |
| | `test.py` | Interactive chat wrapper | | |
| | `test.sh` | Test harness (validates + generates samples) | | |
| | `run.sh` | Minimal launcher for test.py | | |
| ## Quick Start | |
| ### macOS / Linux | |
| ```bash | |
| chmod +x test.sh run.sh | |
| ./test.sh | |
| ``` | |
| ### Windows (PowerShell) | |
| ```powershell | |
| python test.py | |
| ``` | |
| ### One-shot generation | |
| ```bash | |
| python3 test.py alice | |
| # => alice… (seed-dependent continuation) | |
| ``` | |
| ### Custom temperature | |
| ```bash | |
| python3 test.py --temperature 0.5 | |
| python3 test.py alice --temperature 1.2 | |
| ``` | |
| ## Manual Test | |
| ```bash | |
| python3 -c "import json; m=json.load(open('model.json')); print(len(m['vocab']), 'tokens,', len(m['transitions']), 'states')" | |
| ``` | |
| Expected output: `<N> tokens, <M> states`. | |
| ## Troubleshooting | |
| - **`python3 not found`** - install Python 3.8+ from https://python.org | |
| - **`model.json not found`** - make sure you are inside the extracted directory | |
| - **`Permission denied`** - run `chmod +x test.sh run.sh` first | |