r/pytorch • • Nov 17 '23

I know nothing about AI. How do I build one using PyTorch?

2 Upvotes

I want to build a poker playing AI to play against and I have 2 years to do it. But I have no idea how to get started using PyTorch. What should I do?


r/pytorch • • Nov 17 '23

I spent 20 hours at least trying to get torch to see my 3070TI, then payed google for cloud compute. YeY!

12 Upvotes

Glad I payed 1700€ for my pc to learn AI !!!

I don't understand why torch and cuda and co are just dumb when it comes to gpu support.

There are hundreds of tutorials on how to set up cuda on conda and nothing worked on my PC. Honestly, I have dev friends who just laugh at me when I say I am python main. But now I get it. I guess it's time to learn a real programming language!

First figure put your cuda capabilities, then uninstall torch and then instal cudatlkt then reinstall torch with the right parameters, which freezes and solves for ever in conda, then you have a 70GB environment file that does even work. There are thousands of versions, all of them have conflicts, throw errors, and just make life hell for new devs.

What is this ? Why isn't there a unified way or package to install? And don't tell me about the torch main installer on the webpage cuz it does not work, not even close.

My disappointment is immeasurable and my day is ruined. Hell, my week is ruined 😭


r/pytorch • • Apr 06 '21

Latest Innovations with Grid.ai and PyTorch Lightning

0 Upvotes

Join us on April 13th at 11 am ET to hear about Grid.ai and PyTorch Lightning's latest innovations with our CEO and Founder William Falcon and Thomas Chaton, Research Engineering Manager. This discussion is excellent for AI researchers, machine learning engineers, and data scientists looking for new ways to accelerate and improve their current AI model training process. Leave with tangible strategies, new tools, and great ideas.

Register now and submit any questions you have for William and Thomas!

https://zoom.us/webinar/register/1016176774118/WN_yW66h71HSz-MXWNGAu6OOg


r/pytorch • • Jun 04 '21

Why Pytorch chose C++ backend instead of Rust?

0 Upvotes

r/pytorch • • Jan 27 '24

need to install version 0.3.0 of pytorch , how to do that ?

0 Upvotes

just asked that twice before and i got ignored and only feedback is downvote ,

as tittle said how do i install pytorch 0.3.0 , using conda it required cuda 8 that doesn't exist , what is the way to install pytorch 0.3.0 and why my posts got zero answers and only getting downvote ?

if someone make me understand WHY .


r/pytorch • • Jan 24 '21

How to easily deploy any PyTorch model to the web?!

0 Upvotes

https://medium.com/towards-artificial-intelligence/deploy-deep-learning-models-using-streamlit-and-heroku-22f6efae9141

Deploying Deep Learning models with an interactive UI isn't easy. In this hands-on tutorial blog, a NLP model with a very minimal frontend is deployed using Streamlit. The last part of the blog includes steps to deploy the frontend and the backend to the internet using Heroku. A live version is available @ https://classifyquestions.herokuapp.com.

Have a nice read. If you have any feedback or question comment down below.


r/pytorch • • Oct 19 '24

Installed Python 3.13.0 now I cannot install Pytorch?

1 Upvotes

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)

ERROR: No matching distribution found for torch

I checked someone elses post of 2020 somewhere else and they said that will happen when your python version is too new.

There needs to be a real-time way for you guys to auto-update the compatibility for the latest version with even just a webhook.

edit: seems like 3.11 is the latest supported version?
edit2: the importance of using venv is shown to be important


r/pytorch • • Apr 06 '21

Latest Innovations with Grid.ai and PyTorch Lightning

0 Upvotes

Join us on April 13th at 11 am ET to hear about Grid.ai and PyTorch Lightning's latest innovations with our CEO and Founder William Falcon and Thomas Chaton, Research Engineering Manager. This discussion is excellent for AI researchers, machine learning engineers, and data scientists looking for new ways to accelerate and improve their current AI model training process. Leave with tangible strategies, new tools, and great ideas.

Register now and submit any questions you have for William and Thomas!

https://zoom.us/webinar/register/1016176774118/WN_yW66h71HSz-MXWNGAu6OOg


r/pytorch • • Jul 09 '21

MaskRCNN postprocessing doesn't seem to fit code in git

0 Upvotes

Hey folks,

I'm currently trying to "hack" a MaskRCNN so that I get the full label distributions into the output.

I was looking into the "postprocessing_detections" function defined in roi_heads - however, when I tried to replace it with my own and slightly altered version by copying it from the git and adding minor changes, it turns out that the function seems to work different than what I find on the git.

Most importantly, it doesn't get 4 inputs - as the code in the git needs - but only 3, which seem to be head outputs, anchors and image shapes. I've found two other definitions of a function with the same name in completely different contexts (RetinaNet and SSD) which take 3 inputs; But it makes 0 sense why they'd play any role here, and also they'd want the arguments to be different types than what I get (those functions want dict, list list; MaskRCNN internally I get inputs torch.Tensor, list, list).

Does anyone have an idea how and why the methods seem to differ from what I find in the git? I literally can't find a code version that seems to fit what the MaskRCNN actuall does internally.

If it's important, here's the scheme of how I get to the model (and the error):

import torchvision
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True)

def postprocess_detections_new(self,
                               class_logits,    # type: Tensor
                               box_regression,  # type: Tensor
                               proposals,       # type: List[Tensor]
                               image_shapes     # type: List[Tuple[int, int]]
                               ):
    --- code 1:1 copypasted from the postprocess_detections function in git ---


model.roi_heads.postprocess_detections = postprocess_detections_new

