ArthurZ HF Staff commited on
Commit
30d0a70
·
verified ·
1 Parent(s): a373e72

Add tiny ModelOpt-style FP8 test checkpoint + bf16 reference weights

Browse files
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "dtype": "float32",
9
+ "eos_token_id": 2,
10
+ "head_dim": 64,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 256,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 384,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 1,
20
+ "num_key_value_heads": 2,
21
+ "pad_token_id": null,
22
+ "pretraining_tp": 1,
23
+ "quantization_config": {
24
+ "modules_to_convert": [
25
+ "embed_tokens"
26
+ ],
27
+ "quant_method": "fp8"
28
+ },
29
+ "rms_norm_eps": 1e-06,
30
+ "rope_parameters": {
31
+ "rope_theta": 10000.0,
32
+ "rope_type": "default"
33
+ },
34
+ "tie_word_embeddings": false,
35
+ "transformers_version": "5.23.0.dev0",
36
+ "use_cache": true,
37
+ "vocab_size": 64
38
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "transformers_version": "5.23.0.dev0",
8
+ "use_cache": true
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3939cc154c95dad5ddffd2acc3364749d62b9bbd4c668865f20d4d2a461891e
3
+ size 2052412
reference.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9b6c24402aeb4e4cbbeeb5df25e1aaaaccdc5dbe320a129c56f003fed483b321
3
+ size 65664