Ryzers
Ryzers copied to clipboard
Seg fault while running the Ryzers
I am trying to run MobileSam and OpenVLA on Strix Halo Mini PC using Ryzers, but I am getting a segmentation fault on both. Please suggest how can I fix it. Below are the logs:
HSA_OVERRIDE_GFX_VERSION=11.0.0
~/.cache/huggingface/:/root/.cache/huggingface/
Build Flags:
Run Flags: -it --rm --shm-size 16G --cap-add=SYS_PTRACE --network=host --ipc=host -e HSA_OVERRIDE_GFX_VERSION=11.0.0 -v ~/.cache/huggingface/:/root/.cache/huggingface/ --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --group-add render -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix
Initial Image: rocm/pytorch:rocm7.0_ubuntu24.04_py3.12_pytorch_release_2.6.0
Building Dockerfile '1/2 /scratch/jasvinder/Ryzers/Ryzers/packages/init/ryzer_env/Dockerfile' with base image 'rocm/pytorch:rocm7.0_ubuntu24.04_py3.12_pytorch_release_2.6.0'...
docker build -t ryzer_env --build-arg BASE_IMAGE=rocm/pytorch:rocm7.0_ubuntu24.04_py3.12_pytorch_release_2.6.0 /scratch/jasvinder/Ryzers/Ryzers/packages/init/ryzer_env
[+] Building 2.0s (15/15) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.30kB 0.0s
=> WARN: InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name (line 5) 0.0s
=> [internal] load metadata for docker.io/rocm/pytorch:rocm7.0_ubuntu24.04_py3.12_pytorch_release_2.6.0 1.9s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [ 1/10] FROM docker.io/rocm/pytorch:rocm7.0_ubuntu24.04_py3.12_pytorch_release_2.6.0@sha256:fa68acc45d43859a0d2a4ef6a2fbced12586132643144f630da3d7ca77612465 0.0s
=> => resolve docker.io/rocm/pytorch:rocm7.0_ubuntu24.04_py3.12_pytorch_release_2.6.0@sha256:fa68acc45d43859a0d2a4ef6a2fbced12586132643144f630da3d7ca77612465 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 29B 0.0s
=> CACHED [ 2/10] RUN getent group render || groupadd render 0.0s
=> CACHED [ 3/10] RUN getent group video || groupadd video 0.0s
=> CACHED [ 4/10] RUN getent group kvm || groupadd kvm 0.0s
=> CACHED [ 5/10] RUN usermod -aG render root 0.0s
=> CACHED [ 6/10] RUN usermod -aG video root 0.0s
=> CACHED [ 7/10] RUN usermod -aG kvm root 0.0s
=> CACHED [ 8/10] WORKDIR /ryzers 0.0s
=> CACHED [ 9/10] COPY test.sh /ryzers/test_init.sh 0.0s
=> CACHED [10/10] RUN chmod +x /ryzers/test_init.sh 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => exporting manifest sha256:72ff0a07909fe865b0c37618866e9250b95f9a7c27a62f72f8f8bc1cdf86b0bf 0.0s
=> => exporting config sha256:bfe8a81486b5570778daf1fb3fbbb115f578d9cbf854c05e20234e409fa4fec1 0.0s
=> => exporting attestation manifest sha256:ae4e4aa1ad5c8dfb7166bcb01d17b5d247e4fc72dbb7771b82be4d177481db5d 0.0s
=> => exporting manifest list sha256:4040ded3cea088bec5cfe5080aff762105745bf49b39d3615c159f1c8607891b 0.0s
=> => naming to docker.io/library/ryzer_env:latest 0.0s
=> => unpacking to docker.io/library/ryzer_env:latest 0.0s
1 warning found (use docker --debug to expand):
- InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name (line 5)
Successfully built image: ryzer_env
Building Dockerfile '2/2 /scratch/jasvinder/Ryzers/Ryzers/packages/vla/openvla/Dockerfile' with base image 'ryzer_env'...
docker build -t ryzerdocker --build-arg BASE_IMAGE=ryzer_env /scratch/jasvinder/Ryzers/Ryzers/packages/vla/openvla
[+] Building 26.4s (14/14) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 735B 0.0s
=> WARN: InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name (line 5) 0.0s
=> [internal] load metadata for docker.io/library/ryzer_env:latest 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 2.58kB 0.0s
=> [1/9] FROM docker.io/library/ryzer_env:latest@sha256:4040ded3cea088bec5cfe5080aff762105745bf49b39d3615c159f1c8607891b 0.0s
=> => resolve docker.io/library/ryzer_env:latest@sha256:4040ded3cea088bec5cfe5080aff762105745bf49b39d3615c159f1c8607891b 0.0s
=> CACHED [2/9] WORKDIR /ryzers 0.0s
=> [3/9] RUN apt-get update && apt-get install -y git vim wget 10.7s
=> [4/9] RUN mkdir -p /ryzers/data/ && wget https://github.com/AMDResearch/Riallto/blob/main/notebooks/images/jpg/toucan.jpg?raw=true -O /ryzers/data/toucan.jpg 2.1s
=> [5/9] RUN pip install -r https://raw.githubusercontent.com/openvla/openvla/refs/heads/main/requirements-min.txt 8.5s
=> [6/9] RUN pip install accelerate 0.9s
=> [7/9] COPY test.py /ryzers/test.py 0.0s
=> [8/9] COPY test.sh /ryzers/test_openvla.sh 0.0s
=> [9/9] RUN chmod +x /ryzers/test_openvla.sh 0.2s
=> exporting to image 3.9s
=> => exporting layers 3.2s
=> => exporting manifest sha256:66876aad6ef9ba02ad03d83f280b0a14224d104a53f1bacbf26a00718b23702b 0.0s
=> => exporting config sha256:6b6b503d19fde30ce95ec9e6ba849da5e31b1e50514eefc6bb8d00271d675bcc 0.0s
=> => exporting attestation manifest sha256:69a25512d4fd9156a11b20bb0ed41b6fae276e3b585e5aa24fb1cc28854df458 0.0s
=> => exporting manifest list sha256:f5ea388ff51453c899a5e8f667e72628a71dfaf091a075992c6801a0cd77866f 0.0s
=> => naming to docker.io/library/ryzerdocker:latest 0.0s
=> => unpacking to docker.io/library/ryzerdocker:latest 0.7s
1 warning found (use docker --debug to expand):
- InvalidDefaultArgInFrom: Default value for ARG ${BASE_IMAGE} results in empty or invalid base image name (line 5)
Successfully built image: ryzerdocker
To run this docker:
# Run last ryzer docker built:
ryzers run [CMD_OVERRIDE] # will run last ryzer docker built.
# Run this ryzer docker by name:
ryzers run --name ryzerdocker [CMD_OVERRIDE]
To inspect the docker run call, see contents of the script file:
cat ryzers.run.ryzerdocker.sh
(.venc) jasvinder@jasvinder-NucBox-EVO-X2:/scratch/jasvinder/Ryzers$ ryzers run
non-network local connections being added to access control list
Loading OpenVLA model...
/opt/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py:949: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
processor_config.json: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 130/130 [00:00<00:00, 1.31MB/s]
processing_prismatic.py: 12.7kB [00:00, 55.9MB/s]
A new version of the following files was downloaded from https://huggingface.co/openvla/openvla-7b:
- processing_prismatic.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
/opt/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py:949: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
preprocessor_config.json: 1.65kB [00:00, 9.42MB/s]
tokenizer_config.json: 1.19kB [00:00, 9.24MB/s]
tokenizer.model: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 500k/500k [00:02<00:00, 206kB/s]
tokenizer.json: 1.84MB [00:00, 14.3MB/s]
added_tokens.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 21.0/21.0 [00:00<00:00, 188kB/s]
special_tokens_map.json: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 552/552 [00:00<00:00, 5.83MB/s]
config.json: 60.7kB [00:00, 135MB/s]
configuration_prismatic.py: 5.87kB [00:00, 17.6MB/s]
A new version of the following files was downloaded from https://huggingface.co/openvla/openvla-7b:
- configuration_prismatic.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
modeling_prismatic.py: 26.1kB [00:00, 55.3MB/s]
A new version of the following files was downloaded from https://huggingface.co/openvla/openvla-7b:
- modeling_prismatic.py
. Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision.
/opt/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py:949: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
warnings.warn(
model.safetensors.index.json: 94.8kB [00:00, 213MB/s]
model-00001-of-00003.safetensors: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.95G/6.95G [08:30<00:00, 13.6MB/s]
model-00002-of-00003.safetensors: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.97G/6.97G [08:26<00:00, 13.8MB/s]
model-00003-of-00003.safetensors: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.16G/1.16G [01:26<00:00, 13.5MB/s]
Downloading shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [18:24<00:00, 368.21s/it]
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 7.23it/s]
generation_config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 136/136 [00:00<00:00, 1.70MB/s]
/ryzers/test_openvla.sh: line 6: 7 Segmentation fault (core dumped) python test.py
Error executing script ryzers.run.ryzerdocker.sh: None
Traceback (most recent call last):
File "/scratch/jasvinder/Ryzers/.venc/bin/ryzers", line 8, in <module>
sys.exit(main())
^^^^^^
File "/scratch/jasvinder/Ryzers/.venc/lib/python3.12/site-packages/ryzers/entrypoint.py", line 65, in main
run(args.name, args.docker_cmd)
File "/scratch/jasvinder/Ryzers/.venc/lib/python3.12/site-packages/ryzers/entrypoint.py", line 32, in run
runner()
File "/scratch/jasvinder/Ryzers/.venc/lib/python3.12/site-packages/ryzers/runner.py", line 43, in __call__
result = subprocess.run(
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bash', 'ryzers.run.ryzerdocker.sh', '']' returned non-zero exit status 139.
MobileSAM fix has been pushed to main. OpenVLA is fixed by #70, soon to be merged