Skip to content

Commit

Permalink
fixup! [Docs] Update PyTorch tutorial
Browse files Browse the repository at this point in the history
Signed-off-by: Adarsh Anand <[email protected]>
  • Loading branch information
adarshan-intel committed Dec 5, 2024
1 parent d155097 commit 326224c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Documentation/tutorials/pytorch/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ user who will decrypt it and analyze its contents.
Prerequisites
-------------

- A Linux-based operating system (e.g., Ubuntu 20.04 or later)
- A Linux-based operating system (e.g., Ubuntu 22.04 or later)

- PyTorch (Python3). PyTorch is a framework for machine learning based on
Python. Please `install PyTorch <https://pytorch.org/get-started/locally/>`__
before you proceed (don't forget to choose Linux as the target OS and CPU as
the compute platform).

- Gramine with DCAP support. DCAP software infrastructure must also be
installed.

Please refer to the `Gramine Attestation Documentation
<https://gramine.readthedocs.io/en/latest/attestation.html>`__ for more details.
installed. Please refer to the `Gramine Attestation Documentation
<https://gramine.readthedocs.io/en/latest/attestation.html>`__ for more
details.

.. warning::

After running Ubuntu 24.04, it is required to use a virtual environment to manage
If you're on a recent distro that implements PEP 668 (e.g., Debian 12,
Ubuntu 24.04), it is required to use a virtual environment to manage
dependencies. You can create and activate a virtual environment with the
following commands:

Expand All @@ -122,7 +122,7 @@ example as a basis and will improve it to protect all user files.

Go to the directory with Gramine's PyTorch example::

git clone https://github.com/gramineproject/examples.git
git clone --depth 1 https://github.com/gramineproject/examples.git
cd examples/pytorch

The directory contains a Python script ``pytorchexample.py`` and other relevant
Expand Down Expand Up @@ -375,7 +375,7 @@ We will use the reference implementation of the Secret Provisioning server found
under ``CI-Examples/ra-tls-secret-prov`` directory (in the core Gramine
repository), so let's build the secret provisioning server::

git clone https://github.com/gramineproject/gramine.git
git clone --depth 1 https://github.com/gramineproject/gramine.git
cd gramine/CI-Examples/ra-tls-secret-prov
make app dcap RA_TYPE=dcap

Expand Down

0 comments on commit 326224c

Please sign in to comment.