Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Ludwig version #6

Merged
merged 5 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM python:3.10-slim

ARG VERSION=0.6.1
ARG VERSION=0.10

RUN apt-get -y update && apt-get install -y --no-install-recommends build-essential cmake git unzip

RUN export HOROVOD_WITH_PYTORCH=1 && \
pip install -U pip && \
pip install 'torch' 'git+https://github.com/goeckslab/model-unpickler.git' && \
RUN pip install -U pip && \
pip install 'git+https://github.com/goeckslab/model-unpickler.git' && \
pip install 'git+https://github.com/goeckslab/smart-report.git@17df590f3ceb065add099f37b4874c85bd275014' && \
pip install 'horovod[pytorch]' && \
pip install 'ludwig[full]'==$VERSION && \
pip cache purge

RUN apt-get purge -y build-essential cmake && apt-get -y autoremove && apt-get clean

4 changes: 2 additions & 2 deletions tools/ludwig_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
TEST_STATISTICS_FILE_NAME,
TRAIN_SET_METADATA_FILE_NAME,
)
from ludwig.visualize import visualizations_registry
from ludwig.visualize import get_visualizations_registry

from model_unpickler import SafeUnpickler

Expand Down Expand Up @@ -75,7 +75,7 @@ def make_visualizations(ludwig_output_directory_name):
)

for viz in visualizations:
viz_func = visualizations_registry[viz]
viz_func = get_visualizations_registry()[viz]
try:
viz_func(
training_statistics=[training_statistics],
Expand Down
2 changes: 1 addition & 1 deletion tools/ludwig_macros.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<macros>
<token name="@LUDWIG_VERSION@">0.6.1</token>
<token name="@LUDWIG_VERSION@">0.10</token>

<token name="@SUFFIX@">0</token>

Expand Down
2 changes: 1 addition & 1 deletion tools/ludwig_render_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
PROC_COLUMN,
TRAINER,
)
from ludwig.utils.defaults import merge_with_defaults
from ludwig.schema.model_types.utils import merge_with_defaults

import yaml

Expand Down
Loading