We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d0c37 commit 5f2518fCopy full SHA for 5f2518f
gpt_server/model_worker/base/model_worker_base.py
@@ -101,6 +101,9 @@ def __init__(
101
except ValueError as e:
102
logger.warning(e)
103
self.model_config = {}
104
+ self.max_position_embeddings = getattr(
105
+ self.model_config, "max_position_embeddings", 512
106
+ )
107
# logger.info(f"模型配置:{self.model_config}")
108
self.vision_config = getattr(self.model_config, "vision_config", None)
109
is_vision = self.vision_config is not None
0 commit comments