-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hi, I'm trying End-To-End Confidential PyTorch Workflow.
When I run gramine-sgx ./pytorch pytorchexample.py, I got
Detected a huge manifest, preallocating 128MB of internal memory.
Gramine detected the following insecure configurations:
- loader.insecure__use_cmdline_argv = true (forwarding command-line args from untrusted host to the app)
- loader.insecure__use_host_env = true (forwarding environment vars from untrusted host to the app)
- sgx.allowed_files = [ ... ] (some files are passed through from untrusted host without verification)
Gramine will continue application execution, but this configuration must not be used in production!
Detected a huge manifest, preallocating 128MB of internal memory.
Traceback (most recent call last):
File "pytorchexample.py", line 8, in
alexnet = torch.load("alexnet-pretrained.pt")
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 231, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 212, in init
super(_open_file, self).init(open(name, mode))
PermissionError: [Errno 13] Permission denied: 'alexnet-pretrained.pt'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 72, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/init.py", line 5, in
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 27, in
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in
import apt
File "/usr/lib/python3/dist-packages/apt/init.py", line 36, in
apt_pkg.init_system()
apt_pkg.Error: E:Error reading the CPU tableOriginal exception was:
Traceback (most recent call last):
File "pytorchexample.py", line 8, in
alexnet = torch.load("alexnet-pretrained.pt")
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 699, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 231, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 212, in init
super(_open_file, self).init(open(name, mode))
PermissionError: [Errno 13] Permission denied: 'alexnet-pretrained.pt'
Can someone help me?