joostinyi-baseten
commited on
Commit
•
aa2ef6c
1
Parent(s):
bbfe8b1
Upload folder using huggingface_hub
Browse files- .gitattributes +3 -0
- draft/config.json +152 -0
- draft/rank0.engine +3 -0
- target/config.json +152 -0
- target/rank0.engine +3 -0
- target/rank1.engine +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
draft/rank0.engine filter=lfs diff=lfs merge=lfs -text
|
37 |
+
target/rank0.engine filter=lfs diff=lfs merge=lfs -text
|
38 |
+
target/rank1.engine filter=lfs diff=lfs merge=lfs -text
|
draft/config.json
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "0.13.0",
|
3 |
+
"pretrained_config": {
|
4 |
+
"mlp_bias": false,
|
5 |
+
"attn_bias": true,
|
6 |
+
"rotary_base": 1000000.0,
|
7 |
+
"rotary_scaling": null,
|
8 |
+
"disable_weight_only_quant_plugin": false,
|
9 |
+
"moe": {
|
10 |
+
"num_experts": 0,
|
11 |
+
"top_k": 0,
|
12 |
+
"normalization_mode": 0,
|
13 |
+
"sparse_mixer_epsilon": 0.01,
|
14 |
+
"tp_mode": 0
|
15 |
+
},
|
16 |
+
"architecture": "Qwen2ForCausalLM",
|
17 |
+
"dtype": "float16",
|
18 |
+
"vocab_size": 151936,
|
19 |
+
"hidden_size": 1536,
|
20 |
+
"num_hidden_layers": 28,
|
21 |
+
"num_attention_heads": 12,
|
22 |
+
"hidden_act": "silu",
|
23 |
+
"logits_dtype": "float32",
|
24 |
+
"norm_epsilon": 1e-06,
|
25 |
+
"position_embedding_type": "rope_gpt_neox",
|
26 |
+
"max_position_embeddings": 32768,
|
27 |
+
"num_key_value_heads": 2,
|
28 |
+
"intermediate_size": 8960,
|
29 |
+
"mapping": {
|
30 |
+
"world_size": 1,
|
31 |
+
"gpus_per_node": 8,
|
32 |
+
"cp_size": 1,
|
33 |
+
"tp_size": 1,
|
34 |
+
"pp_size": 1,
|
35 |
+
"moe_tp_size": 1,
|
36 |
+
"moe_ep_size": 1
|
37 |
+
},
|
38 |
+
"quantization": {
|
39 |
+
"quant_algo": null,
|
40 |
+
"kv_cache_quant_algo": null,
|
41 |
+
"group_size": 128,
|
42 |
+
"smoothquant_val": 0.5,
|
43 |
+
"clamp_val": null,
|
44 |
+
"has_zero_point": false,
|
45 |
+
"pre_quant_scale": false,
|
46 |
+
"exclude_modules": null
|
47 |
+
},
|
48 |
+
"use_parallel_embedding": false,
|
49 |
+
"embedding_sharding_dim": 0,
|
50 |
+
"share_embedding_table": false,
|
51 |
+
"head_size": 128,
|
52 |
+
"qk_layernorm": false,
|
53 |
+
"qwen_type": "qwen2",
|
54 |
+
"moe_intermediate_size": 0,
|
55 |
+
"moe_shared_expert_intermediate_size": 0
|
56 |
+
},
|
57 |
+
"build_config": {
|
58 |
+
"max_input_len": 256,
|
59 |
+
"max_seq_len": 10000,
|
60 |
+
"opt_batch_size": 8,
|
61 |
+
"max_batch_size": 256,
|
62 |
+
"max_beam_width": 1,
|
63 |
+
"max_num_tokens": 8192,
|
64 |
+
"opt_num_tokens": 256,
|
65 |
+
"max_prompt_embedding_table_size": 0,
|
66 |
+
"kv_cache_type": "PAGED",
|
67 |
+
"gather_context_logits": false,
|
68 |
+
"gather_generation_logits": false,
|
69 |
+
"strongly_typed": false,
|
70 |
+
"builder_opt": null,
|
71 |
+
"force_num_profiles": null,
|
72 |
+
"profiling_verbosity": "layer_names_only",
|
73 |
+
"enable_debug_output": false,
|
74 |
+
"max_draft_len": 0,
|
75 |
+
"speculative_decoding_mode": 1,
|
76 |
+
"use_refit": false,
|
77 |
+
"input_timing_cache": null,
|
78 |
+
"output_timing_cache": null,
|
79 |
+
"lora_config": {
|
80 |
+
"lora_dir": [],
|
81 |
+
"lora_ckpt_source": "hf",
|
82 |
+
"max_lora_rank": 64,
|
83 |
+
"lora_target_modules": [],
|
84 |
+
"trtllm_modules_to_hf_modules": {}
|
85 |
+
},
|
86 |
+
"auto_parallel_config": {
|
87 |
+
"world_size": 1,
|
88 |
+
"gpus_per_node": 8,
|
89 |
+
"cluster_key": null,
|
90 |
+
"cluster_info": null,
|
91 |
+
"sharding_cost_model": "alpha_beta",
|
92 |
+
"comm_cost_model": "alpha_beta",
|
93 |
+
"enable_pipeline_parallelism": false,
|
94 |
+
"enable_shard_unbalanced_shape": false,
|
95 |
+
"enable_shard_dynamic_shape": false,
|
96 |
+
"enable_reduce_scatter": true,
|
97 |
+
"builder_flags": null,
|
98 |
+
"debug_mode": false,
|
99 |
+
"infer_shape": true,
|
100 |
+
"validation_mode": false,
|
101 |
+
"same_buffer_io": {},
|
102 |
+
"same_spec_io": {},
|
103 |
+
"sharded_io_allowlist": [],
|
104 |
+
"fill_weights": false,
|
105 |
+
"parallel_config_cache": null,
|
106 |
+
"profile_cache": null,
|
107 |
+
"dump_path": null,
|
108 |
+
"debug_outputs": []
|
109 |
+
},
|
110 |
+
"weight_sparsity": false,
|
111 |
+
"weight_streaming": false,
|
112 |
+
"plugin_config": {
|
113 |
+
"dtype": "float16",
|
114 |
+
"bert_attention_plugin": "auto",
|
115 |
+
"gpt_attention_plugin": "auto",
|
116 |
+
"gemm_plugin": "auto",
|
117 |
+
"gemm_swiglu_plugin": null,
|
118 |
+
"fp8_rowwise_gemm_plugin": null,
|
119 |
+
"smooth_quant_gemm_plugin": null,
|
120 |
+
"identity_plugin": null,
|
121 |
+
"layernorm_quantization_plugin": null,
|
122 |
+
"rmsnorm_quantization_plugin": null,
|
123 |
+
"nccl_plugin": null,
|
124 |
+
"lookup_plugin": null,
|
125 |
+
"lora_plugin": null,
|
126 |
+
"weight_only_groupwise_quant_matmul_plugin": null,
|
127 |
+
"weight_only_quant_matmul_plugin": null,
|
128 |
+
"quantize_per_token_plugin": false,
|
129 |
+
"quantize_tensor_plugin": false,
|
130 |
+
"moe_plugin": "auto",
|
131 |
+
"mamba_conv1d_plugin": "auto",
|
132 |
+
"low_latency_gemm_plugin": null,
|
133 |
+
"context_fmha": true,
|
134 |
+
"bert_context_fmha_fp32_acc": false,
|
135 |
+
"paged_kv_cache": true,
|
136 |
+
"remove_input_padding": true,
|
137 |
+
"reduce_fusion": false,
|
138 |
+
"enable_xqa": true,
|
139 |
+
"tokens_per_block": 64,
|
140 |
+
"use_paged_context_fmha": true,
|
141 |
+
"use_fp8_context_fmha": false,
|
142 |
+
"multiple_profiles": false,
|
143 |
+
"paged_state": false,
|
144 |
+
"streamingllm": false,
|
145 |
+
"manage_weights": false,
|
146 |
+
"use_fused_mlp": true
|
147 |
+
},
|
148 |
+
"use_strip_plan": false,
|
149 |
+
"max_encoder_input_len": 1,
|
150 |
+
"use_fused_mlp": false
|
151 |
+
}
|
152 |
+
}
|
draft/rank0.engine
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbb48d63e64c9cb902111ddd8b5488f1ab9cce7198e6de76deee4f1e017a582b
|
3 |
+
size 3577402588
|
target/config.json
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"version": "0.13.0",
|
3 |
+
"pretrained_config": {
|
4 |
+
"mlp_bias": false,
|
5 |
+
"attn_bias": true,
|
6 |
+
"rotary_base": 1000000.0,
|
7 |
+
"rotary_scaling": null,
|
8 |
+
"disable_weight_only_quant_plugin": false,
|
9 |
+
"moe": {
|
10 |
+
"num_experts": 0,
|
11 |
+
"top_k": 0,
|
12 |
+
"normalization_mode": 0,
|
13 |
+
"sparse_mixer_epsilon": 0.01,
|
14 |
+
"tp_mode": 0
|
15 |
+
},
|
16 |
+
"architecture": "Qwen2ForCausalLM",
|
17 |
+
"dtype": "float16",
|
18 |
+
"vocab_size": 152064,
|
19 |
+
"hidden_size": 5120,
|
20 |
+
"num_hidden_layers": 64,
|
21 |
+
"num_attention_heads": 40,
|
22 |
+
"hidden_act": "silu",
|
23 |
+
"logits_dtype": "float32",
|
24 |
+
"norm_epsilon": 1e-06,
|
25 |
+
"position_embedding_type": "rope_gpt_neox",
|
26 |
+
"max_position_embeddings": 32768,
|
27 |
+
"num_key_value_heads": 8,
|
28 |
+
"intermediate_size": 27648,
|
29 |
+
"mapping": {
|
30 |
+
"world_size": 2,
|
31 |
+
"gpus_per_node": 8,
|
32 |
+
"cp_size": 1,
|
33 |
+
"tp_size": 2,
|
34 |
+
"pp_size": 1,
|
35 |
+
"moe_tp_size": 2,
|
36 |
+
"moe_ep_size": 1
|
37 |
+
},
|
38 |
+
"quantization": {
|
39 |
+
"quant_algo": null,
|
40 |
+
"kv_cache_quant_algo": null,
|
41 |
+
"group_size": 128,
|
42 |
+
"smoothquant_val": 0.5,
|
43 |
+
"clamp_val": null,
|
44 |
+
"has_zero_point": false,
|
45 |
+
"pre_quant_scale": false,
|
46 |
+
"exclude_modules": null
|
47 |
+
},
|
48 |
+
"use_parallel_embedding": false,
|
49 |
+
"embedding_sharding_dim": 0,
|
50 |
+
"share_embedding_table": false,
|
51 |
+
"head_size": 128,
|
52 |
+
"qk_layernorm": false,
|
53 |
+
"qwen_type": "qwen2",
|
54 |
+
"moe_intermediate_size": 0,
|
55 |
+
"moe_shared_expert_intermediate_size": 0
|
56 |
+
},
|
57 |
+
"build_config": {
|
58 |
+
"max_input_len": 10000,
|
59 |
+
"max_seq_len": 10000,
|
60 |
+
"opt_batch_size": 8,
|
61 |
+
"max_batch_size": 256,
|
62 |
+
"max_beam_width": 1,
|
63 |
+
"max_num_tokens": 8192,
|
64 |
+
"opt_num_tokens": 256,
|
65 |
+
"max_prompt_embedding_table_size": 0,
|
66 |
+
"kv_cache_type": "PAGED",
|
67 |
+
"gather_context_logits": false,
|
68 |
+
"gather_generation_logits": false,
|
69 |
+
"strongly_typed": false,
|
70 |
+
"builder_opt": null,
|
71 |
+
"force_num_profiles": null,
|
72 |
+
"profiling_verbosity": "layer_names_only",
|
73 |
+
"enable_debug_output": false,
|
74 |
+
"max_draft_len": 0,
|
75 |
+
"speculative_decoding_mode": 1,
|
76 |
+
"use_refit": false,
|
77 |
+
"input_timing_cache": null,
|
78 |
+
"output_timing_cache": null,
|
79 |
+
"lora_config": {
|
80 |
+
"lora_dir": [],
|
81 |
+
"lora_ckpt_source": "hf",
|
82 |
+
"max_lora_rank": 64,
|
83 |
+
"lora_target_modules": [],
|
84 |
+
"trtllm_modules_to_hf_modules": {}
|
85 |
+
},
|
86 |
+
"auto_parallel_config": {
|
87 |
+
"world_size": 1,
|
88 |
+
"gpus_per_node": 8,
|
89 |
+
"cluster_key": null,
|
90 |
+
"cluster_info": null,
|
91 |
+
"sharding_cost_model": "alpha_beta",
|
92 |
+
"comm_cost_model": "alpha_beta",
|
93 |
+
"enable_pipeline_parallelism": false,
|
94 |
+
"enable_shard_unbalanced_shape": false,
|
95 |
+
"enable_shard_dynamic_shape": false,
|
96 |
+
"enable_reduce_scatter": true,
|
97 |
+
"builder_flags": null,
|
98 |
+
"debug_mode": false,
|
99 |
+
"infer_shape": true,
|
100 |
+
"validation_mode": false,
|
101 |
+
"same_buffer_io": {},
|
102 |
+
"same_spec_io": {},
|
103 |
+
"sharded_io_allowlist": [],
|
104 |
+
"fill_weights": false,
|
105 |
+
"parallel_config_cache": null,
|
106 |
+
"profile_cache": null,
|
107 |
+
"dump_path": null,
|
108 |
+
"debug_outputs": []
|
109 |
+
},
|
110 |
+
"weight_sparsity": false,
|
111 |
+
"weight_streaming": false,
|
112 |
+
"plugin_config": {
|
113 |
+
"dtype": "float16",
|
114 |
+
"bert_attention_plugin": "auto",
|
115 |
+
"gpt_attention_plugin": "auto",
|
116 |
+
"gemm_plugin": "auto",
|
117 |
+
"gemm_swiglu_plugin": null,
|
118 |
+
"fp8_rowwise_gemm_plugin": null,
|
119 |
+
"smooth_quant_gemm_plugin": null,
|
120 |
+
"identity_plugin": null,
|
121 |
+
"layernorm_quantization_plugin": null,
|
122 |
+
"rmsnorm_quantization_plugin": null,
|
123 |
+
"nccl_plugin": "float16",
|
124 |
+
"lookup_plugin": null,
|
125 |
+
"lora_plugin": null,
|
126 |
+
"weight_only_groupwise_quant_matmul_plugin": null,
|
127 |
+
"weight_only_quant_matmul_plugin": null,
|
128 |
+
"quantize_per_token_plugin": false,
|
129 |
+
"quantize_tensor_plugin": false,
|
130 |
+
"moe_plugin": "auto",
|
131 |
+
"mamba_conv1d_plugin": "auto",
|
132 |
+
"low_latency_gemm_plugin": null,
|
133 |
+
"context_fmha": true,
|
134 |
+
"bert_context_fmha_fp32_acc": false,
|
135 |
+
"paged_kv_cache": true,
|
136 |
+
"remove_input_padding": true,
|
137 |
+
"reduce_fusion": false,
|
138 |
+
"enable_xqa": true,
|
139 |
+
"tokens_per_block": 64,
|
140 |
+
"use_paged_context_fmha": true,
|
141 |
+
"use_fp8_context_fmha": false,
|
142 |
+
"multiple_profiles": false,
|
143 |
+
"paged_state": false,
|
144 |
+
"streamingllm": false,
|
145 |
+
"manage_weights": false,
|
146 |
+
"use_fused_mlp": true
|
147 |
+
},
|
148 |
+
"use_strip_plan": false,
|
149 |
+
"max_encoder_input_len": 1,
|
150 |
+
"use_fused_mlp": false
|
151 |
+
}
|
152 |
+
}
|
target/rank0.engine
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f298f16cf3b1e3d6d9827eaa052a9917276bbc582a0a683d7afb2079b899bde
|
3 |
+
size 33575464900
|
target/rank1.engine
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b310f15a8ac8b318fbeec398132567287ffa13fd64ed74eca6f66af68551915a
|
3 |
+
size 33575463108
|