RoyArkh commited on
Commit
0aabf95
·
verified ·
1 Parent(s): e19922e

Hosein/MobileLLM-125M-None.4.3

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: facebook/MobileLLM-125M
3
+ library_name: transformers
4
+ model_name: MobileLLM-125M-None.4.3
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for MobileLLM-125M-None.4.3
13
+
14
+ This model is a fine-tuned version of [facebook/MobileLLM-125M](https://huggingface.co/facebook/MobileLLM-125M).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="RoyArkh/MobileLLM-125M-None.4.3", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.13.0
38
+ - Transformers: 4.48.0
39
+ - Pytorch: 2.2.1+cu121
40
+ - Datasets: 3.2.0
41
+ - Tokenizers: 0.21.0
42
+
43
+ ## Citations
44
+
45
+
46
+
47
+ Cite TRL as:
48
+
49
+ ```bibtex
50
+ @misc{vonwerra2022trl,
51
+ title = {{TRL: Transformer Reinforcement Learning}},
52
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/MobileLLM-125M",
3
+ "architectures": [
4
+ "MobileLLMForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "auto_map": {
9
+ "AutoConfig": "facebook/MobileLLM-125M--configuration_mobilellm.MobileLLMConfig",
10
+ "AutoModelForCausalLM": "facebook/MobileLLM-125M--modeling_mobilellm.MobileLLMForCausalLM"
11
+ },
12
+ "bos_token_id": 1,
13
+ "eos_token_id": 2,
14
+ "head_dim": 64,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 576,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 1536,
19
+ "layer_sharing": false,
20
+ "max_position_embeddings": 2048,
21
+ "mlp_bias": false,
22
+ "model_type": "mobilellm",
23
+ "num_attention_heads": 9,
24
+ "num_hidden_layers": 30,
25
+ "num_key_value_heads": 3,
26
+ "pretraining_tp": 1,
27
+ "rms_norm_eps": 1e-05,
28
+ "rope_scaling": null,
29
+ "rope_theta": 10000.0,
30
+ "share_embedding": true,
31
+ "tie_word_embeddings": false,
32
+ "torch_dtype": "float32",
33
+ "transformers_version": "4.48.0",
34
+ "use_cache": true,
35
+ "vocab_size": 32000
36
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.48.0"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c4423c0b6e0f8868c6fca9afff60c68a79d42b8a6ff8d90e314bb6736dfe2ae3
3
+ size 498572168
runs/Jan16_19-32-00_ip-10-192-12-244/events.out.tfevents.1737055936.ip-10-192-12-244.44347.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:737503338d66745b1f664ebee02bb4e0003038df0050e16cdbbd315d919e5f85
3
+ size 15492
runs/Jan16_19-33-50_ip-10-192-12-244/events.out.tfevents.1737056030.ip-10-192-12-244.47006.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c527258c7cc4664b7db14932e97d93caf26368793ce62e0fc737ea39a282d75
3
+ size 9696
runs/Jan16_19-34-38_ip-10-192-12-244/events.out.tfevents.1737056094.ip-10-192-12-244.48174.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:128a898e4aef32bec6b3225418f21510239368f41a2ee5d820841874ac263b37
3
+ size 138352
special_tokens_map.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "unk_token": {
17
+ "content": "",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ }
23
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {},
6
+ "bos_token": "",
7
+ "clean_up_tokenization_spaces": false,
8
+ "eos_token": "",
9
+ "extra_special_tokens": {},
10
+ "legacy": true,
11
+ "model_max_length": 1000000000000000019884624838656,
12
+ "pad_token": "",
13
+ "sp_model_kwargs": {},
14
+ "spaces_between_special_tokens": false,
15
+ "tokenizer_class": "LlamaTokenizer",
16
+ "unk_token": "",
17
+ "use_default_system_prompt": false
18
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:506a64ffbe680c2ddd657ab4f44567620762748dcc839973a795ad7d60d35438
3
+ size 5624