Commit graph

548 commits

Author SHA1 Message Date
Ricardo Wurmus
dc9388e01c
gnu: r-rcppml/devel: Add missing input.
* gnu/packages/machine-learning.scm (r-rcppml/devel)[native-inputs]: Add
r-testthat.

Change-Id: I6a5c29c82d2417d53684dbb278ce4b1703988ffa
2024-12-03 16:59:36 +01:00
Ricardo Wurmus
1f047996b8
gnu: python-hmmlearn: Update to 0.3.3.
* gnu/packages/machine-learning.scm (python-hmmlearn): Update to 0.3.3.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase; add phases 'set-core-count and
'build-extensions.
[propagated-inputs]: Remove pybind11 and python-setuptools-scm.
[native-inputs]: Add pybind11, python-setuptools-scm, and util-linux.
[properties]: Add hints for the updater.

Change-Id: I1acb69c74ae9c4a508fe28cdaf834d258e7778ff
2024-12-02 10:28:59 +01:00
Danny Milosavljevic
71ac093d13
gnu: llama-cpp: Update to b4137.
* gnu/packages/machine-learning.scm (llama-cpp): Update to b4137.

Change-Id: I530dadd4a228a6384b66093a6f7fedaf1fe4b4e8
2024-11-19 20:53:52 +01:00
Danny Milosavljevic
fe33375b25
gnu: llama-cpp: Fix build flags.
* gnu/packages/machine-learning.scm (llama-cpp)[arguments]<#:configure-flags>:
Use new names from the package update.

Change-Id: I14095b5a594efbcfc7abfdd50fd2930fa7878394
2024-11-19 20:40:48 +01:00
Danny Milosavljevic
7a89bbffd0
gnu: llama-cpp: Update to b3907.
* gnu/packages/machine-learning.scm (llama-cpp): Update to b3907.
[arguments]<#:phases>[install-python-scripts]: Update script names.
[remove-tests]: New phase.

Change-Id: I0a3444f10679279b4517f2a002fead4cd5f45498
2024-10-12 15:35:24 +02:00
David Elsing
571c605f17
gnu: python-pytorch-lightning: Update to commit 2064887.
* gnu/packages/machine-learning.scm (python-pytorch-lightning): Update to
commit 2064887.
[source]: Update URL.
[arguments]<#:tests-flags>: Skip additional failing tests.
<#:phases>: Adjust 'patch-version-detection' phase.
2024-09-06 11:46:26 +02:00
David Elsing
77f59d1458
gnu: python-torchmetrics: Update to 1.4.1.
* gnu/packages/machine-learning.scm (python-torchmetrics): Update to 1.4.1.
[source]: Switch to GitHub repository.
[arguments]: New field.
[propagated-inputs]: Add python-lightning-utilities.
[home-page]: Update URL.
2024-09-06 11:46:26 +02:00
David Elsing
e4b99a7918
gnu: python-lightning-utilities: Update to 0.11.6.
* gnu/packages/machine-learning.scm (python-lightning-utilities): Update to
0.11.6.
[source] Adjust URI.
[build-system]: Move to pyproject-build-system.
2024-09-06 11:46:25 +02:00
David Elsing
a9e4ce6a58
gnu: python-torchvision: Update to 0.19.0.
* gnu/packages/machine-learning.scm (python-torchvision): Update to 0.19.0.
[arguments]: Add 'setenv' phase for finding libjpeg-turbo.
[inputs]: Add ffmpeg.
2024-09-06 11:46:25 +02:00
David Elsing
b44b2e346c
gnu: python-pytorch: Update to 2.4.0.
This also updates the qnnpack-pytorch package.

