Skip to content

Commit

Permalink
updated amazon.chronos version and changed type to float32 that speed…
Browse files Browse the repository at this point in the history
… up inference
  • Loading branch information
attilabalint committed Jun 13, 2024
1 parent 509ae94 commit 41633de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ DEFAULT_PORT := 3000
DARTS_VERSION := 0.27.2
SKTIME_VERSION := 0.26.1
STATSFORECAST_VERSION := 1.5.0
CHRONOS_VERSION := 1.1.0
CHRONOS_VERSION := 1.2.0


.PHONY: base-image-darts
Expand Down
4 changes: 2 additions & 2 deletions models/amazon-chronos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM attilabalint/enfobench-models:base-amazon-chronos-1.1.0
FROM attilabalint/enfobench-models:base-amazon-chronos-1.2.0

WORKDIR /usr/local/app

Expand All @@ -9,7 +9,7 @@ COPY ./models /usr/local/app/models
COPY ./src /usr/local/app/src

ENV ENFOBENCH_MODEL_NAME="chronos-t5-tiny"
ENV ENFOBENCH_NUM_SAMPLES="20"
ENV ENFOBENCH_NUM_SAMPLES="1"

EXPOSE 3000
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "3000", "--workers", "1"]
2 changes: 1 addition & 1 deletion models/amazon-chronos/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def forecast(
pipeline = ChronosPipeline.from_pretrained(
model_dir,
device_map=device,
torch_dtype=torch.bfloat16,
torch_dtype=torch.float32,
)

# context must be either a 1D tensor, a list of 1D tensors,
Expand Down

0 comments on commit 41633de

Please sign in to comment.