Downloads · 30 days
5
17% of all-time downloads
ZoneTwelve/Mock-Qwen3-Micro-SKILLS
Mock-Qwen3-Micro-SKILLS is a machine learning model from ZoneTwelve. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A custom, ultra-lightweight implementation of the Qwen3 architecture designed for rapid prototyping, experimentation, and "memorization-style" training. This project demonstrates a full pipeline from random initializa…
Downloads · 30 days
5
17% of all-time downloads
All-time downloads
30
Public
Parameters
10.2M
56.7 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors40.9 MB · 72%
From the Hugging Face model README
A custom, ultra-lightweight implementation of the Qwen3 architecture designed for rapid prototyping, experimentation, and "memorization-style" training. This project demonstrates a full pipeline from random initialization to a chat-ready model.
The model is configured to be exceptionally small to allow for high-speed training on consumer hardware while maintaining the core Qwen3 logic. By tying word embeddings and reducing the hidden dimensions, the model remains functional yet highly efficient.
| Parameter | Value |
|---|---|
| Hidden Size | 64 |
| Intermediate Size | 256 |
| Hidden Layers | 8 |
| Attention Heads | 4 |
| KV Heads | 2 (Grouped Query Attention) |
| Vocab Size | 151,936 |
| Max Context | 512 tokens |
| Tie Word Embeddings | True (Saves ~19M parameters) |
The project follows a two-step training process designed to move from raw data understanding to conversational interaction.
pretrain.py)This script initializes the model with random weights and trains it on a base corpus.
train_chat.py)This script takes the output from the pre-training stage and applies ChatML-style formatting.
tokenizer.apply_chat_template to structure data into user and assistant roles.adamw_torch_fused for maximum throughput during the weight update step.bf16 (BFloat16) to reduce memory footprint and leverage modern GPU tensor cores without the loss of dynamic range seen in FP16.DataCollatorForLanguageModeling with mlm=False for standard causal language modeling, ensuring sequences are padded correctly for batched processing.