PyTorch installs proprietary binaries by default

master
ml server 2020-02-07 12:43:52 -07:00
parent 6ea9bce41c
commit 8d237bd2ba
1 changed files with 63 additions and 5 deletions

View File

@ -1,5 +1,8 @@
# Install Anaconda
Install the Anaconda package manager for Python.
# Anaconda
Anaconda is a package manager for Python.
## Install Anaconda
Install the Anaconda.
* https://www.anaconda.com/rpm-and-debian-repositories-for-miniconda/
@ -10,15 +13,70 @@ install -o root -g root -m 644 conda.gpg /etc/apt/trusted.gpg.d/
```
## Add Anaconda Debian Repository
echo "deb [arch=amd64] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list
Add repo:
```
echo "deb [arch=amd64] https://repo.anaconda.com/pkgs/misc/debrepo/conda stable main" > /etc/apt/sources.list.d/conda.list
```
Install:
```
apt update
apt install conda
```
## Anaconda Configuration
Add this to `~/.bashrc`
```
source /opt/conda/etc/profile.d/conda.sh
```
## Anaconda Usage
source /opt/conda/etc/profile.d/conda.sh
Test:
```
conda -V
```
# PyTorch
PyTorch is an alternative to TensorFlow.
## PyTorch Installation
Install PyTorch thusly:
```
conda install pytorch torchvision cpuonly -c pytorch
```
# PyTorch Proprietary by Default ?
The PyTorch command for installation by default installs packages including:
```
mkl-2020.0 | 166 128.9 MB
mkl-service-2.3.0 | py37he904b0f_0 218 KB
mkl_fft-1.0.15 | py37ha843d7b_0 154 KB
mkl_random-1.1.0 | py37hd6b4f25_0 321 KB
```
It appears that is part of Intel's non-free MKL.
In fact, MKL is the largest package by far in PyTorch, larger
than PyTorch itself.
Intel's MKL license:
* https://software.intel.com/en-us/license/intel-simplified-software-license
"No reverse engineering, decompilation, or disassembly of this Software is permitted."
# Install PyTorch
So this wasn't installed...
```
Proceed ([y]/n)? ^C
CondaSystemExit:
Operation aborted. Exiting.
```