* gnu/packages/machine-learning.scm (%python-pytorch-version): Set to 2.4.0.
(%python-pytorch-src): Adjust hash accordingly.
[source]: Remove obsolete file deletions in snippet.
(python-pytorch)[arguments]<#:phases>: Disable telemetry and set Python
install directory.  Remove obsolete USE_FFMPEG, USE_OPENCV and
USE_PYTORCH_QNNPACK environment variables.
[native-inputs]: Remove python-typing-extensions.
[inputs]: Add brotli, cpp-httplib and zlib.  Remove qnnpack.  Use oneapi-dnnl,
qnnpack-pytorch and xnnpack for all systems.
[propagated-inputs]: Add onnx and python-typing-extensions.  Use cpuinfo for
all systems.
[supported-systems]: New field.
(python-pytorch-for-r-torch)[inputs]: Add qnnpack.
* gnu/packages/patches/python-pytorch-fix-codegen.patch: Adjust patch.
* gnu/packages/patches/python-pytorch-runpath.patch: Adjust patch.
* gnu/packages/patches/python-pytorch-system-libraries.patch: Adjust patch.
* gnu/packages/patches/python-pytorch-without-kineto.patch: Adjust patch.
2024-09-06 11:46:25 +02:00
David Elsing
21bacce230
gnu: gloo: Update to commit 81925d1.
* gnu/packages/machine-learning.scm (gloo): Update to commit 81925d1.
[arguments]: Add -DCMAKE_CXX_STANDARD=17 to #:configure-flags.
[supported-systems]: New field.
2024-09-06 11:46:25 +02:00
David Elsing
73302e3cae
gnu: onnx-optimizer: Update to 0.3.19.
* gnu/packages/machine-learning.scm (onnx-optimizer): Update to 0.3.19.
* gnu/packages/patches/onnx-optimizer-system-library.patch: Adjust patch.

Co-authored-by: Andy Tai <atai@atai.org>
2024-09-06 11:46:25 +02:00
David Elsing
595cc594b6
gnu: onnx: Update to 1.16.2.
* gnu/packages/machine-learning.scm (onnx): Update to 1.16.2.
[source]: Remove patch.
[build-system]: Move to pyproject-build-system.
[arguments]<#:tests?>: Disable for systems where python-nbval is not
supported.
<#:phases>: Remove 'relax-requirements' phase.  Pass "-DONNX_BUILD_TESTS" to
CMake depending on tests?.
[native-inputs]: Add python-fb-re2 and python-parameterized-next.  Remove
python-nbval on unsupported systems.
* gnu/packages/patches/onnx-shared-libraries.patch: Adjust patch.
* gnu/packages/patches/onnx-skip-model-downloads.patch: Adjust patch.
* gnu/packages/patches/onnx-use-system-googletest.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.

Co-authored-by: Andy Tai <atai@atai.org>
2024-09-06 11:46:25 +02:00
David Elsing
852c75a125
gnu: Remove onnx-for-torch2.
* gnu/packages/machine-learning.scm (onnx-for-torch2): Delete variable.
2024-09-06 11:46:25 +02:00
David Elsing
95cec3af47
gnu: Remove onnx-optimizer-for-torch2.
* gnu/packages/machine-learning.scm (onnx-optimizer-for-torch2): Delete variable.
2024-09-06 11:46:24 +02:00
David Elsing
e85b3fc595
gnu: Add xnnpack-for-r-torch.
* gnu/packages/machine-learning.scm (xnnpack-for-r-torch): New variable.
(xnnpack)[inputs]: Use xnnpack-for-r-torch instead of xnnpack.
2024-09-06 11:46:24 +02:00
David Elsing
f1d0626605
gnu: xnnpack: Update to commit 08f1489.
More tests fail when building the shared library, so they are disabled.  The
scripts to generate the autogenerated files run all commands at once, so they
are converted to Makefiles first.

* gnu/packages/machine-learning.scm (xnnpack): Update to commit 08f1489.
[source]: Remove patch.  Adjust snippet.
[arguments]<#:configure-flags>: Add "-DXNNPACK_BUILD_TESTS=OFF".
<#:tests?>: Disable tests.
<#:phases>: Adjust 'fix-cmake' phase.  Convert code generation scripts to
Makefiles and run them.  Run different missing scripts.
* gnu/packages/patches/xnnpack-remove-broken-tests.patch: Remove file.
* gnu/packages/patches/xnnpack-system-libraries.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove them.
2024-09-06 11:46:24 +02:00
David Elsing
e943d9ad53
gnu: fbgemm: Update to 0.7.0.
* gnu/packages/machine-learning.scm (fbgemm): Update to 0.7.0.
2024-09-06 11:46:24 +02:00
David Elsing
d433001154
gnu: oneapi-dnnl: Update to 3.5.3.
* gnu/packages/machine-learning.scm (oneapi-dnnl): Update to 3.5.3.
2024-09-06 11:46:24 +02:00
David Elsing
cf468ebd38
gnu: nnpack: Depend on python-peachpy only for x86_64.
* gnu/packages/machine-learning.scm (nnpack)[native-inputs]: Provide
python-peachpy only when 'target-x86-64?'.
2024-09-06 11:46:23 +02:00
David Elsing
459062ba3c
gnu: Remove python-typing-extensions-4.10.
* gnu/packages/machine-learning.scm (python-typing-extensions-4.10): Delete
variable.
* gnu/packages/machine-learning.scm (python-pytorch)[native-inputs] Replace
python-typing-extensions-4.10 with python-typing-extensions.
2024-09-06 11:46:23 +02:00
Andy Tai
52681a036a
gnu: tensorflow-lite: Fix build.
* gnu/packages/machine-learning.scm (tensorflow-lite): Fix build.
[inputs]: Change flatbuffers-next to flatbuffers-23.1.

