nareshmodina commited on
Commit
3973db7
·
verified ·
1 Parent(s): b226d3a

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ base_model: HuggingFaceTB/SmolLM2-360M
6
+ tags:
7
+ - telecom
8
+ - 3gpp
9
+ - etsi
10
+ - standards
11
+ - domain-adaptation
12
+ - causal-lm
13
+ datasets:
14
+ - nareshmodina/TeleSpec-Data
15
+ metrics:
16
+ - perplexity
17
+ ---
18
+
19
+ # SmolLM-TS-360M
20
+
21
+ A 360M parameter language model specialised in 3GPP and ETSI telecommunications standards, trained via full fine-tuning on [TeleSpec-Data](https://huggingface.co/datasets/nareshmodina/TeleSpec-Data).
22
+
23
+ Part of the **SmolLM-TS** series — small language models adapted exclusively to telecommunications standards documents, with zero arXiv or web content in the training corpus.
24
+
25
+ > **Looking for the instruction-tuned version?** See [nareshmodina/SmolLM-TS-360M-it](https://huggingface.co/nareshmodina/SmolLM-TS-360M-it)
26
+
27
+ ---
28
+
29
+ ## Model Details
30
+
31
+ | | |
32
+ |---|---|
33
+ | **Base model** | HuggingFaceTB/SmolLM2-360M |
34
+ | **Parameters** | 360M |
35
+ | **Training** | Full fine-tuning on TeleSpec-Data |
36
+ | **Pretraining data** | TeleSpec-Data (1.87B tokens) |
37
+ | **Context length** | 4096 tokens |
38
+ | **Hardware** | 3× NVIDIA L40S (48GB) |
39
+
40
+ ---
41
+
42
+ ## Training
43
+
44
+ Full fine-tuning of all model weights on 457,160 packed 4096-token blocks (1.87B tokens) from 38,302 standards documents — 15,054 3GPP (Rel-8 to Rel-19) and 23,248 ETSI documents spanning 15 working groups (2000–2024). Zero arXiv or web content — 100% standards text.
45
+
46
+ - Epochs: 2
47
+ - Effective batch size: 128 — LR: 5e-5 (cosine with warmup)
48
+ - Context length: 4096 tokens
49
+
50
+ ---
51
+
52
+ ## Usage
53
+
54
+ This is a base model — it continues text rather than following instructions. For instruction following, use [SmolLM-TS-360M-it](https://huggingface.co/nareshmodina/SmolLM-TS-360M-it).
55
+
56
+ ```python
57
+ from transformers import AutoTokenizer, AutoModelForCausalLM
58
+ import torch
59
+
60
+ model_id = "nareshmodina/SmolLM-TS-360M"
61
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
62
+ model = AutoModelForCausalLM.from_pretrained(
63
+ model_id, dtype=torch.bfloat16, device_map="auto"
64
+ )
65
+
66
+ prompt = "The RRC Connection Establishment procedure in LTE is"
67
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
68
+ outputs = model.generate(**inputs, max_new_tokens=100, do_sample=False)
69
+ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
70
+ ```
71
+
72
+ ---
73
+
74
+ ## Limitations
75
+
76
+ - **Base model only** — does not follow instructions, use SmolLM-TS-360M-it for Q&A
77
+ - **Standards only** — strong 3GPP/ETSI knowledge, limited general telecom knowledge
78
+ - **Not for production** — intended for research purposes only
79
+
80
+ ---
81
+
82
+ ## Links
83
+
84
+ - 📦 Dataset: [nareshmodina/TeleSpec-Data](https://huggingface.co/datasets/nareshmodina/TeleSpec-Data)
85
+ - 🤖 Instruct version: [nareshmodina/SmolLM-TS-360M-it](https://huggingface.co/nareshmodina/SmolLM-TS-360M-it)
86
+ - 📊 Benchmark: [AliMaatouk/Tele-Eval](https://huggingface.co/datasets/AliMaatouk/Tele-Eval)
87
+ - 🗂️ Collection: [nareshmodina/SmolLM-TS](https://huggingface.co/collections/nareshmodina/smollm-ts)
88
+
89
+ ---
90
+
91
+ ## Citation
92
+
93
+ ```bibtex
94
+ @misc{modina2025smollmts,
95
+ author = {Naresh Modina},
96
+ title = {SmolLM-TS: Small Language Models for Telecommunications Standards},
97
+ year = {2025},
98
+ publisher = {Hugging Face},
99
+ url = {https://huggingface.co/nareshmodina/SmolLM-TS-360M}
100
+ }
101
+ ```
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 0,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 960,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 2560,
15
+ "is_llama_config": true,
16
+ "max_position_embeddings": 8192,
17
+ "mlp_bias": false,
18
+ "model_type": "llama",
19
+ "num_attention_heads": 15,
20
+ "num_hidden_layers": 32,
21
+ "num_key_value_heads": 5,
22
+ "pad_token_id": 0,
23
+ "pretraining_tp": 1,
24
+ "rms_norm_eps": 1e-05,
25
+ "rope_interleaved": false,
26
+ "rope_parameters": {
27
+ "rope_theta": 100000,
28
+ "rope_type": "default"
29
+ },
30
+ "tie_word_embeddings": true,
31
+ "transformers_version": "5.3.0",
32
+ "use_cache": false,
33
+ "vocab_size": 49152
34
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": [
5
+ 0
6
+ ],
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.3.0"
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3bb6f16e34a98c6d3d2f32359c9fc3d55046dd5c8f2cf26242eef5f4899e10b
3
+ size 723674912
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|endoftext|>",
10
+ "<|im_start|>",
11
+ "<|im_end|>",
12
+ "<repo_name>",
13
+ "<reponame>",
14
+ "<file_sep>",
15
+ "<filename>",
16
+ "<gh_stars>",
17
+ "<issue_start>",
18
+ "<issue_comment>",
19
+ "<issue_closed>",
20
+ "<jupyter_start>",
21
+ "<jupyter_text>",
22
+ "<jupyter_code>",
23
+ "<jupyter_output>",
24
+ "<jupyter_script>",
25
+ "<empty_output>"
26
+ ],
27
+ "is_local": false,
28
+ "model_max_length": 8192,
29
+ "pad_token": null,
30
+ "tokenizer_class": "GPT2Tokenizer",
31
+ "unk_token": "<|endoftext|>",
32
+ "vocab_size": 49152
33
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b4c80afdad7bcfa119b85bfa7d826f49a3b82074b95f924450ac43c0dc2ad6c
3
+ size 5201