MagistrTheOne commited on
Commit
688a757
·
verified ·
1 Parent(s): 744a30d

Update MagistrTheOne/RadonSAI-Small - add YAML metadata, developing status, and transformers registration

Browse files
Files changed (8) hide show
  1. README.md +53 -28
  2. config.json +21 -27
  3. merges.txt +0 -0
  4. model.safetensors +2 -2
  5. model_card.yml +21 -0
  6. special_tokens_map.json +0 -1
  7. tokenizer_config.json +2 -1
  8. vocab.json +0 -0
README.md CHANGED
@@ -1,48 +1,73 @@
1
  ---
2
  license: apache-2.0
 
 
 
3
  tags:
4
  - radon
5
- - gpt2
6
- - working
7
- - 512d
 
 
 
 
 
 
 
 
 
 
8
  ---
9
 
10
- # RadonSAI-Small (Working)
11
 
12
- Полностью рабочая версия RadonSAI-Small с реальными весами.
13
 
14
- ## Технические характеристики
15
- - Параметры: ~45,171,200
16
- - Размерность: 512
17
- - Слои: 6
18
- - Головы внимания: 8
 
 
 
 
 
 
 
 
19
 
20
- ## Использование
21
  ```python
22
  from transformers import AutoModelForCausalLM, AutoTokenizer
23
 
 
24
  model = AutoModelForCausalLM.from_pretrained("MagistrTheOne/RadonSAI-Small")
25
  tokenizer = AutoTokenizer.from_pretrained("MagistrTheOne/RadonSAI-Small")
26
 
27
- # Генерация текста
28
- input_text = "Hello, how are you?"
29
- inputs = tokenizer(input_text, return_tensors="pt")
30
- outputs = model.generate(**inputs, max_length=50)
31
  result = tokenizer.decode(outputs[0], skip_special_tokens=True)
32
  print(result)
33
  ```
34
 
35
- ## Тестирование
36
- ```python
37
- # Быстрый тест
38
- import torch
39
- model = AutoModelForCausalLM.from_pretrained("MagistrTheOne/RadonSAI-Small")
40
- tokenizer = AutoTokenizer.from_pretrained("MagistrTheOne/RadonSAI-Small")
41
 
42
- # Простая генерация
43
- text = "The future of AI is"
44
- inputs = tokenizer(text, return_tensors="pt")
45
- with torch.no_grad():
46
- outputs = model.generate(**inputs, max_length=30, do_sample=True, temperature=0.7)
47
- print(tokenizer.decode(outputs[0], skip_special_tokens=True))
48
- ```
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - ru
5
+ - en
6
  tags:
7
  - radon
8
+ - russian
9
+ - english
10
+ - developing
11
+ - mistral
12
+ - small
13
+ - 22m
14
+ pipeline_tag: text-generation
15
+ library_name: transformers
16
+ model_status: developing
17
+ size_categories: 100M
18
+ model-index:
19
+ - name: RadonSAI-Small
20
+ results: []
21
  ---
22
 
 
23
 
24
+ # RadonSAI-Small
25
 
26
+ ## Model Description
27
+
28
+ RadonSAI-Small is a 22M parameters transformer model designed for development and testing in the RADON ecosystem.
29
+
30
+ ### Key Features
31
+
32
+ - **Parameters**: 22M parameters
33
+ - **Base Model**: initialized
34
+ - **Status**: Developing
35
+ - **Languages**: Russian, English
36
+ - **Architecture**: GPT2-based
37
+
38
+ ## Usage
39
 
 
40
  ```python
41
  from transformers import AutoModelForCausalLM, AutoTokenizer
42
 
43
+ # Load model
44
  model = AutoModelForCausalLM.from_pretrained("MagistrTheOne/RadonSAI-Small")
45
  tokenizer = AutoTokenizer.from_pretrained("MagistrTheOne/RadonSAI-Small")
46
 
47
+ # Generate text
48
+ prompt = "Привет, как дела?"
49
+ inputs = tokenizer(prompt, return_tensors="pt")
50
+ outputs = model.generate(**inputs, max_length=100, temperature=0.7)
51
  result = tokenizer.decode(outputs[0], skip_special_tokens=True)
52
  print(result)
53
  ```
54
 
55
+ ## Model Status
 
 
 
 
 
56
 
