1Task: Text-Generation
2Total training time: 1.8 hours
3Inputs: text
4Outputs: text
5Params: 2,604,210
6Final Loss: 2.37
7Important Benchmark Scores:
8 1. ARC Easy - 32.11%
9 2. BLiMP - 65.33%
10 3. HellaSwag - 27.03%
11Framework: PyTorch, transformers
12Authors: Paul Courneya, Jonathan LY
Description
Syn is a Tiny Language Model (TLM) trained on 2.7 billion tokens of synthetic data. The name Syn is an abbreviation of synthetic, reflecting the type of data the model was trained on.
Model Details
Architecture: Qwen3.5
Hidden Size: 140
Number of Layers: 9
Intermediate Size: 392 (a 2.8x expansion)
Number of Attention Heads: 4
Number of KV Heads: 1
Head Dim: 35
Vocab Size: 3584
Max Position Embeddings: 640
Total Parameters: 2,604,210
Training
Training Details
Maximum Learning Rate: 3e-3
Minimum Learning Rate: 0
Number of Epochs: 1
Sequence Length: 256 (yes, we accidentally trained at 256 instead of 640)
Batch Size: 428
Eval Split Ratio: 0.006
Gradient Accumulation Steps: 2
Gradient Checkpointing: True
Gradient Clipping: 1.0
Torch Compile: True
Torch Compile Mode: max-autotune-no-cudagraphs
AdamW Betas: (0.9, 0.95)
WSD Warmup Ratio: 0.02
WSD Stable Ratio: 0.78
WSD Decay Ratio: 0.20
DType: float16
Dataset
Dataset
Bytes
Size
Share
FinePhrase
8,000,000,000
8.000 GB
61.61%
Tiny-Strange-Textbooks
4,000,000,000
4.000 GB
30.81%
TinyStoriesv2
700,000,000
0.700 GB
5.39%
LongPage
284,000,000
0.284 GB
2.19%
Note: the byte counts are rounded.
Final Eval and Train Loss
Train: 2.37
Val: 2.357
Hardware
GPU: NVIDIA RTX 2060 (used for training)
CPU: AMD Ryzen 5 2600 (used for tokenization)
Benchmarks
Task
Value
BLiMP
65.33%
ARC Easy
32.11%
ARC Challenge
20.39%
HellaSwag
27.03%
SWAG
33.38%
PiQA
53.48%
ArithMark-2.0:
Ops = 1
Ops = 2
Ops = 3
Avg
25.04%
30.13%
24.60%
26.48%
For a comparison with other small language models like this one, go here.
Generation Sample
text
1Prompt : 'Artificial intelligence is'
2------------------------------------------------------------
3Generated:
4 a form of artificial intelligence that involves creating an attractive and reliable source of information. This involves using advanced technology to create interactive, user-friendly platforms for users who are looking to use them in their daily lives.
5## II. Why Use Applications?
6To enhance the user experience, it's important to have the opportunity to learn how to write and understand your content properly. To ensure that you are using new tools, take some time to read, then let go of yourself or others through conversations with the user as they look at them. Additionally, by practicing self-assessment, users can gain more control over their own ideas.
7### IV. Conclusion
8In this lesson, we learned about the different types of apps used for frames, their importance, and its applications. We also discussed the practical aspects of the application and practical applications of Frameworks. By understanding these concepts, readers can apply these skills to various scenarios in their careers.
Use Cases
Educational work and research
Fine-tuning for downstream use
Deployment on edge devices
Or just for fun.
Limitations
Cannot chat, reason, code, or answer questions
Almost always unfactual
No long-context handling
License
Before using, distributing, selling, or modifying this software, you must read the license here.