File tree Expand file tree Collapse file tree 6 files changed +15
-1510
lines changed
src/zenml/integrations/vllm/services
integration/examples/deepchecks/steps Expand file tree Collapse file tree 6 files changed +15
-1510
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ install_integrations() {
36
36
# figure out the python version
37
37
python_version=$( python -c " import sys; print('.'.join(map(str, sys.version_info[:2])))" )
38
38
39
- ignore_integrations=" feast label_studio bentoml seldon pycaret skypilot_aws skypilot_gcp skypilot_azure skypilot_kubernetes skypilot_lambda pigeon prodigy argilla"
39
+ ignore_integrations=" feast label_studio bentoml seldon pycaret skypilot_aws skypilot_gcp skypilot_azure skypilot_kubernetes skypilot_lambda pigeon prodigy argilla vllm "
40
40
41
41
# Ignore tensorflow and deepchecks only on Python 3.12
42
42
if [ " $python_version " = " 3.12" ]; then
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ for COMMAND in "${COMMANDS[@]}"; do
171
171
if [ -n " $TIMEOUT_CMD " ]; then
172
172
# Use set +e to prevent script from exiting if the command times out or fails
173
173
set +e
174
- $ TIMEOUT_CMD $TIMEOUT_SECONDS bash -c " $COMMAND " > /dev/null 2>&1
174
+ COMMAND_OUTPUT= $( $ TIMEOUT_CMD $TIMEOUT_SECONDS bash -c " $COMMAND " 2>&1 )
175
175
EXIT_CODE=$?
176
176
# Restore error handling
177
177
set -e
@@ -186,13 +186,14 @@ for COMMAND in "${COMMANDS[@]}"; do
186
186
COMMAND_FAILED=true
187
187
ERROR_MESSAGE=" Command failed on run $i (exit code: $EXIT_CODE )"
188
188
echo " ❌ $ERROR_MESSAGE "
189
+ echo " $COMMAND_OUTPUT "
189
190
break
190
191
fi
191
192
else
192
193
# No timeout command available, just run normally
193
194
# Use set +e to prevent script from exiting if the command fails
194
195
set +e
195
- eval $COMMAND > /dev/null 2>&1
196
+ COMMAND_OUTPUT= $( eval $COMMAND 2>&1 )
196
197
EXIT_CODE=$?
197
198
# Restore error handling
198
199
set -e
@@ -201,6 +202,7 @@ for COMMAND in "${COMMANDS[@]}"; do
201
202
COMMAND_FAILED=true
202
203
ERROR_MESSAGE=" Command failed on run $i (exit code: $EXIT_CODE )"
203
204
echo " ❌ $ERROR_MESSAGE "
205
+ echo " $COMMAND_OUTPUT "
204
206
break
205
207
fi
206
208
fi
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ def run(self) -> None:
150
150
151
151
try :
152
152
parser : argparse .ArgumentParser = make_arg_parser (
153
- FlexibleArgumentParser () # type: ignore[no-untyped-call]
153
+ FlexibleArgumentParser ()
154
154
)
155
155
# pass in empty list to get default args
156
156
# otherwise it will try to get the args from sys.argv
Original file line number Diff line number Diff line change 14
14
from typing import Tuple
15
15
16
16
import pandas as pd
17
- from deepchecks . tabular . datasets . classification import iris
17
+ from sklearn . datasets import load_iris
18
18
from sklearn .model_selection import train_test_split
19
19
from typing_extensions import Annotated
20
20
@@ -27,9 +27,8 @@ def data_loader() -> Tuple[
27
27
Annotated [pd .DataFrame , "comparison_dataset" ],
28
28
]:
29
29
"""Load the iris dataset."""
30
- iris_df = iris .load_data (data_format = "Dataframe" , as_train_test = False )
31
- label_col = "target"
30
+ iris = load_iris (as_frame = True )
32
31
df_train , df_test = train_test_split (
33
- iris_df , stratify = iris_df [ label_col ], random_state = 0
32
+ iris [ "frame" ] , stratify = iris [ "target" ], random_state = 0
34
33
)
35
34
return df_train , df_test
Original file line number Diff line number Diff line change @@ -212,8 +212,13 @@ def test_is_remote_when_using_remote_prefix(filesystem):
212
212
def test_is_remote_when_using_non_remote_prefix (filesystem ):
213
213
"""is_remote returns False when path doesn't start with
214
214
a remote prefix"""
215
+ expected_result = False
216
+
217
+ if filesystem in REMOTE_FS_PREFIX :
218
+ expected_result = True
219
+
215
220
some_random_path = os .path .join (f"{ filesystem } some_directory" )
216
- assert io_utils .is_remote (some_random_path ) is False
221
+ assert io_utils .is_remote (some_random_path ) is expected_result
217
222
218
223
219
224
def test_create_file_if_not_exists (tmp_path ) -> None :
You can’t perform that action at this time.
0 commit comments