-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plan #1
Comments
Hi Ankane, |
@joaompereira Right now, the best way is to convert the model to ONNX and use this gem. |
@ankane Thanks, that seems a very good option! Would this work with user defined modules? |
Yeah, it should work with any model, as far as I know |
fwiw, the latest release now supports saving and loadings models. It uses the same format as PyTorch, so models can be saved in one language and read in another 🎉 When saving in Python, use |
Thanks, that sounds great, I'll check it out!
…On Mon, Apr 27, 2020, 3:47 AM Andrew Kane ***@***.***> wrote:
fwiw, the latest release now supports saving and loadings models
<https://github.com/ankane/torch.rb#saving-and-loading-models>. It uses
the same format as PyTorch, so models can be saved in one language and read
in another 🎉 When saving in Python, use
_use_new_zipfile_serialization=True until it becomes the default.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALTPNX5QXO5JYNXCELXZOUTROU2A7ANCNFSM4JRUOCGQ>
.
|
Hi, thanks for very interesting project. I've tried to compile on Windows with RubyInstaller, but failed due to C++ ABI incompatibility. Do you have any information in this area? I'll try to build Ruby by MSVC, first step. |
Hey @shkit, I tried compiling it on AppVeyor (https://ci.appveyor.com/project/ankane/torch-rb), but believe it failed due to the issue you mentioned above. I get the impression RubyInstaller is the most popular way to install Ruby on Windows, so it may make sense to try and compile Libtorch with mingw, so users don't need to change their Ruby. |
Hi @ankane, This is one of the troublesome thing on Windows environment... |
Good catch. Since a separate Ruby is essentially needed, it may be easiest to just run the Docker image. https://github.com/ankane/ml-stack |
Hi, first of all, let me thank you for starting such great work. Ruby, being a great language, nevertheless, is starving for ml/ds gems. I would like to contribute somehow on building ruby torch. I own a bunch of multi-GPU machines (4x, 6x and 14x GPU builds that I use for ML projects), so I may be useful for e.g. testing in such environment or ruby ditstributed data parallel implementation (NCCL, GLOO, MPI). |
Hey @slowpilot, thanks for the interest in helping out. There are some ideas in the first comment or you could start using the library and contributing as things come up. I haven't done any work on distributed processing yet, so am not sure what that looks like. |
Ohayo @ankane, I've A LOT INTEREST in helping you in this project, but I don't have the necessary knowledge, I mean, Im free to contribute to the simple tasks to achive more learnings about complex concepts in programming, so if you need an assistant please contact me 'cause I need someone to instruct me on the path of Ruby. |
Next
num_workers
option to data loadertensor.storage
methodload_state_dict
)Performance
Simplicity
Declarations.yaml
instead ofnative_functions.yaml
Other
Hold
from_numo
method -numo_bridge
branch (need to test Numo views and more)Blocked
numo
method -numo_bridge_to
branch (requiresnary_set_pointer
to be exported from Numo) - Export nary_set_pointer method ruby-numo/numo-narray#170Maybe
positional
branchTorch::NN::F.relu
->Torch.relu
,Torch::NN::Linear
->Torch::Linear
, etcautoload
instead ofrequire
Later
torch.hub
- would need to reimplement models in Ruby (similar to TorchVision)Decided against
==
,>
,>=
,<
,<=
). Unlike Python, this causesTorch.tensor(0) == 1
to return a truthy value, and there's no way to override truthy in Ruby.The text was updated successfully, but these errors were encountered: