Code Monkey home page Code Monkey logo

aws-samples / aws-do-inference Goto Github PK

View Code? Open in Web Editor NEW
37.0 16.0 9.0 901 KB

This Guidance demonstrates how to deploy a machine learning inference architecture on Amazon Elastic Kubernetes Service (Amazon EKS). It addresses the basic implementation requirements as well as ways you can pack thousands of unique PyTorch deep learning (DL) models into a scalable architecture and evaluate performance at scale

License: MIT No Attribution

Shell 76.39% Python 22.75% Dockerfile 0.86%
eks-cluster graviton3 inferentia ml mlops-workflow

aws-do-inference's Issues

Deploy Script Fails for Example

I am following the ReadMe and using all default settings.

I get the following error after running bash deploy.sh run

Runtime: kubernetes
Processor: graviton
error: error validating "STDIN": error validating data: failed to download openapi: the server has asked for the client to provide credentials; if you choose to ignore these errors, turn validation off with --validate=false
Generating ./app-bert-base-multilingual-cased-graviton-c7g.4xlarge/bert-base-multilingual-cased-graviton-0.yaml ...
error: error validating "app-bert-base-multilingual-cased-graviton-c7g.4xlarge/bert-base-multilingual-cased-graviton-0.yaml": error validating data: failed to download openapi: the server has asked for the client to provide credentials; if you choose to ignore these errors, turn validation off with --validate=false

neuron runtime error

I executed ./trace.sh according to README, but neuron runtime error has occered.

Part of error log.

Question: What does the little engine say?
2022-Mar-29 07:07:29.0082    11:11    ERROR   NRT:nrt_init                                Unable to determine Neuron Driver version. Please check aws-neuron-dkms package is installed.
Traceback (most recent call last):
  File "model-tracer.py", line 101, in <module>
    answer_logits = model_traced(*example_inputs)
  File "/usr/local/lib64/python3.7/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
    return forward_call(*input, **kwargs)
RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
/usr/local/lib64/python3.7/site-packages/torch_neuron/decorators.py(373): forward
/usr/local/lib64/python3.7/site-packages/torch/nn/modules/module.py(1090): _slow_forward
/usr/local/lib64/python3.7/site-packages/torch/nn/modules/module.py(1102): _call_impl
/usr/local/lib64/python3.7/site-packages/torch_neuron/graph.py(546): __call__
/usr/local/lib64/python3.7/site-packages/torch_neuron/graph.py(205): run_op
/usr/local/lib64/python3.7/site-packages/torch_neuron/graph.py(194): __call__
/usr/local/lib64/python3.7/site-packages/torch_neuron/convert.py(217): forward
/usr/local/lib64/python3.7/site-packages/torch/nn/modules/module.py(1090): _slow_forward
/usr/local/lib64/python3.7/site-packages/torch/nn/modules/module.py(1102): _call_impl
/usr/local/lib64/python3.7/site-packages/torch/jit/_trace.py(965): trace_module
/usr/local/lib64/python3.7/site-packages/torch/jit/_trace.py(750): trace
/usr/local/lib64/python3.7/site-packages/torch_neuron/convert.py(183): trace
model-tracer.py(92): <module>
RuntimeError: The PyTorch Neuron Runtime could not be initialized. Neuron Driver issues are logged
to your system logs. See the Neuron Runtime's troubleshooting guide for help on this
topic: https://awsdocs-neuron.readthedocs-hosted.com/en/latest/

I changed 1-build/Dockerfile-base-inf#L16

After changed, worked normally in my environment.

RUN yum update -y && \
    yum install -y python3 python3-devel gcc-c++ && \
    yum install -y tar gzip ca-certificates procps net-tools which vim wget libgomp htop jq bind-utils bc && \
    yum install -y kernel-devel-$(uname -r) kernel-headers-$(uname -r) aws-neuron-dkms aws-neuron-tools # I changed here.

I' AWS employee in Japan. alias akazawt

Error while executing build script

Getting the following error when I run the build script.

I have the registry configured

#8 38.24 No package aws-neuron-runtime-base available.
#8 38.48 No package aws-neuron-runtime available.
#8 38.70 No package aws-neuron-tools available.
#8 38.83 Error: Nothing to do
------
executor failed running [/bin/sh -c yum update -y &&     yum install -y python3 python3-devel gcc-c++ &&     yum install -y tar gzip ca-certificates procps net-tools which vim wget libgomp htop jq bind-utils bc &&     yum install -y aws-neuron-runtime-base aws-neuron-runtime aws-neuron-tools]: exit code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.