57
+ **Status**: Developing
58
+ **Last Updated**: 2025-10-08
59
+ **Creator**: MagistrTheOne
60
+
61
+ ## License
62
+
63
+ Apache 2.0 License
64
+
65
+ ## Contact
66
+
67
+ - GitHub: [MagistrTheOne/Radon2BMistral](https://github.com/MagistrTheOne/Radon2BMistral)
68
+ - Hugging Face: [MagistrTheOne/RadonSAI-Small](https://huggingface.co/MagistrTheOne/RadonSAI-Small)
69
+ - Creator: [MagistrTheOne](https://github.com/MagistrTheOne)
70
+
71
+ ---
72
+
73
+ **Created with ❤️ by MagistrTheOne**
config.json CHANGED
@@ -1,31 +1,25 @@
1
  {
2
- "activation_function": "gelu_new",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "architectures": [
4
  "GPT2LMHeadModel"
5
  ],
6
- "attn_pdrop": 0.1,
7
- "bos_token_id": 50256,
8
- "embd_pdrop": 0.1,
9
- "eos_token_id": 50256,
10
- "initializer_range": 0.02,
11
- "layer_norm_epsilon": 1e-05,
12
- "model_type": "gpt2",
13
- "n_embd": 512,
14
- "n_head": 8,
15
- "n_inner": null,
16
- "n_layer": 6,
17
- "n_positions": 1024,
18
- "reorder_and_upcast_attn": false,
19
- "resid_pdrop": 0.1,
20
- "scale_attn_by_inverse_layer_idx": false,
21
- "scale_attn_weights": true,
22
- "summary_activation": null,
23
- "summary_first_dropout": 0.1,
24
- "summary_proj_to_labels": true,
25
- "summary_type": "cls_index",
26
- "summary_use_proj": true,
27
- "torch_dtype": "float32",
28
- "transformers_version": "4.36.2",
29
- "use_cache": true,
30
- "vocab_size": 50257
31
- }
 
1
  {
2
+ "model_name": "radon-small",
3
+ "model_type": "gpt2",
4
+ "vocab_size": 32000,
5
+ "hidden_size": 256,
6
+ "num_layers": 6,
7
+ "num_attention_heads": 8,
8
+ "intermediate_size": 1024,
9
+ "max_position_embeddings": 512,
10
+ "dropout": 0.1,
11
+ "attention_dropout": 0.1,
12
+ "activation_function": "gelu",
13
+ "layer_norm_eps": 1e-05,
14
+ "initializer_range": 0.02,
15
+ "use_cache": true,
16
+ "torch_dtype": "float32",
17
+ "status": "developing",
18
+ "last_updated": "2025-10-08",
19
+ "transformers_version": "4.36.0",
20
  "architectures": [
21
  "GPT2LMHeadModel"
22
  ],
23
+ "creator": "MagistrTheOne",
24
+ "description": "RADON Small: 22M parameter model for development and testing"
25
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
merges.txt CHANGED
The diff for this file is too large to render. See raw diff
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:df2b6bf603f0993087fd545ec8c0bc08d583c892a06a2d859700e13b780245d9
3
- size 180692360
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2c53c4c481761135c7ccad0edccb589e5e17d628a695332d3d527228c38dd03
3
+ size 90721296
model_card.yml ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - ru
5
+ - en
6
+ tags:
7
+ - radon
8
+ - russian
9
+ - english
10
+ - developing
11
+ - mistral
12
+ - small
13
+ - 22m
14
+ pipeline_tag: text-generation
15
+ library_name: transformers
16
+ model_status: developing
17
+ size_categories: 100M
18
+ model-index:
19
+ - name: RadonSAI-Small
20
+ results: []
21
+ ---
special_tokens_map.json CHANGED
@@ -13,7 +13,6 @@
13
  "rstrip": false,
14
  "single_word": false
15
  },
16
- "pad_token": "<|endoftext|>",
17
  "unk_token": {
18
  "content": "<|endoftext|>",
19
  "lstrip": false,
 
13
  "rstrip": false,
14
  "single_word": false
15
  },
 
16
  "unk_token": {
17
  "content": "<|endoftext|>",
18
  "lstrip": false,
tokenizer_config.json CHANGED
@@ -12,11 +12,12 @@
12
  }
13
  },
14
  "bos_token": "<|endoftext|>",
 
15
  "clean_up_tokenization_spaces": true,
16
  "eos_token": "<|endoftext|>",
17
  "errors": "replace",
18
  "model_max_length": 1024,
19
- "pad_token": "<|endoftext|>",
20
  "tokenizer_class": "GPT2Tokenizer",
21
  "unk_token": "<|endoftext|>"
22
  }
 
12
  }
13
  },
14
  "bos_token": "<|endoftext|>",
15
+ "chat_template": "{% for message in messages %}{{ message.content }}{{ eos_token }}{% endfor %}",
16
  "clean_up_tokenization_spaces": true,
17
  "eos_token": "<|endoftext|>",
18
  "errors": "replace",
19
  "model_max_length": 1024,
20
+ "pad_token": null,
21
  "tokenizer_class": "GPT2Tokenizer",
22
  "unk_token": "<|endoftext|>"
23
  }
vocab.json CHANGED
The diff for this file is too large to render. See raw diff