Skip to content

Commit

Permalink
chore: remove unecessary requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Apr 15, 2024
1 parent d217ffb commit 73a2a25
Show file tree
Hide file tree
Showing 10 changed files with 264 additions and 146 deletions.
10 changes: 7 additions & 3 deletions script/make_utils/run_use_case_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ install_concrete_ml() {
}

install_requirements() {
if [ -f "requirements.txt" ]; then
local example_dir=$1
if [ -f "${example_dir}/requirements.txt" ]; then
pushd "$example_dir"
if pip install -r requirements.txt; then
echo "Requirements installed successfully."
else
echo "Failed to install requirements."
popd
return 1
fi
popd
fi
}

Expand All @@ -64,12 +68,12 @@ run_example() {
echo "*** Running example: $example_name ***"
setup_virtualenv "$example_name"
install_concrete_ml || return
install_requirements || return
install_requirements "$example_dir" || return

echo "Running use case example using Makefile..."
make -C "$example_dir" run_example

local result="${PIPESTATUS[0]}"
local result=$?

if [ "$result" -ne 0 ]; then
echo "Failure in example $example_name."
Expand Down

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions use_case_examples/credit_scoring/requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions use_case_examples/disease_prediction/requirements.txt

This file was deleted.

4 changes: 3 additions & 1 deletion use_case_examples/federated_learning/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ PYTHON_RUN=python
run_example: run_sh load_to_cml

run_sh:
@echo "Running federated learning training script..."
@./run.sh

load_to_cml:
@$(PYTHON_RUN) load_to_cml.py
@echo "Loading and compiling the model with Concrete ML..."
@$(PYTHON_RUN) load_to_cml.py
1 change: 0 additions & 1 deletion use_case_examples/federated_learning/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
flwr~=1.4.0
openml~=0.13.1
concrete-ml
13 changes: 13 additions & 0 deletions use_case_examples/hybrid_model/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Useful for jupyter notebooks
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

EXAMPLE_NAME=hybrid_model

run_example: compile_model serve_model

compile_model:
@python compile_hybrid_llm.py

serve_model:
@./serve.sh
Loading

0 comments on commit 73a2a25

Please sign in to comment.