mfuntowicz HF staff commited on
Commit
2698fc5
1 Parent(s): ac265e7

Add TensorRT-LLM engine

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. engines/config.json +93 -0
  3. engines/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
+ engines/rank0.engine filter=lfs diff=lfs merge=lfs -text
engines/config.json ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.9.0.dev2024022700",
3
+ "pretrained_config": {
4
+ "architecture": "GemmaForCausalLM",
5
+ "dtype": "bfloat16",
6
+ "logits_dtype": "float32",
7
+ "vocab_size": 256000,
8
+ "max_position_embeddings": 8192,
9
+ "hidden_size": 2048,
10
+ "num_hidden_layers": 18,
11
+ "num_attention_heads": 8,
12
+ "num_key_value_heads": 1,
13
+ "head_size": 256,
14
+ "hidden_act": "gelu",
15
+ "intermediate_size": 16384,
16
+ "norm_epsilon": 1e-06,
17
+ "position_embedding_type": "rope_gpt_neox",
18
+ "use_prompt_tuning": false,
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
+ },
27
+ "kv_dtype": "bfloat16",
28
+ "max_lora_rank": 64,
29
+ "mlp_bias": false,
30
+ "attn_bias": false,
31
+ "rotary_base": 10000.0,
32
+ "rotary_scaling": null,
33
+ "enable_pos_shift": false,
34
+ "dense_context_fmha": false,
35
+ "use_fused_mlp": false,
36
+ "moe_num_experts": 0,
37
+ "moe_top_k": 0,
38
+ "moe_tp_mode": 2,
39
+ "moe_normalization_mode": 1,
40
+ "quantization": {
41
+ "quant_algo": null,
42
+ "kv_cache_quant_algo": null,
43
+ "group_size": null,
44
+ "has_zero_point": false,
45
+ "pre_quant_scale": false,
46
+ "exclude_modules": [],
47
+ "sq_use_plugin": false
48
+ }
49
+ },
50
+ "build_config": {
51
+ "max_input_len": 128,
52
+ "max_output_len": 8064,
53
+ "max_batch_size": 1,
54
+ "max_beam_width": 1,
55
+ "max_num_tokens": 128,
56
+ "max_prompt_embedding_table_size": 0,
57
+ "gather_context_logits": false,
58
+ "gather_generation_logits": false,
59
+ "strongly_typed": false,
60
+ "builder_opt": 3,
61
+ "profiling_verbosity": "layer_names_only",
62
+ "enable_debug_output": false,
63
+ "max_draft_len": 0,
64
+ "plugin_config": {
65
+ "bert_attention_plugin": null,
66
+ "gpt_attention_plugin": "bfloat16",
67
+ "gemm_plugin": "bfloat16",
68
+ "smooth_quant_gemm_plugin": null,
69
+ "identity_plugin": null,
70
+ "layernorm_quantization_plugin": null,
71
+ "rmsnorm_quantization_plugin": null,
72
+ "nccl_plugin": null,
73
+ "lookup_plugin": null,
74
+ "lora_plugin": null,
75
+ "weight_only_groupwise_quant_matmul_plugin": null,
76
+ "weight_only_quant_matmul_plugin": null,
77
+ "quantize_per_token_plugin": false,
78
+ "quantize_tensor_plugin": false,
79
+ "moe_plugin": null,
80
+ "context_fmha": true,
81
+ "context_fmha_fp32_acc": false,
82
+ "paged_kv_cache": true,
83
+ "remove_input_padding": true,
84
+ "use_custom_all_reduce": true,
85
+ "multi_block_mode": false,
86
+ "enable_xqa": true,
87
+ "attention_qk_half_accumulation": false,
88
+ "tokens_per_block": 128,
89
+ "use_paged_context_fmha": false,
90
+ "use_context_fmha_for_generation": false
91
+ }
92
+ }
93
+ }
engines/rank0.engine ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa637ebf05e765053da8e2e02e14e8614d3fa64c81cceb074e256b92b5b16a70
3
+ size 6063171228