danielhanchen commited on
Commit
28ea972
1 Parent(s): 260a73d

Upload LlamaForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +11 -5
  2. generation_config.json +3 -3
  3. model.safetensors +2 -2
config.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
- "_name_or_path": "HuggingFaceTB/SmolLM2-135M",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
- "bos_token_id": 0,
9
- "eos_token_id": 0,
10
  "head_dim": 64,
11
  "hidden_act": "silu",
12
  "hidden_size": 576,
@@ -19,7 +19,7 @@
19
  "num_attention_heads": 9,
20
  "num_hidden_layers": 30,
21
  "num_key_value_heads": 3,
22
- "pad_token_id": 49152,
23
  "pretraining_tp": 1,
24
  "rms_norm_eps": 1e-05,
25
  "rope_interleaved": false,
@@ -27,7 +27,13 @@
27
  "rope_theta": 100000,
28
  "tie_word_embeddings": true,
29
  "torch_dtype": "bfloat16",
 
 
 
 
 
 
30
  "transformers_version": "4.46.1",
31
  "use_cache": true,
32
- "vocab_size": 49153
33
  }
 
1
  {
2
+ "_name_or_path": "HuggingFaceTB/SmolLM2-135M-Instruct",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
  "head_dim": 64,
11
  "hidden_act": "silu",
12
  "hidden_size": 576,
 
19
  "num_attention_heads": 9,
20
  "num_hidden_layers": 30,
21
  "num_key_value_heads": 3,
22
+ "pad_token_id": 0,
23
  "pretraining_tp": 1,
24
  "rms_norm_eps": 1e-05,
25
  "rope_interleaved": false,
 
27
  "rope_theta": 100000,
28
  "tie_word_embeddings": true,
29
  "torch_dtype": "bfloat16",
30
+ "transformers.js_config": {
31
+ "kv_cache_dtype": {
32
+ "fp16": "float16",
33
+ "q4f16": "float16"
34
+ }
35
+ },
36
  "transformers_version": "4.46.1",
37
  "use_cache": true,
38
+ "vocab_size": 49152
39
  }
generation_config.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "_from_model_config": true,
3
- "bos_token_id": 0,
4
- "eos_token_id": 0,
5
  "max_length": 8192,
6
- "pad_token_id": 49152,
7
  "transformers_version": "4.46.1"
8
  }
 
1
  {
2
  "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
  "max_length": 8192,
6
+ "pad_token_id": 0,
7
  "transformers_version": "4.46.1"
8
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:b96a8dc3d71a10224f9d2c050bbfa38168d7d8169715a54d8040212cc5c104f6
3
- size 269061704
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5af571cbf074e6d21a03528d2330792e532ca608f24ac70a143f6b369968ab8c
3
+ size 269060552