# WVY-2M-TinyLM **Developed by Starpower Technology** WVY-2M-TinyLM is an experimental, approximately 2-million-parameter language model designed to explore language acquisition, conversational behavior, sequence prediction, and knowledge representation within an extremely compact neural network. The model uses a custom vocabulary and a lightweight Transformer configuration. It is released with both pretrained and fine-tuned checkpoints, allowing researchers to study how model behavior changes throughout different stages of training. ## Model Architecture | Specification | Value | |---|---:| | Parameters | ~2M | | Architecture | Causal Transformer | | Transformer layers | 4 | | Attention heads | 6 | | Hidden dimension | 192 | | Feed-forward dimension | 768 | | Attention head dimension | 32 | | Context window | 512 tokens | | Vocabulary size | 288 | | Dropout | 0.1 | | Framework | PyTorch | | Checkpoint size | ~7.96 MB | | Language | English | | License | MIT | ## Training WVY-2M-TinyLM underwent two distinct training stages: pretraining and fine-tuning. ### Pretraining - Training steps: 100,000 - Initial recorded loss: 4.145382 - Final training loss: 0.319410 - Training duration: 27.30 minutes ### Fine-tuning - Training steps: 100,000 - Initial recorded loss: 3.708569 - Final training loss: 0.028553 - Training duration: 91.74 minutes ### Combined Training - Total optimization steps: 200,000 - Combined training duration: approximately 119 minutes - Final fine-tuning loss: 0.028553 These measurements represent recorded training loss rather than independent evaluation results. ## Tokenizer The model utilizes a compact, custom vocabulary consisting of 288 tokens, including conversational markers, individual words, numbers, punctuation, and sequence-control tokens. Special tokens include: - `<|pad|>` - `<|bos|>` - `<|eot|>` - `<|user|>` - `<|assistant|>` - `<|unk|>` - `<|end_conversation|>` The tokenizer provides explicit representations for conversational roles, turn boundaries, unknown vocabulary, and conversation termination. ## Research Objectives WVY-2M-TinyLM provides an experimental platform for investigating: - Language learning under extreme parameter constraints. - The relationship between vocabulary size and model capabilities. - Conversational sequence prediction. - Pattern recognition and contextual associations. - Behavioral differences between pretraining and fine-tuning. - Computationally efficient specialized language models. - Small-scale neural network experimentation. ## Intended Applications - Tiny language model research. - Lightweight conversational systems. - Experimental video game NPC dialogue. - Local language model experimentation. - Educational Transformer implementations. - Specialized language model development. - Pretraining and fine-tuning research. ## Repository Structure | File | Description | |---|---| | `wvy_pretrained.pt` | Pretrained model checkpoint | | `wvy_finetuned.pt` | Fine-tuned model checkpoint | | `model_config.json` | Architecture configuration | | `tokenizer.json` | Custom vocabulary | | `training_log.json` | Recorded training metrics | ## Limitations WVY-2M-TinyLM is an experimental research model rather than a general-purpose assistant. Its compact architecture and restricted vocabulary limit its ability to represent unfamiliar concepts and generate unrestricted natural language. Independent benchmarks, dataset composition, and generalization measurements have not yet been documented. The released PyTorch checkpoints require a compatible model implementation and tokenizer. Direct loading through Hugging Face AutoModel is not currently documented. ## Developer **Starpower Technology** Research and development of compact, specialized neural networks, creative intelligence systems, and computationally efficient artificial intelligence architectures. https://huggingface.co/StarpowerTechnology ## License MIT --- library_name: transformers pipeline_tag: text-generation license: mit language: - en tags: - transformers - pytorch - text-generation - causal-lm - tiny-language-model base_model: - StarpowerTechnology/WVY-2M-TinyLM --- --- library_name: pytorch pipeline_tag: text-generation license: mit language: - en tags: - transformers - pytorch - causal-lm - tiny-language-model - trained-from-scratch - conversational-ai ---