* gnu/packages/serialization.scm (flatbuffers-23.1): New variable.

Change-Id: I257c3563cb91cbf8e0f0874367aafced248ab4dc
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-09-03 13:59:33 +02:00
Vinicius Monego
48bcf78c04
gnu: python-deepxde: Update to 1.12.1.
* gnu/packages/machine-learning.scm (python-deepxde): Update to 1.12.1.

Change-Id: I7996c7686e1b6f97a4b54efc6153fe5adebd0b4b
2024-09-02 17:42:34 -03:00
Maxim Cournoyer
c0f10e91f0
gnu: ghmm: Import the correct set of modules.
* gnu/packages/machine-learning.scm (ghmm) [arguments]
<modules>: Replace %default-gnu-imported-modules with %default-gnu-modules.

Change-Id: I317b9eb60afd63eeb4643556e94cb26a1162abb4
2024-08-31 10:42:22 +02:00
Maxim Cournoyer
f59df1aa3c
build-systems: gnu: Export %default-gnu-imported-modules and %default-gnu-modules.
Until now users would have to cargo cult or inspect the private
%default-modules variable of (guix build-systems gnu) to discover which
modules to include when extending the used modules via the #:modules argument.

The renaming was automated via the command:

  $ git grep -l %gnu-build-system-modules
    | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i

* guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to...
(%default-gnu-imported-modules): ... this.
(%default-modules): Rename to...
(%default-gnu-modules): ... this.  Export.
(dist-package, gnu-build, gnu-cross-build): Adjust accordingly.

Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee
2024-08-31 10:42:16 +02:00
Vinicius Monego
ed882ad668
gnu: python-pyro-ppl: Simplify inputs.
* gnu/packages/machine-learning.scm (python-pyro-ppl)[native-inputs]: Remove
ninja, jupyter, python-black, python-flake8, python-graphviz, python-isort,
python-lap, python-matplotlib, python-mypy, python-nbformat, python-nbsphinx,
python-nbstripout, python-nbval, python-pandas, python-pillow,
python-pypandoc, python-pytest, python-pytest-cov, python-pytest-xdist,
python-scikit-learn, python-scipy, python-seaborn, python-sphinx,
python-sphinx-rtd-theme, python-torchvision, python-visdom, python-wget,
python-yapf.

Change-Id: Id7a413fdbdd8a808dffb4804c8a7f04bf2c31bbc
2024-07-28 10:59:48 -03:00
Vinicius Monego
22e8880ae2
gnu: python-pyro-ppl: Update to 1.9.1.
* gnu/packages/machine-learning.scm (python-pyro-ppl): Update to 1.9.1.
[arguments]: Remove #:test-flags and skip all tests in #:tests?.

Change-Id: If90024d904bb830df2868423a5947ecaf45b46fc
2024-07-28 10:59:04 -03:00
Vinicius Monego
2b40c6985a
gnu: python-botorch: Update to 0.11.3.
* gnu/packages/machine-learning.scm (python-botorch): Update to 0.11.3.
[arguments]<#:test-flags>: Skip a failing test.
<#:phases>: Delete the 'lo-version phase.

Change-Id: I110631da8c5e442eaf00daa1b42caff29d61b36b
2024-07-28 10:49:17 -03:00
jgart
6617da6f30
gnu: python-keras: Update home page url.
* gnu/packages/machine-learning.scm (python-keras) [home-page]: Update home
page.

Change-Id: I7e4bd1dc64dbbd042de5dc50036ae12ca7c76fc3
2024-07-19 16:40:54 -05:00
Ricardo Wurmus
5e48571f8c
gnu: liblantern: Update to 0.13.0.
* gnu/packages/machine-learning.scm (liblantern): Update to 0.13.0.

Change-Id: I7725adf59e4506b2b5b301ca2f57c4f07e16f594
2024-07-17 22:38:23 +02:00
Efraim Flashner
8504aa6f46
gnu: xnnpack: Fix supported systems.
* gnu/packages/machine-learning.scm (xnnpack)[supported-systems]: Fix
typo in armhf-linux.  Remove i686-mingw, x86_64-mingw.

