Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
datasets:
|
| 4 |
- shuyuej/English-Pretraining-Dataset
|
| 5 |
- HuggingFaceFW/fineweb-edu
|
|
@@ -12,66 +12,61 @@ language:
|
|
| 12 |
- en
|
| 13 |
tags:
|
| 14 |
- small
|
| 15 |
-
-
|
| 16 |
-
new_version: CompactAI-O/
|
| 17 |
---
|
| 18 |
-
# TinyMemoryLM
|
| 19 |
|
| 20 |
-
|
| 21 |
-
> 1. **The model is really dumb.** This is a ~1M parameter research model designed for experimentation, not production use.
|
| 22 |
-
> 2. **Do not expect it to answer any questions.** It is prone to repetition, hallucination, and format collapse.
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
| File | Description |
|
| 33 |
| :--- | :--- |
|
| 34 |
-
| `tokenizer.json` | Hybrid word/
|
| 35 |
-
| `pretrain.pt` | Base pretrained checkpoint
|
| 36 |
-
| `model.pt` | Instruction-tuned checkpoint (SFT
|
| 37 |
|
| 38 |
-
##
|
| 39 |
|
| 40 |
-
|
|
| 41 |
| :--- | :--- |
|
| 42 |
| **Architecture** | Transformer Decoder |
|
| 43 |
| **Parameters** | ~1 Million |
|
| 44 |
-
| **Context
|
| 45 |
-
| **
|
| 46 |
-
| **
|
| 47 |
-
| **
|
| 48 |
-
| **
|
|
|
|
|
|
|
|
|
|
| 49 |
| **Activation** | SwiGLU |
|
| 50 |
|
| 51 |
-
##
|
| 52 |
-
|
| 53 |
-
TinyMemoryLM implements several research-focused modifications to standard transformer architectures:
|
| 54 |
-
|
| 55 |
-
* **Hybrid Tokenizer:** Combines character-level fallback with frequent word tokens to balance compression and vocabulary size.
|
| 56 |
-
* **QK-Norm:** Applies RMSNorm to Query and Key projections for improved stability in low-precision training.
|
| 57 |
-
* **Word Token Loss Boosting:** Upweights loss signals for multi-character tokens to prevent the model from ignoring them in favor of character-level spelling.
|
| 58 |
-
* **Response-Start Weighting:** Prioritizes the first tokens of assistant responses to improve prompt conditioning.
|
| 59 |
-
* **Pretrain Replay:** Mixes pretraining data during instruction tuning to prevent catastrophic forgetting of language fluency.
|
| 60 |
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
-

|
| 60 |
|
| 61 |
+
It went down. Slowly. Painfully.
|
| 62 |
|
| 63 |
+
## Limitations
|
| 64 |
|
| 65 |
+
- Repeats itself. A lot.
|
| 66 |
+
- Knows almost nothing about the world.
|
| 67 |
+
- Not useful for anything real. Research only.
|
| 68 |
+
- Will embarrass itself if asked a direct question.
|
| 69 |
|
| 70 |
---
|
| 71 |
|
| 72 |
+
*Built by [CompactAI](https://huggingface.co/CompactAI-O). We started somewhere.*
|