samcheng0 commited on
Commit
06ba26e
·
verified ·
1 Parent(s): 77fe8c7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +54 -0
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - tiny
5
+ - lumia
6
+ - custom-pytorch
7
+ - alibi
8
+ - gelu
9
+ ---
10
+
11
+ # Lumia-Tiny
12
+
13
+ 1,017,088 parameter causal language model with ALiBi (Attention with Linear Biases) and GELU activation.
14
+
15
+ ## Architecture
16
+
17
+ | Config | Value |
18
+ |--------|-------|
19
+ | Parameters | 1,017,088 |
20
+ | Hidden size | 128 |
21
+ | Intermediate | 512 |
22
+ | Layers | 2 |
23
+ | Heads | 8 (query), 4 (key/value) |
24
+ | Max seq len | 2048 |
25
+ | Vocab | 4096 (BPE, byte fallback) |
26
+ | Position | ALiBi (no learned embeddings) |
27
+ | Activation | GELU |
28
+ | Tie embeddings | Yes |
29
+
30
+ ## Usage
31
+
32
+ ```python
33
+ import torch
34
+ from model_tiny import TinyModel
35
+
36
+ model = TinyModel.from_pretrained("samcheng0/lumia-tiny")
37
+ tokenizer = ...
38
+
39
+ inputs = tokenizer("Hello world", return_tensors="pt")
40
+ outputs = model.generate(**inputs, max_new_tokens=50)
41
+ print(tokenizer.decode(outputs[0]))
42
+ ```
43
+
44
+ ### GGUF (llama.cpp)
45
+
46
+ The model is also available in GGUF Q4_K_M format:
47
+
48
+ ```
49
+ tiny.gguf
50
+ ```
51
+
52
+ ## Training
53
+
54
+ Trained on [trl-lib/Capybara](https://huggingface.co/datasets/trl-lib/Capybara) via SFT.