Change-Id: I2a7fe127af9825d71da7e3769d224a20db12d839
2024-07-11 17:03:20 +03:00
Efraim Flashner
b7201c7c37
gnu: qnnpack: Fix supported systems.
* gnu/packages/machine-learning.scm (qnnpack)[supported-systems]: Fix
typo in armhf-linux.

Change-Id: I97e0b59af6e6dc63a40c2df69b920f532fb91d65
2024-07-11 17:03:03 +03:00
Andy Tai
85f1bfac0b
gnu: llama-cpp: Update commit and configure flags for shared library build.
* gnu/packages/machine-learning.scm (lama-cpp): Update to commit a5735e with
  pkg-config support.
  [arguments](configure-flags): Add cmake configure flag
  for shared library build and adjust arguments to make openblas
  found by cmake.
  (phases) 'install-python-scripts: Remove references to deleted scripts
  and add new ones upsteeam.

Change-Id: I7c4bc219a22aa9a949e811b340c7cf745b176d14
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-07-10 15:49:35 +02:00
Vinicius Monego
95dd0ed736
gnu: python-cma: Update to 3.4.0.
* gnu/packages/machine-learning.scm (python-cma): Update to 3.4.0.

Change-Id: Ida92761e12069a2e91e0e276c3b873c03bcfefdd
2024-07-05 23:05:53 -03:00
Vinicius Monego
f336eb30b1
gnu: python-gpytorch: Update to 1.12.
* gnu/packages/machine-learning.scm (python-gpytorch): Update to 1.12.
[arguments]: Enable previously failing test.
[propagated-inputs]: Add python-mpmath, python-scipy.

Change-Id: I50b9787b2abee2438adaf486d842f4af0d32d162
2024-07-05 23:05:39 -03:00
Vinicius Monego
11db11f193
gnu: python-deepxde: Update to 1.11.1.
* gnu/packages/machine-learning.scm (python-deepxde): Update to 1.11.1.
[source]: Update URI.

Change-Id: I63c34558a9b55f9267652b88bf88f55614cc631f
2024-07-05 23:04:15 -03:00
David Elsing
2aeb37def2
gnu: python-pytorch-for-r-torch: Adjust to new python-pytorch.
* gnu/packages/machine-learning.scm (%python-pytorch-for-r-torch-src): Add
patches.
(python-pytorch-for-r-torch)[version]: Use
%python-pytorch-for-r-torch-version.
[source]: Use %python-pytorch-for-r-torch-src.
[native-inputs]: Use 'modify-inputs'.
[inputs]: Don't replace xnnpack. Replace qnnpack-pytorch with
qnnpack-pytorch-for-r-torch and oneapi-dnnl with oneapi-dnnl-for-r-torch.
[propagated-inputs]: Don't replace onnx and onnx-optimizer.
* gnu/packages/patches/python-pytorch-for-r-torch-fix-codegen: New file.
* gnu/packages/patches/python-pytorch-for-r-torch-system-libraries.patch: New file.
* gnu/packages/patches/python-pytorch2-system-libraries.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Register them.
2024-06-18 11:45:51 +02:00
David Elsing
085551a40f
gnu: Add qnnpack-pytorch-for-r-torch.
* gnu/packages/machine-learning.scm (%python-pytorch-for-r-torch-version): New
variable.
(%python-pytorch-for-r-torch-src): New variable.
(qnnpack-pytorch-for-r-torch): New variable.
2024-06-18 11:45:46 +02:00
David Elsing
e587d8fb69
gnu: Add oneapi-dnnl-for-r-torch.
* gnu/packages/machine-learning.scm (oneapi-dnnl-for-r-torch): New variable.
2024-06-18 11:45:39 +02:00
David Elsing
b38045190a
gnu: Add ideep-pytorch-for-r-torch.
* gnu/packages/machine-learning.scm (ideep-pytorch-for-r-torch): New variable.
2024-06-18 11:45:35 +02:00
David Elsing
4f50f86e41
gnu: python-torchvision: Update to 0.17.1.
* gnu/packages/machine-learning.scm (python-torchvision): Update to 0.17.1.
[source]: Add snippet to remove "android" and "ios" directories.
2024-06-18 11:45:15 +02:00
David Elsing
d218d024ed
gnu: Add python-pytorch-avx.
* gnu/packages/machine-learning.scm (python-pytorch-avx): New variable.
2024-06-18 11:45:07 +02:00
David Elsing
7b62d614e7
gnu: python-pytorch: Update to 2.2.1 and unbundle dependencies.
Autogenerated files are also regenerated. The tests can be run, but are
disabled, as they require a long time.

