LongMountain commited on
Commit
3281c29
·
1 Parent(s): 2458518

initial commit

Browse files
Files changed (2) hide show
  1. attn_gates.pth +3 -0
  2. config.json +50 -0
attn_gates.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c487bdc5ccd9bf4d3f9307a79471e32b98e8abddf3c0059dca333f8b1a8d1ab
3
+ size 503344034
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "models/SeerAttention/deepseek-ai/DeepSeek-R1-Distill-Llama-70B_Qavg_Kmaxminavg_lr1e-3_maxlen65536_warmup20_bs16_steps500_gatelossscale10.0",
4
+ "architectures": [
5
+ "SeerAttnLlamaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "base_model": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
10
+ "bos_token_id": 128000,
11
+ "eos_token_id": [
12
+ 128001,
13
+ 128008,
14
+ 128009
15
+ ],
16
+ "head_dim": 128,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 8192,
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 28672,
21
+ "max_position_embeddings": 131072,
22
+ "mlp_bias": false,
23
+ "model_type": "llama",
24
+ "num_attention_heads": 64,
25
+ "num_hidden_layers": 80,
26
+ "num_key_value_heads": 8,
27
+ "pretraining_tp": 1,
28
+ "rms_norm_eps": 1e-05,
29
+ "rope_scaling": {
30
+ "factor": 8.0,
31
+ "high_freq_factor": 4.0,
32
+ "low_freq_factor": 1.0,
33
+ "original_max_position_embeddings": 8192,
34
+ "rope_type": "llama3"
35
+ },
36
+ "rope_theta": 500000.0,
37
+ "seerattn_gate_block_size": 64,
38
+ "seerattn_gate_force_double": false,
39
+ "seerattn_gate_hidden_size": 128,
40
+ "seerattn_gate_type": "Qavg_Kmaxminavg",
41
+ "seerattn_last_block_dense": true,
42
+ "seerattn_nz_ratio": 1.0,
43
+ "seerattn_sparsity_method": "threshold",
44
+ "seerattn_threshold": 0.0,
45
+ "tie_word_embeddings": false,
46
+ "torch_dtype": "bfloat16",
47
+ "transformers_version": "4.49.0",
48
+ "use_cache": true,
49
+ "vocab_size": 128257
50
+ }