Skip to content

Commit

Permalink
Add model warmup flag into cli (#197)
Browse files Browse the repository at this point in the history
add model warmup flag into cli
  • Loading branch information
vivianrwu authored Nov 6, 2024
1 parent 02927c9 commit fe22a9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jetstream_pt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
flags.DEFINE_bool(
"internal_use_local_tokenizer", 0, "Use local tokenizer if set to True"
)
flags.DEFINE_bool("enable_model_warmup", False, "enable model warmup")


def shard_weights(env, weights, weight_shardings):
Expand Down Expand Up @@ -111,6 +112,7 @@ def serve():
config=server_config,
devices=devices,
metrics_server_config=metrics_server_config,
enable_model_warmup=FLAGS.enable_model_warmup,
)
print("Started jetstream_server....")
jetstream_server.wait_for_termination()
Expand Down

0 comments on commit fe22a9f

Please sign in to comment.