output = model(example_input)

Where example_input is some random example image I put in that works perfectly well with the unaltered model. Doing only the insertion of the copypasted code, the model already doesn't work anymore due to mismatching number of expected/given arguments.

Thanks a lot in advance, would really appreciate if somebody could point me somewhere!


r/pytorch • • Apr 13 '20

t-SNE for Feature Visualization

Post image
0 Upvotes

r/pytorch • • Jan 30 '25

when I do some coding, the coding reported an error. I search some solution on the internet, but it doesn't' work. The error is : from basicsr.models.archs.arch_util import LayerNorm, Mlp ModuleNotFoundError: No module named 'basicsr.models.archs'

Post image
0 Upvotes

r/pytorch • • Sep 21 '20

Pytorch support for Julia

0 Upvotes

I am curious if Pytorch would support for Julia as like C++.

As all other, I also personally found c++ as jibrish, instead Julia which is as fast as c and as pythonic as python.

I would like to see if it happens in future.


r/pytorch • • May 26 '23

How to convert tensor of size 256x6 to 6x256?

0 Upvotes

r/pytorch • • Feb 21 '26

do i need to understand ML to start learning PyTorch

0 Upvotes

I am network ,cloud and security engineer with CCIE,CISSP,AWS,Azure,VMware,Aviatrix.Basically infra.I want to set a target to get into AI and learn something useful.Not sure if this is right group.But if i want to jump on to Pytorch do i need to understand the basics of ML?


r/pytorch • • May 11 '20

Python 3.9 - The Shape of Things to Come

Thumbnail
rubikscode.net
1 Upvotes

r/pytorch • • Sep 22 '21

Host and serve your PyTorch, TensorFlow, and Scikit-learn models quickly and easily

1 Upvotes

Hi Everyone,

FlashAI.io was born out of a need to find a quick and simple way to host or serve my ML models.

Sometimes you want to enable clients, colleagues, or apps to send inference requests to your models.

FlashAI lets you do this via web requests.

Serve your models with any hassle, try FlashAI.io

The workflow is straight forward:

* Train your model locally

* Upload your model file to FlashAI.io

* Send inference requests to your model

Currently this service supports Scikit-learn, TensorFlow, and PyTorch models.

Try it out at flashai.io

See the tutorial at: https://youtu.be/0yxUmZ2GnX8

Please let me know what you think and if you have any suggestions for other features.


r/pytorch • • Apr 03 '23

[Urgent] How to feed two different datasets with different sizes to a model

0 Upvotes

Hi, I have been trying to train a ANN model with two different datasets with different sizes using pytorch. The sizes are the followings: dataset_A = (506, 5), dataset_B = (214, 11)

The training dataset will include all of dataset_A and 50 % of dataset_B and as a dataframe.

Does anyone know how to make such a dataloader with the different numbers of columns?

Also, it would be helpful if the example code is attached.

Thank you!


r/pytorch • • Jul 24 '20

The Battle Between Google & Facebook That Nobody Is Talking About

0 Upvotes

r/pytorch • • Oct 25 '20

Pytorch hackathon went against its own rules, who should I contact?

0 Upvotes

For your reference, this is the link to the hackathon.

According to the rules, there are honorable mention prizes for those who are scoring 3rd to 8th. Although it is not a big deal to most, I find that people should be correctly awarded the right prize given the circumstance.

Edit: As you can clearly see, there are no honorable mention prizes given to participants

Thus I asked twice, once in the official slack channel where I got straight up ignored, and on the official devpost q/a section, where the manager was irresponsive.

This is a literal shot in the dark but what should I do to solve this?? To whom do I even contact at this point?


r/pytorch • • Jan 13 '23

Do a Ps5 or a Xbox X works for ML or Deep Learning?

4 Upvotes

im learning ML and DL and I'm having difficulty running PyTorch in my M1 Pro, there is some workarounds and configs, but I really want another solution that I can share in colab and works out of the box for other people.

I'm thinking in buying either an XBOX X or a PS5 to connect it to my home network, run Jupyter there, and connect colab to it. Will this work, or do I need a pc with a cuda card necessarily?


r/pytorch • • Mar 26 '26

PyTorch Funding

0 Upvotes

I was fortunate to get a scholarship to attend the PyTorch Conference for 2026; however I don't have the funds to travel to PyTorch. I'm wondering if anyone would know of any opportunities to fly there, if there are any other outstanding grants, scholarships, and so on to be able to attend this year? It'd be really helpful to my career to attend.


r/pytorch • • Jan 24 '26

guys I wanna start learning py and I'm confused about where to start

0 Upvotes

r/pytorch • • Apr 28 '26

From PyTorch Blog - How Meta Saves Millions: The Secret to 90% GPU Effic...

Thumbnail
youtube.com
0 Upvotes

Stop burning your AI budget on idle GPUs. In this video, we dive deep into the engineering strategies Meta uses to maximize Effective Training Time (ETT) and reach the elusive 90% efficiency milestone in massive AI clusters.Whether you are managing a small research cluster or scaling enterprise-grade foundation models, understanding how to quantify and eliminate system delays is the difference between a successful deployment and a cratered ROI. We break down the technical bottlenecks—from trainer initialization to slow checkpointing—and provide actionable optimizations to reclaim your compute power.[What You’ll Learn]What is ETT? Why $ETT\%$ is the only metric that matters for large-scale training.The Hidden Costs: Identifying where compute "leaks" during the training lifecycle.Quantifying Delays: How to measure system overhead and trainer stalls accurately.The 90% Strategy: Specific optimizations for initialization, data loading, and checkpointing.