Skip to content

Commit 4d5c3ab

Browse files
Full rework of model and web
1 parent 76e4854 commit 4d5c3ab

23 files changed

Lines changed: 18393 additions & 5419 deletions

.DS_Store

6 KB
Binary file not shown.

LICENSE

Lines changed: 161 additions & 404 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ Run the `train` command to process your prompt/response pairs, build the TF-IDF
4343
**Basic Training**
4444

4545
```bash
46-
python3 mini_token_chat.py train
46+
python3 splm.py train
4747

4848
```
4949

5050
**Custom File Paths**
5151

5252
```bash
53-
python3 mini_token_chat.py train --prompts my_prompts.txt --responses my_responses.txt --output my_model.json
53+
python3 splm.py train --prompts my_prompts.txt --responses my_responses.txt --output my_model.json
5454

5555
```
5656

@@ -70,15 +70,15 @@ Use the `chat` command to interact with your trained model.
7070
**Single Prompt Mode**
7171

7272
```bash
73-
python3 mini_token_chat.py chat --prompt "hello how are you"
73+
python3 splm.py chat --prompt "hello how are you"
7474

7575
```
7676

7777
**Interactive Terminal Mode**
7878
Launch a continuous chat loop in your console:
7979

8080
```bash
81-
python3 mini_token_chat.py chat --interactive
81+
python3 splm.py chat --interactive
8282

8383
```
8484

@@ -89,21 +89,21 @@ _(Press `Return` on an empty line to exit interactive mode.)_
8989
- **Show Matched Prompts:** Displays the top 5 TF-IDF matches and their similarity scores before generating an answer.
9090

9191
```bash
92-
python3 mini_token_chat.py chat --prompt "tell me a plan" --show-matches
92+
python3 splm.py chat --prompt "tell me a plan" --show-matches
9393

9494
```
9595

9696
- **Enable Debugging Logs:** Prints internal query vectors, top matches, and generation steps.
9797

9898
```bash
99-
python3 mini_token_chat.py chat --prompt "hello" --debug
99+
python3 splm.py chat --prompt "hello" --debug
100100

101101
```
102102

103103
- **Limit Max Tokens:** Control maximum response length.
104104

105105
```bash
106-
python3 mini_token_chat.py chat --interactive --max-tokens 20
106+
python3 splm.py chat --interactive --max-tokens 20
107107

108108
```
109109

@@ -128,11 +128,4 @@ python3 web_chat.py --model model.json --open
128128

129129
The web interface uses a modern dark layout, message bubbles, a live input composer, and an optional match panel that shows the closest prompts used to build each reply.
130130

131-
132131
SPLM (c) 2026 by npmInstallSnack
133-
134-
SPLM is licensed under a
135-
Creative Commons Attribution-NonCommercial 4.0 International License.
136-
137-
You should have received a copy of the license along with this
138-
work. If not, see <https://creativecommons.org/licenses/by-nc/4.0/>.

__pycache__/splm.cpython-314.pyc

45.5 KB
Binary file not shown.
39.9 KB
Binary file not shown.

eb_chat.py

Whitespace-only changes.

0 commit comments

Comments
 (0)