Adebolajo commited on
Commit
efc3a7c
·
1 Parent(s): 354c029

addinge engine model

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. engine/config.json +157 -0
  3. engine/rank0.engine +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ *.engine filter=lfs diff=lfs merge=lfs -text
engine/config.json ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.10.0",
3
+ "pretrained_config": {
4
+ "architecture": "Phi3ForCausalLM",
5
+ "dtype": "float16",
6
+ "logits_dtype": "float32",
7
+ "vocab_size": 32064,
8
+ "max_position_embeddings": 4096,
9
+ "hidden_size": 3072,
10
+ "num_hidden_layers": 32,
11
+ "num_attention_heads": 32,
12
+ "num_key_value_heads": 32,
13
+ "head_size": 96,
14
+ "qk_layernorm": false,
15
+ "hidden_act": "swiglu",
16
+ "intermediate_size": 8192,
17
+ "norm_epsilon": 1e-05,
18
+ "position_embedding_type": "learned_absolute",
19
+ "use_parallel_embedding": false,
20
+ "embedding_sharding_dim": 0,
21
+ "share_embedding_table": false,
22
+ "mapping": {
23
+ "world_size": 1,
24
+ "tp_size": 1,
25
+ "pp_size": 1,
26
+ "gpus_per_node": 8
27
+ },
28
+ "quantization": {
29
+ "quant_algo": null,
30
+ "kv_cache_quant_algo": null,
31
+ "group_size": 128,
32
+ "smoothquant_val": null,
33
+ "has_zero_point": false,
34
+ "pre_quant_scale": false,
35
+ "exclude_modules": null
36
+ },
37
+ "kv_dtype": "float16",
38
+ "rope_theta": 10000.0,
39
+ "rotary_base": 10000.0
40
+ },
41
+ "build_config": {
42
+ "max_input_len": 1024,
43
+ "max_output_len": 1024,
44
+ "opt_batch_size": null,
45
+ "max_batch_size": 8,
46
+ "max_beam_width": 1,
47
+ "max_num_tokens": 8192,
48
+ "opt_num_tokens": 8,
49
+ "max_prompt_embedding_table_size": 0,
50
+ "gather_context_logits": false,
51
+ "gather_generation_logits": false,
52
+ "strongly_typed": false,
53
+ "builder_opt": null,
54
+ "profiling_verbosity": "layer_names_only",
55
+ "enable_debug_output": false,
56
+ "max_draft_len": 0,
57
+ "speculative_decoding_mode": 1,
58
+ "use_refit": false,
59
+ "input_timing_cache": null,
60
+ "output_timing_cache": "model.cache",
61
+ "lora_config": {
62
+ "lora_dir": [],
63
+ "lora_ckpt_source": "hf",
64
+ "max_lora_rank": 64,
65
+ "lora_target_modules": [],
66
+ "trtllm_modules_to_hf_modules": {}
67
+ },
68
+ "auto_parallel_config": {
69
+ "world_size": 1,
70
+ "gpus_per_node": 8,
71
+ "cluster_key": "NVIDIA-GeForce-RTX-3090",
72
+ "cluster_info": {
73
+ "inter_node_bw_per_device": 25,
74
+ "intra_node_bw_per_device": 300,
75
+ "inter_node_latency": 10,
76
+ "intra_node_latency": 10,
77
+ "intra_node_sharp": false,
78
+ "inter_node_sharp": true,
79
+ "memory_bw": 936,
80
+ "memory_budget_per_device": 24,
81
+ "math_throughput": {
82
+ "int4": 705,
83
+ "int8": 352,
84
+ "fp8": 0,
85
+ "float16": 176,
86
+ "bfloat16": 176,
87
+ "float32": 88
88
+ },
89
+ "memory_efficiency": 1.0,
90
+ "math_efficiency": 1.0,
91
+ "communication_efficiency": 1.0
92
+ },
93
+ "sharding_cost_model": "alpha_beta",
94
+ "comm_cost_model": "alpha_beta",
95
+ "enable_pipeline_parallelism": false,
96
+ "enable_shard_unbalanced_shape": false,
97
+ "enable_shard_dynamic_shape": false,
98
+ "enable_reduce_scatter": true,
99
+ "builder_flags": null,
100
+ "debug_mode": false,
101
+ "infer_shape": true,
102
+ "validation_mode": false,
103
+ "same_buffer_io": {
104
+ "past_key_value_(\\d+)": "present_key_value_\\1"
105
+ },
106
+ "same_spec_io": {},
107
+ "sharded_io_allowlist": [
108
+ "past_key_value_\\d+",
109
+ "present_key_value_\\d*"
110
+ ],
111
+ "fast_reduce": true,
112
+ "fill_weights": false,
113
+ "parallel_config_cache": null,
114
+ "profile_cache": null,
115
+ "dump_path": null,
116
+ "debug_outputs": []
117
+ },
118
+ "weight_sparsity": false,
119
+ "weight_streaming": false,
120
+ "use_strip_plan": false,
121
+ "max_encoder_input_len": 1024,
122
+ "use_fused_mlp": false,
123
+ "plugin_config": {
124
+ "bert_attention_plugin": "float16",
125
+ "gpt_attention_plugin": "float16",
126
+ "gemm_plugin": "float16",
127
+ "smooth_quant_gemm_plugin": null,
128
+ "identity_plugin": null,
129
+ "layernorm_quantization_plugin": null,
130
+ "rmsnorm_quantization_plugin": null,
131
+ "nccl_plugin": null,
132
+ "lookup_plugin": null,
133
+ "lora_plugin": null,
134
+ "weight_only_groupwise_quant_matmul_plugin": null,
135
+ "weight_only_quant_matmul_plugin": null,
136
+ "quantize_per_token_plugin": false,
137
+ "quantize_tensor_plugin": false,
138
+ "moe_plugin": "float16",
139
+ "mamba_conv1d_plugin": "float16",
140
+ "context_fmha": true,
141
+ "context_fmha_fp32_acc": false,
142
+ "paged_kv_cache": true,
143
+ "remove_input_padding": true,
144
+ "use_custom_all_reduce": true,
145
+ "multi_block_mode": false,
146
+ "enable_xqa": true,
147
+ "attention_qk_half_accumulation": false,
148
+ "tokens_per_block": 64,
149
+ "use_paged_context_fmha": false,
150
+ "use_fp8_context_fmha": false,
151
+ "use_context_fmha_for_generation": false,
152
+ "multiple_profiles": false,
153
+ "paged_state": true,
154
+ "streamingllm": false
155
+ }
156
+ }
157
+ }
engine/rank0.engine ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2af025c8f1fb953cf8b8e2e91b98e3e945e8405a5a97a64849955e4431502d8e
3
+ size 7646867396