Deploy Python model on a bare metal target

48 views
Skip to first unread message

Ghliss Khairane Mustapha

unread,
Jun 3, 2022, 5:46:41 AM6/3/22
to iree-discuss
Hello all,

I am working on my internship on a AI models  that I developed in python and tensorflow and now I have to deploy them  on an FPGA card.

I looked through the website and internet I couldn't find how to do so .

So please can someone help me with that?

What are the steps for that ?

Thank you in advance.

Scott Todd

unread,
Jun 3, 2022, 1:54:46 PM6/3/22
to Ghliss Khairane Mustapha, iree-discuss
Hi!

The steps you'll need to follow will depend largely on your platform. You might want to start with IREE's documentation page: https://google.github.io/iree/deployment-configurations/bare-metal/ and this community sample: https://github.com/iml130/iree-bare-metal-arm.

--
You received this message because you are subscribed to the Google Groups "iree-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iree-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iree-discuss/ce8d9694-08de-47cb-8e06-73fbfb3932c0n%40googlegroups.com.

Ghliss Khairane Mustapha

unread,
Jun 7, 2022, 9:48:45 AM6/7/22
to iree-discuss
Hello,
 Thank you for your response and sorry for my late one.

But I have a problem in github bare metal I can't access the file "ethos-u-core-platform @ d798c6e" .
And when I run "git submodule update --init" I got the following error :

"
fatal: unable to access 'https://git.mlplatform.org/ml/ethos-u/ethos-u-core-platform.git/': server certificate verification failed. CAfile: none CRLfile: none
fatal: clone of 'https://git.mlplatform.org/ml/ethos-u/ethos-u-core-platform.git' into submodule path ' failed  "

And when I run cmake it says that there's no cmakelist in third-party/iree directory.

Can you help me please?

Sincerely

Scott Todd

unread,
Jun 7, 2022, 1:50:49 PM6/7/22
to Ghliss Khairane Mustapha, Brehler, Marius, iree-discuss
+Marius may be able to help with https://github.com/iml130/iree-bare-metal-arm setup, or you could file an issue on that repository (though note again that the specifics for bare metal deployment will really depend on your target platform and available toolchains).


Brehler, Marius

unread,
Jun 8, 2022, 3:00:11 AM6/8/22
to ghli...@gmail.com, iree-d...@googlegroups.com
Hi!

On Tue, 2022-06-07 at 10:50 -0700, Scott Todd wrote:
> +Marius may be able to help
> with https://github.com/iml130/iree-bare-metal-arm setup, or you
> could file an issue on that repository (though note again that the
> specifics for bare metal deployment will really depend on your target
> platform and available toolchains).

Sure! :) Asking here or on Discord (in IREE's bare-metal channel) is
fine. I follow here regularly but I wasn't as fast with a response due
to me being located in a different timezone.

> On Tue, Jun 7, 2022 at 6:48 AM Ghliss Khairane Mustapha
> <ghli...@gmail.com> wrote:
> > Hello,
> >  Thank you for your response and sorry for my late one.
> >
> > But I have a problem in github bare metal I can't access the file
> > "ethos-u-core-platform @ d798c6e" .
> > And when I run "git submodule update --init" I got the following
> > error :
> >
> > "
> > fatal: unable to access
> > 'https://git.mlplatform.org/ml/ethos-u/ethos-u-core-platform.git/':
> > server certificate verification failed. CAfile: none CRLfile: none
> > fatal: clone of
> > 'https://git.mlplatform.org/ml/ethos-u/ethos-u-core-platform.git'
> > into submodule path ' failed  "

I just
cloned https://git.mlplatform.org/ml/ethos-u/ethos-u-core-platform.git 
and cannot confirm the issue. Taking a look to the certificate,
everything seems okay. The certificate isn't outdated and validated by
Let's Encrypt. It might be that the relevant root CA certificates are
missing on your machine.
However, this is not related to the iree-bare-metal-arm repo itself.

> >
> > And when I run cmake it says that there's no cmakelist in third-
> > party/iree directory.

This is probably due to the incomplete initialization of the git
submodules.

Best, Marius
> > https://groups.google.com/d/msgid/iree-discuss/0382d8fa-294d-451c-a02a-a7bdee474154n%40googlegroups.com
> > .
Reply all
Reply to author
Forward
0 new messages