AlysiumTinyLLM / README.md
DeepImagix's picture
Add HF model card metadata
8cddb12 verified
|
Raw History Blame Contribute Delete
2.84 kB
---
license: mit
library_name: custom
pipeline_tag: text-generation
tags:
- text-generation
- numpy
- educational
- tiny-lm
- from-scratch
language:
- en
---
# Alysium TinyLM
**Lightweight β€’ Pure NumPy β€’ Educational**
![Alysium TinyLM v1.0](assets/banner.png)
> A tiny character-free, pure NumPy language model built for learning and experimentation.
[![GitHub release](https://img.shields.io/badge/release-v1.0-blue)](https://github.com/alysiumcorporationstudios/AlysiumTinyLLM)
[![Python](https://img.shields.io/badge/python-3.8+-yellow)](https://www.python.org/)
[![NumPy](https://img.shields.io/badge/numpy-pure-orange)](https://numpy.org/)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
---
## What is Alysium TinyLM?
Alysium TinyLM is a **small educational language model** written entirely in pure NumPy.
It was created to help people understand how language models work under the hood β€” without heavy frameworks like PyTorch or TensorFlow.
- Word-level next-word prediction
- Extremely lightweight
- Easy to train on your own data
- Simple chat interface
- Perfect for learning and experimentation
---
## Features
- Pure NumPy implementation (no PyTorch / TensorFlow)
- Easy to understand and modify
- Train on your own `dataset.txt`
- Interactive chat mode
- Small enough to run on limited hardware
---
## Quick Start
```bash
# Clone the repository
git clone https://github.com/alysiumcorporationstudios/AlysiumTinyLLM.git
cd AlysiumTinyLLM
# Install dependency
pip install numpy
# Chat with the model
python chat.py
```
---
## Training your own model
1. Edit `dataset.txt` with your own conversations (one utterance per line)
2. Run training:
```bash
python train.py
```
3. After training finishes, a new `tinylm.pkl` will be created.
4. Run `python chat.py` to talk to your updated model.
---
## Project Structure
```
AlysiumTinyLLM/
β”œβ”€β”€ model.py # The neural network
β”œβ”€β”€ train.py # Training script
β”œβ”€β”€ chat.py # Interactive chat
β”œβ”€β”€ config.py # Model & training settings
β”œβ”€β”€ dataset.txt # Training data
β”œβ”€β”€ tinylm.pkl # Trained model weights
└── README.md
```
---
## Configuration
You can change model size and training settings in `config.py`:
```python
EMBED_DIM = 64
HIDDEN_DIM = 128
CONTEXT_SIZE = 5
EPOCHS = 25
LEARNING_RATE = 0.025
```
---
## Example
```
You: hi
AI: hello how are you.
You: what is your name
AI: my name is alysium.
You: bye
AI: goodbye.
```
---
## Socials
- **X (Twitter):** [@AlysiumCorpZA](https://x.com/AlysiumCorpZA)
- **Instagram:** [@iam_realtoxicdeemodder](https://instagram.com/iam_realtoxicdeemodder)
---
## License
This project is open source under the MIT License.
---
**Made with ❀️ by Alysium Corporation Studios**