Skip to content

Commit

Permalink
update interactive/config.pbtxt && TurbomindModelConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Dec 5, 2023
1 parent 1ab9882 commit 014a1ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lmdeploy/serve/turbomind/triton_models/interactive/config.pbtxt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ input [
data_type: TYPE_UINT32
dims: [ -1 ]
},
{
name: "image_embs"
data_type: TYPE_FP16
dims: [ -1, -1, -1 ]
optional: true
},
{
name: "image_offsets"
data_type: TYPE_INT32
dims: [ -1 ]
optional: true
},
{
name: "step"
data_type: TYPE_INT32
Expand Down
1 change: 1 addition & 0 deletions lmdeploy/turbomind/deploy/target_model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class TurbomindModelConfig:
max_position_embeddings: int = 0
rope_scaling_factor: float = 0.0
use_logn_attn: int = 0
image_dim: int = 0

@classmethod
def from_dict(cls, env, allow_none=False):
Expand Down

0 comments on commit 014a1ef

Please sign in to comment.