Raspberry Arm64 binaries

username: rolyan_trauts
cooked: <p>Hi, I have had a few failures, trials and errors with conda and the compile and just wondered if there are any completed wheels for Pi-OS-64</p>
<p>Its available even if Beta in desktop &amp; lite form <a href="https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/" rel="nofollow noopener">https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/</a></p>
<p>Anyone got any links, tutorials or even an official method as that would be so sweet.</p>
<p>I have failed on debian Arm64 &amp; Ubuntu following some gists I found and the length of time it takes is killing my resolve.</p>
<p>Are there any binaries anywhere or would anyone post me to a recent and known working install for raspios_arm64</p>
<p>Thanks all</p>
<p><img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji only-emoji" alt=":slight_smile:"></p>

username: tom
cooked: <p>Heya, I have a rather old PyTorch build for Debian 64 bit (<a href="http://mathinf.com/pytorch/arm64/" rel="nofollow noopener">http://mathinf.com/pytorch/arm64/</a>), but I’ve ordered a 8GB Raspberry Pi to ease some of the pain of building it and will see to having PiOs-64 builds.</p>

username: rolyan_trauts
cooked: <p>I should actually grab my pi4 (2gb) as why I am trying to build on a Pi3A+ is a mystery to be honest and is the definition of pain <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
<p>There is a lite version now of the 64bit of raspios <a href="https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/" rel="nofollow noopener">https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/</a> even if still a beta its likely to end up a datum distro for Pis.</p>
<p>Debian is fine but guess you will be building 1.6 so might wait.</p>

username: tom
cooked: <p>Well, so for the packages there, I used a 4GB Raspberry. Crucially, I did not set up swap. (For good reason!)<br>
I just ran <code>python3 setup.py bdist_wheel</code> as usual. This builds on 4 cores. When compiling the extremely large autogenerated files (the ones wrapping ATen into autograd and Python), it runs out of memory and gets killed. Then I ran cmake manually for a bit with -j1 (1 process at a time) and when I got bored switched to -j4 again. Maybe with the 8GB I can just run -j2 throughout or something.</p>
<p>I’ll look at building with the Raspberry OS (64 bit Raspbian wasn’t yet available a year ago). Thank you for handing me an excuse to get the 8GB one. <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"> It is scheduled to arrive tomorrow, so we’ll see if I have packages over the weekend.</p>
<p>Best regards</p>
<p>Thomas</p>

username: rolyan_trauts
cooked: <p>I usually install my zram-swap utility but go shy on the compression ratio and then add a backup decent swap drive and get most done in memory.</p>
<aside class="onebox allowlistedgeneric">
  <header class="source">
      <img src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32">
      <a href="https://github.com/StuartIanNaylor/zram-config" target="_blank" rel="nofollow noopener">GitHub</a>
  </header>
  <article class="onebox-body">
    <img src="https://avatars0.githubusercontent.com/u/2593098?s=400&amp;v=4" class="thumbnail onebox-avatar" width="400" height="400">

<h3><a href="https://github.com/StuartIanNaylor/zram-config" target="_blank" rel="nofollow noopener">StuartIanNaylor/zram-config</a></h3>

<p>Complete zram config utility for swap, directory &amp; log. Usefull for IoT / maker projects for reducing SD, Nand and Emmc block wear via log operations. Uses Zram to minimise precious memory foot...</p>


  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>
<br>
<aside class="onebox allowlistedgeneric">
  <header class="source">
      <img src="https://github.githubassets.com/favicons/favicon.svg" class="site-icon" width="32" height="32">
      <a href="https://github.com/StuartIanNaylor/zram-swap-config" target="_blank" rel="nofollow noopener">GitHub</a>
  </header>
  <article class="onebox-body">
    <img src="https://avatars0.githubusercontent.com/u/2593098?s=400&amp;v=4" class="thumbnail onebox-avatar" width="400" height="400">

<h3><a href="https://github.com/StuartIanNaylor/zram-swap-config" target="_blank" rel="nofollow noopener">StuartIanNaylor/zram-swap-config</a></h3>

<p>Replacement for broken zram-config-0.5 package. Contribute to StuartIanNaylor/zram-swap-config development by creating an account on GitHub.</p>


  </article>
  <div class="onebox-metadata">
    
    
  </div>
  <div style="clear: both"></div>
</aside>

<p>They where just a bit of a protest about the big distros actually getting a decent utility available but seem to of been popular.<br>
But its all personal choice and opinion but seen as you got a 8gb I will wait <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"><br>
Did the official lite of RaspiOS 64 tempt you?</p>
<p>It would be amazing if we could get an official wheel for RaspiOS 64 though.</p>

username: tom
cooked: <p>I now have <a href="http://mathinf.com/pytorch/arm64/" rel="nofollow noopener">PyToch 1.6 / TorchVision 0.7 for 64 bit Raspberry OS</a> posted on my page linked above. Compiling PyTorch on the 8GB Raspberry Pi worked out of the box (no swap needed, no memory problems) and took a bit less than 4 hours (the <code>.git</code> checkout and the <code>whl</code> have timestamps exactly 4 hours apart, but I did the installation of requirements in between, too).<br>
I hope you enjoy it.</p>
<p>Best regards</p>
<p>Thomas</p>

username: rolyan_trauts
cooked: <p>Cheers Tom.</p>
<p>Many thanks.</p>

username: Romeo_Ceccato
cooked: <p>Sorry for the intrusion, I wanted to ask if anyone tried to install torchaudio on pi4 with ubuntu 20.10 because I didn’t succeed …</p>

username: tom
cooked: <p>I built and used TorchAudio on Raspberry Pi OS (wheels are linked from the page linked above in the January 2021 update).<br>
The main caveat is that it uses Python 3.7. If you need a newer Python version, you’d need to recompile, but the instructions should be broadly the same.</p>

username: Romeo_Ceccato
cooked: <p>thank you very much, I will try to install by re-filling the latest version.</p>