REZIRETSA commited on
Commit
d35070a
·
verified ·
1 Parent(s): 99bdaa8

Apply CC BY-NC-ND 4.0 license

Browse files
Files changed (1) hide show
  1. README.md +56 -56
README.md CHANGED
@@ -1,56 +1,56 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- pipeline_tag: token-classification
6
- tags:
7
- - gpt-neox
8
- - tokenizer
9
- - pythia
10
- - luna
11
- - text-generation
12
- ---
13
-
14
- # LUNA Tokenizer
15
-
16
- The **shared tokenizer** for the [LUNA model family](https://huggingface.co/ASTERIZER) — used by both [LUNA-100M](https://huggingface.co/ASTERIZER/LUNA-100M) and [LUNA-300M](https://huggingface.co/ASTERIZER/LUNA-300M).
17
-
18
- It is the **EleutherAI / Pythia-160m (GPT-NeoX) tokenizer**, extracted into a standalone repository so both models — and any future LUNA variants — reference a single canonical source.
19
-
20
- ## Details
21
-
22
- | Property | Value |
23
- |---|---|
24
- | **Tokenizer class** | `GPTNeoXTokenizer` |
25
- | **Vocabulary size** | 50,304 (50,254 + EOS padding to multiple of 128) |
26
- | **BOS token** | `<|endoftext|>` (id 0) |
27
- | **EOS token** | `<|endoftext|>` (id 0) |
28
- | **UNK token** | `<|endoftext|>` |
29
- | **`add_prefix_space`** | false |
30
- | **Upstream** | EleutherAI/Pythia-160m (gpt-neox-20b lineage) |
31
- | **License** | Apache-2.0 (upstream EleutherAI tokenizer) |
32
-
33
- ## Files
34
-
35
- | File | Description |
36
- |---|---|
37
- | `tokenizer.json` | Tokenizer vocabulary + merges (Hugging Face tokenizers format) |
38
- | `tokenizer_config.json` | Tokenizer configuration (`GPTNeoXTokenizer`, special tokens) |
39
- | `config.json` | Model-side config (`gpt_neox`, `vocab_size = 50304`) for reference |
40
-
41
- ## Usage
42
-
43
- ```python
44
- from transformers import AutoTokenizer
45
-
46
- tok = AutoTokenizer.from_pretrained("ASTERIZER/LUNA-Tokenizer")
47
- ids = tok.encode("Hello, LUNA!")
48
- print(tok.decode(ids))
49
- ```
50
-
51
- ## Related
52
-
53
- - [LUNA-100M](https://huggingface.co/ASTERIZER/LUNA-100M)
54
- - [LUNA-300M](https://huggingface.co/ASTERIZER/LUNA-300M)
55
- - [LUNA-100M Program](https://huggingface.co/collections/ASTERIZER/luna-100m-program-6a9115383c18e52460bf67c9)
56
- - [LUNA-300M Program](https://huggingface.co/collections/ASTERIZER/luna-300m-program-6a91195ab75671026f83ac94)
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ language:
4
+ - en
5
+ pipeline_tag: token-classification
6
+ tags:
7
+ - gpt-neox
8
+ - tokenizer
9
+ - pythia
10
+ - luna
11
+ - text-generation
12
+ ---
13
+
14
+ # LUNA Tokenizer
15
+
16
+ The **shared tokenizer** for the [LUNA model family](https://huggingface.co/ASTERIZER) — used by both [LUNA-100M](https://huggingface.co/ASTERIZER/LUNA-100M) and [LUNA-300M](https://huggingface.co/ASTERIZER/LUNA-300M).
17
+
18
+ It is the **EleutherAI / Pythia-160m (GPT-NeoX) tokenizer**, extracted into a standalone repository so both models — and any future LUNA variants — reference a single canonical source.
19
+
20
+ ## Details
21
+
22
+ | Property | Value |
23
+ |---|---|
24
+ | **Tokenizer class** | `GPTNeoXTokenizer` |
25
+ | **Vocabulary size** | 50,304 (50,254 + EOS padding to multiple of 128) |
26
+ | **BOS token** | `<|endoftext|>` (id 0) |
27
+ | **EOS token** | `<|endoftext|>` (id 0) |
28
+ | **UNK token** | `<|endoftext|>` |
29
+ | **`add_prefix_space`** | false |
30
+ | **Upstream** | EleutherAI/Pythia-160m (gpt-neox-20b lineage) |
31
+ | **License** | Apache-2.0 (upstream EleutherAI tokenizer) |
32
+
33
+ ## Files
34
+
35
+ | File | Description |
36
+ |---|---|
37
+ | `tokenizer.json` | Tokenizer vocabulary + merges (Hugging Face tokenizers format) |
38
+ | `tokenizer_config.json` | Tokenizer configuration (`GPTNeoXTokenizer`, special tokens) |
39
+ | `config.json` | Model-side config (`gpt_neox`, `vocab_size = 50304`) for reference |
40
+
41
+ ## Usage
42
+
43
+ ```python
44
+ from transformers import AutoTokenizer
45
+
46
+ tok = AutoTokenizer.from_pretrained("ASTERIZER/LUNA-Tokenizer")
47
+ ids = tok.encode("Hello, LUNA!")
48
+ print(tok.decode(ids))
49
+ ```
50
+
51
+ ## Related
52
+
53
+ - [LUNA-100M](https://huggingface.co/ASTERIZER/LUNA-100M)
54
+ - [LUNA-300M](https://huggingface.co/ASTERIZER/LUNA-300M)
55
+ - [LUNA-100M Program](https://huggingface.co/collections/ASTERIZER/luna-100m-program-6a9115383c18e52460bf67c9)
56
+ - [LUNA-300M Program](https://huggingface.co/collections/ASTERIZER/luna-300m-program-6a91195ab75671026f83ac94)