Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: pandyamarut <[email protected]>
  • Loading branch information
pandyamarut committed Nov 7, 2024
1 parent 117d7ce commit d9de7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os

class SGlangEngine:
def __init__(self, model="meta-llama/Meta-Llama-3-8B-Instruct", host="0.0.0.0", port=30000):
def __init__(self, model=os.getenv('MODEL_NAME'), host="0.0.0.0", port=30000):
self.model = model
self.host = host
self.port = port
Expand All @@ -23,7 +23,7 @@ def start_server(self):

# Dictionary of all possible options and their corresponding env var names
options = {
'MODEL_PATH': '--model-path',
'MODEL_NAME': '--model-path',
'TOKENIZER_PATH': '--tokenizer-path',
'HOST': '--host',
'PORT': '--port',
Expand Down

0 comments on commit d9de7bc

Please sign in to comment.