Comments (2)
@Murphy-OrangeMud , did you manage to resolve this issue? I'm having a similar issue at the moment.
EDIT: I found the issue: I was pulling a very old version of torch
because my OCaml version was old.
from ocaml-torch.
There are a few issues with installing this on an M1 Mac but here are the steps:
- Download
libtorch
binaries (or buildlibtorch
in your Mac). At the moment there are no official pre-build binaries. I downloaded my (unofficial) binaries from https://github.com/mlverse/libtorch-mac-m1/releases . - Double check what libtorch version is compatible with the current version of
torch
. Version 1.13.1 is the one you want with v0.16.0 version of torch. - Set the
LIBTORCH
environment variable to the directory that includes the include and lib directories. - Use the latest JaneStreet fork of this. Have a look at https://opam.ocaml.org/packages/torch/ for the current version.
-
- This may require a newer OCaml version so check for that.
-
- To install with
opam
:
- To install with
opam install torch.v0.16.0 --ignore-constraints-on libtorch
Note that I had to ignore-constraints
to avoid failing because libtorch
is disabled for M1 Mac. Note also that I explicitly had to set the version of the package (JaneStreet version starts with v0
rather than 0
) as I otherwise resolve to version 0.10 which is way too old.
from ocaml-torch.
Related Issues (20)
- Is it possible to download pretrained model weights from the python version of pytorch and use it in ocaml-torch? HOT 2
- Mnist example - crashes at runtime HOT 2
- Torch installation not working with ubuntu HOT 2
- Getting Issue with mnist tutorials HOT 5
- Is there anthing equivalent to load and save model in ocaml torch HOT 4
- Support for CUDA 11 HOT 3
- Mini-Dalle Example HOT 2
- How to load a npz file to a tensor? HOT 1
- diffusers-ocaml HOT 3
- Custom training HOT 1
- Setting slices of a tensor: what is the equivalent of (python) x[i,:,:] = y HOT 7
- debugging out-of-memory exception HOT 12
- installing gpu accelerated version on macos
- most exceptions from libtorch not caught (macos) HOT 24
- installing on macos in presence of other pytorch instances HOT 11
- .pt file to .ot file - Anyway to skip the conversion HOT 12
- How to extend Tensor.t with additional functions? HOT 3
- Issues with install on MacOS, with ARM architecture
- undefined symbol: ffi_type_void, version LIBFFI_BASE_7.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocaml-torch.