Open gianfranco-s opened 4 months ago
docker build -t
ends in error: ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements.txt" did not complete successfully: exit code: 1
I suggest leaving requirements.txt without versions
# requirements.txt
scikit-learn
Flask
gunicorn
And using flag '--ignore-installed' in dockerfile to avoid conflicts with base image packages
RUN pip3 install --ignore-installed -r requirements.txt
Error: Could not connect to the endpoint URL
Attribute endpoint
is the problem. Should be s3.
instead of s3-
. Source
endpoint = "s3-eu-central-1.amazonaws.com", # Change this
endpoint = "s3.eu-central-1.amazonaws.com", # Change this
I suggest changing the Dockerfile to this:
FROM tensorflow/tensorflow:2.10.0-gpu-jupyter
This will require to import pad_sequences
from keras.utils
(instead of keras.preprocessing.sequence)
Tutorials: https://developers.sap.com/tutorials/ai-core-tensorflow-byod.html
I'm using the Free Tier.
I'm fairly certain that this tutorial cannot be completed with GPU nodesThe tutorial can be completed without GPU nodes, although ATM I don't have any way to try it with GPU nodes.I haven't been able to complete this tutorial because there are multiple issues.I have solved all the issues with the tutorial. I'll fork the project, and create a PR.The first issue appears when trying to register the artifact. It is my understanding (after having tried it multiple times) that the application must be created before registering the model.
Here are my proposed changes
Additional comments on current steps
resourcePlan
toinfer.s
which will enable GPU. Free tier only allows forstarter
resourcePlan. Maybe add this to the prerequisites?executables.ai.sap.com/name: "serve-executuable"
->executables.ai.sap.com/name: "serve-executable"
.