* gnu/packages/machine-learning.scm (python-pytorch): Update to 2.2.1.
[version]: Use %python-pytorch-version.
[source]: Use %python-pytorch-src.
[arguments]: Remove 'make-things-writable phase.  Add 'cmake-patches,
'disable-avx-dependencies, 'set-max-jobs, 'codegen1, 'codegen2, 'build2,
'install2 phases. Adjust 'use-system-libraries and 'check phases.
[native-inputs]: Add doxygen, ideep-pytorch, pocketfft-cpp, python-expecttest,
python-pytest-flakefinder, python-pytest-rerunfailures-13,
python-pytest-shard, python-pytest-xdist, python-hypothesis,
python-types-dataclasses, python-typing-extensions-4.10 and valgrind.
[inputs]: Add asmjit, clog, flatbuffers-next, foxi, fxdiv, libuv,
miniz-for-pytorch, qnnpack, qnnpack-pytorch and oneapi-dnnl. Use nnpack,
oneapi-dnnl, qnnpack, qnnpack-pytorch and xnnpack only for supported systems.
[propagated-inputs]: Add python-filelock, python-fsspec, python-jinja2,
python-networkx, python-opt-einsum, python-optree, python-packaging,
python-psutil and python-sympy. Remove python-cffi and python-six. Use cpuinfo
only for supported systems.
(%python-pytorch-src)[source]: Add patches.
(python-pytorch2): Remove variable.
* gnu/packages/patches/python-pytorch-runpath.patch: Adjust patch.
* gnu/packages/patches/python-pytorch-system-libraries.patch: Adjust patch.
* gnu/packages/patches/python-pytorch-1.9.0-system-libraries.patch: Remove file.
* gnu/packages/patches/python-pytorch-fix-codegen.patch: New file.
* gnu/packages/patches/python-pytorch-without-kineto: New file.
* gnu/local.mk (dist_patch_DATA): Register them.
2024-06-18 11:44:56 +02:00
David Elsing
b77c772a3e
gnu: Add qnnpack-pytorch.
This is an internal fork of QNNPACK in the PyTorch source tree.

* gnu/packages/machine-learning.scm (%python-pytorch-version): New variable.
(%python-pytorch-src): New variable.
(qnnpack-pytorch): New variable.
2024-06-18 11:44:48 +02:00
David Elsing
0c313244e0
gnu: Remove xnnpack-for-torch2.
* gnu/packages/machine-learning.scm (xnnpack-for-torch2): Delete variable.
(python-pytorch-for-r-torch)[inputs]: Remove field.
* gnu/packages/patches/xnnpack-for-torch2-system-libraries.patch: Remove file.
* gnu/local.mk (dist_patch_DATA): Remove it.
2024-06-18 11:44:40 +02:00
David Elsing
048e5a0692
gnu: xnnpack: Update to commit 51a9875.
The tests which fail to build if building the shared library are removed by a
patch. Autogenerated files are removed by a snippet and generated in a
separate build phase.

* gnu/packages/machine-learning.scm (xnnpack): Update to commit 51a9875.
[source]: Add patch for tests. Add snippet to remove autogenerated files.
[arguments]: New modules and phase arguments.
[inputs]: Add clog and cpuinfo.
[native-inputs]: New field.
* gnu/packages/patches/xnnpack-remove-broken-tests.patch: Add file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/patches/xnnpack-system-libraries.patch: Update patch.
2024-06-18 11:44:31 +02:00
David Elsing
b032109b5c
gnu: Add ideep-pytorch.
* gnu/packages/machine-learning.scm (ideep-pytorch): New variable.
2024-06-18 11:44:25 +02:00
David Elsing
3ef0b4e402
gnu: Add foxi.
* gnu/packages/machine-learning.scm (foxi): New variable.
* gnu/packages/patches/foxi-fix-build.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
2024-06-18 11:44:17 +02:00
David Elsing
35f4f33138
gnu: Add qnnpack.
* gnu/packages/machine-learning.scm (qnnpack): New variable.
2024-06-18 11:44:09 +02:00
David Elsing
ca63ef4f5b
gnu: Add fbgemm.
* gnu/packages/machine-learning.scm (fbgemm): New variable.
* gnu/packages/patches/fbgemm-use-system-libraries.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
2024-06-18 11:43:46 +02:00