Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
license: mit
|
| 5 |
+
library_name: pytorch
|
| 6 |
+
tags:
|
| 7 |
+
- text-generation
|
| 8 |
+
- causal-lm
|
| 9 |
+
- pretrained
|
| 10 |
+
- qarvexium
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# QED-Base-v2
|
| 15 |
+
|
| 16 |
+
QED-Base-v2 is a ~107M parameter causal language model pretrained from scratch by [Qarvexium](https://huggingface.co/Qarvexium). It is a **base model** — it has not been instruction-tuned or aligned for chat, and will continue text rather than follow instructions or hold a conversation.
|
| 17 |
+
|
| 18 |
+
## Model Details
|
| 19 |
+
|
| 20 |
+
- **Developed by:** Qarvexium
|
| 21 |
+
- **Model type:** Decoder-only causal language base model
|
| 22 |
+
- **Language:** English
|
| 23 |
+
- **License:** MIT
|
| 24 |
+
- **Tokenizer:** QED-B1 tokenizer (SentencePiece BPE, 48,000 vocabulary)
|
| 25 |
+
|
| 26 |
+
### Architecture
|
| 27 |
+
|
| 28 |
+
| Component | Value |
|
| 29 |
+
| --------------------- | -----------------------: |
|
| 30 |
+
| Tokenizer | QED-B1 tokenizer |
|
| 31 |
+
| Vocabulary size | 48,000 |
|
| 32 |
+
| Model type | Decoder-only Transformer |
|
| 33 |
+
| Parameters | ~107M |
|
| 34 |
+
| Hidden size | 768 |
|
| 35 |
+
| Layers | 12 |
|
| 36 |
+
| Attention heads | 12 |
|
| 37 |
+
| KV heads | 4 |
|
| 38 |
+
| Attention | GQA |
|
| 39 |
+
| Intermediate FFN size | 1792 |
|
| 40 |
+
| Activation | SwiGLU |
|
| 41 |
+
| Normalization | RMSNorm |
|
| 42 |
+
| Position encoding | RoPE |
|
| 43 |
+
| Context length | 2048 |
|
| 44 |
+
| RoPE theta | 10000 |
|
| 45 |
+
| RMS epsilon | 1e-6 |
|
| 46 |
+
|
| 47 |
+
Weight-tied embeddings/LM head.
|
| 48 |
+
|
| 49 |
+
## Uses
|
| 50 |
+
|
| 51 |
+
### Direct Use
|
| 52 |
+
|
| 53 |
+
As a base model, QED-Base-v2 is intended for:
|
| 54 |
+
- Text completion / continuation
|
| 55 |
+
- Research on small-scale language model pretraining
|
| 56 |
+
- A starting checkpoint for further fine-tuning (instruction tuning, domain adaptation, etc.)
|
| 57 |
+
|
| 58 |
+
### Out-of-Scope Use
|
| 59 |
+
|
| 60 |
+
This model has **not** been instruction-tuned, RLHF'd, or safety-aligned. It should not be deployed directly in a chat or assistant product, or in any application where reliable instruction-following or content moderation is required, without further fine-tuning and evaluation.
|
| 61 |
+
|
| 62 |
+
## Bias, Risks, and Limitations
|
| 63 |
+
|
| 64 |
+
QED-Base-v2 was trained on a large web-crawled corpus and will reflect the biases, inaccuracies, and occasionally toxic content present in that data. As a base model it has no built-in refusal behavior or safety tuning — outputs should be filtered/evaluated before use in any user-facing setting. At ~107M parameters, factual accuracy and reasoning ability are limited compared to larger models.
|
| 65 |
+
|
| 66 |
+
## How to Get Started
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
from infer import load_model, load_tokenizer, run
|
| 70 |
+
|
| 71 |
+
model = load_model("QED-Base-v2.pt")
|
| 72 |
+
tokenizer = load_tokenizer("tok.model")
|
| 73 |
+
|
| 74 |
+
text = run("Once upon a time", model, tokenizer, max_new_tokens=100)
|
| 75 |
+
print(text)
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Citation
|
| 79 |
+
|
| 80 |
+
```bibtex
|
| 81 |
+
@misc{qed-base-v2,
|
| 82 |
+
title = {QED-Base-v2},
|
| 83 |
+
author = {Qarvexium},
|
| 84 |
+
year = {2026},
|
| 85 |
+
url = {https://huggingface.co/Qarvexium}
|
| 86 |
+
}
|
| 87 |
+
```
|