# Latest

**URL:** https://discuss.pytorch.org/latest.md

[Latest](https://discuss.pytorch.org/latest.md) · [Categories](https://discuss.pytorch.org/categories.md)

---

## [GPU Out of Memory Error During Training with Large Batch Sizes in PyTorch 2.0](https://discuss.pytorch.org/t/gpu-out-of-memory-error-during-training-with-large-batch-sizes-in-pytorch-2-0/226194)

<div class="topic-metadata">

**Author:** [@sisob44287](https://discuss.pytorch.org/u/sisob44287)\
**Replies:** 2\
**Last updated:** [December 6, 2026, 4:11am UTC](https://discuss.pytorch.org/t/gpu-out-of-memory-error-during-training-with-large-batch-sizes-in-pytorch-2-0/226194 "2026-12-06T04:11:39Z")

</div>

Before posting a query, check the FAQs - it migI am experiencing a GPU Out of Memory (OOM) error when training a model with large batch sizes in PyTorch 2.0. Environment: PyTorch version: 2.0.1 CUDA version: 11.8 G…

---

## [How Do You Integrate Active Learning with a PyTorch Robot Dataset?](https://discuss.pytorch.org/t/how-do-you-integrate-active-learning-with-a-pytorch-robot-dataset/226081)

<div class="topic-metadata">

**Author:** [@floras](https://discuss.pytorch.org/u/floras)\
**Replies:** 6\
**Last updated:** [December 5, 2026, 5:50am UTC](https://discuss.pytorch.org/t/how-do-you-integrate-active-learning-with-a-pytorch-robot-dataset/226081 "2026-12-05T05:50:12Z")

</div>

I am building a PyTorch training loop for an embodied AI policy and want to select new trajectories based on model behavior. Candidate signals include: - Action uncertainty - Ensemble disagreement - Failed episodes - R…

---

## [How Do You Balance Simulated and Real Robot Data in a PyTorch DataLoader?](https://discuss.pytorch.org/t/how-do-you-balance-simulated-and-real-robot-data-in-a-pytorch-dataloader/226206)

<div class="topic-metadata">

**Author:** [@floras](https://discuss.pytorch.org/u/floras)\
**Replies:** 0\
**Last updated:** [December 5, 2026, 5:40am UTC](https://discuss.pytorch.org/t/how-do-you-balance-simulated-and-real-robot-data-in-a-pytorch-dataloader/226206 "2026-12-05T05:40:57Z")

</div>

I am building a PyTorch Dataset for embodied AI that combines simulated and real-world robot trajectories. The two sources share the same task schema, but differ in: Camera noise Frame rate Action latency Control freq…

---

## [Dataset size and k-fold strategy for CT denoising in PyTorch](https://discuss.pytorch.org/t/dataset-size-and-k-fold-strategy-for-ct-denoising-in-pytorch/224640)

<div class="topic-metadata">

**Author:** [@marcins](https://discuss.pytorch.org/u/marcins)\
**Replies:** 1\
**Last updated:** [December 5, 2026, 5:32am UTC](https://discuss.pytorch.org/t/dataset-size-and-k-fold-strategy-for-ct-denoising-in-pytorch/224640 "2026-12-05T05:32:20Z")

</div>

Hello, I couldn’t find any information that would provide answers to my questions, and I would appreciate advice on the following project. I want to train a denoiser in PyTorch for X-ray CT reconstructions using an MSD…

---

## [ArsGuard - an mDeBERTa classifier that flags prompt injections on CPU](https://discuss.pytorch.org/t/arsguard-an-mdeberta-classifier-that-flags-prompt-injections-on-cpu/226203)

<div class="topic-metadata">

**Author:** [@arsentev-ai](https://discuss.pytorch.org/u/arsentev-ai)\
**Replies:** 0\
**Last updated:** [December 4, 2026, 11:53pm UTC](https://discuss.pytorch.org/t/arsguard-an-mdeberta-classifier-that-flags-prompt-injections-on-cpu/226203 "2026-12-04T23:53:00Z")

</div>

Hi, I built ArsGuard (a prompt injection classifier) and I want to share the model side of it here. Prompt injection is an instruction for an AI agent hidden inside an email or a web page (white text on white, an HTML co…

---

## [How Do You Mix Simulation and Real Robot Data in a PyTorch Dataset?](https://discuss.pytorch.org/t/how-do-you-mix-simulation-and-real-robot-data-in-a-pytorch-dataset/226166)

<div class="topic-metadata">

**Author:** [@floras](https://discuss.pytorch.org/u/floras)\
**Replies:** 6\
**Last updated:** [December 4, 2026, 8:30am UTC](https://discuss.pytorch.org/t/how-do-you-mix-simulation-and-real-robot-data-in-a-pytorch-dataset/226166 "2026-12-04T08:30:07Z")

</div>

I am building a PyTorch Dataset that combines simulated and real-world robot trajectories. The two sources use the same task schema but may differ in: Camera noise Frame rate Action latency Control frequency Coordinat…

---

## [Streaming WebDataset and LeRobot Data into a PyTorch DataLoader for Multimodal Training](https://discuss.pytorch.org/t/streaming-webdataset-and-lerobot-data-into-a-pytorch-dataloader-for-multimodal-training/226197)

<div class="topic-metadata">

**Author:** [@floras](https://discuss.pytorch.org/u/floras)\
**Replies:** 0\
**Last updated:** [December 4, 2026, 8:13am UTC](https://discuss.pytorch.org/t/streaming-webdataset-and-lerobot-data-into-a-pytorch-dataloader-for-multimodal-training/226197 "2026-12-04T08:13:56Z")

</div>

Multimodal training in PyTorch breaks on the data loader long before it breaks on the model. A world model dataset or video understanding dataset that fits in RAM is easy; the ones that matter are sharded, streamed, and …

---

## [How the pytorch freeze network in some layers, only the rest of the training?](https://discuss.pytorch.org/t/how-the-pytorch-freeze-network-in-some-layers-only-the-rest-of-the-training/7088)

<div class="topic-metadata">

**Author:** [@earnp](https://discuss.pytorch.org/u/earnp)\
**Replies:** 47\
**Last updated:** [December 4, 2026, 4:04am UTC](https://discuss.pytorch.org/t/how-the-pytorch-freeze-network-in-some-layers-only-the-rest-of-the-training/7088 "2026-12-04T04:04:15Z")

</div>

How the pytorch freeze network in some layers, only the rest of the training?

---

## [How do I know the current version of pytorch?](https://discuss.pytorch.org/t/how-do-i-know-the-current-version-of-pytorch/6754)

<div class="topic-metadata">

**Author:** [@earnp](https://discuss.pytorch.org/u/earnp)\
**Replies:** 11\
**Last updated:** [December 3, 2026, 4:46am UTC](https://discuss.pytorch.org/t/how-do-i-know-the-current-version-of-pytorch/6754 "2026-12-03T04:46:26Z")

</div>

How do I know the current version of pytorch?

---

## [Covenant Biosciences is hiring founding ML and computational leads (remote, equity)](https://discuss.pytorch.org/t/covenant-biosciences-is-hiring-founding-ml-and-computational-leads-remote-equity/226177)

<div class="topic-metadata">

**Author:** [@covenantbio](https://discuss.pytorch.org/u/covenantbio)\
**Replies:** 0\
**Last updated:** [December 2, 2026, 8:44pm UTC](https://discuss.pytorch.org/t/covenant-biosciences-is-hiring-founding-ml-and-computational-leads-remote-equity/226177 "2026-12-02T20:44:47Z")

</div>

Covenant Biosciences | https://thecovenant.bio | US, remote or hybrid | Full-time | Meaningful equity; offers can start when the round closes. We build specialised, physics-grounded AI models for drug discovery that run…

---

## [How can we release GPU memory cache?](https://discuss.pytorch.org/t/how-can-we-release-gpu-memory-cache/14530)

<div class="topic-metadata">

**Author:** [@lyakaap](https://discuss.pytorch.org/u/lyakaap)\
**Replies:** 39\
**Last updated:** [December 2, 2026, 5:18am UTC](https://discuss.pytorch.org/t/how-can-we-release-gpu-memory-cache/14530 "2026-12-02T05:18:53Z")

</div>

I would like to do a hyper-parameter search so I trained and evaluated with all of the combinations of parameters. But watching nvidia-smi memory-usage, I found that GPU-memory usage value slightly increased each after …

---

## [\[Project\] Benchmarking torch.linalg.solve on Apple Silicon: CPU vs. MPS speed, accuracy, and dtype support](https://discuss.pytorch.org/t/project-benchmarking-torch-linalg-solve-on-apple-silicon-cpu-vs-mps-speed-accuracy-and-dtype-support/226167)

<div class="topic-metadata">

**Author:** [@cosp6135](https://discuss.pytorch.org/u/cosp6135)\
**Replies:** 0\
**Last updated:** [December 2, 2026, 3:49am UTC](https://discuss.pytorch.org/t/project-benchmarking-torch-linalg-solve-on-apple-silicon-cpu-vs-mps-speed-accuracy-and-dtype-support/226167 "2026-12-02T03:49:23Z")

</div>

Hey everyone. For a numerical computations course at CU Boulder, my team and I benchmarked how well PyTorch 2.15.0 solves Ax = b on Apple Silicon Macs (specifically M2 Max and M3 Pro). We tested CPU vs. MPS, four precisi…

---

## [How Do You Track Dataset Revisions and Data Quality in PyTorch Training?](https://discuss.pytorch.org/t/how-do-you-track-dataset-revisions-and-data-quality-in-pytorch-training/226048)

<div class="topic-metadata">

**Author:** [@floras](https://discuss.pytorch.org/u/floras)\
**Replies:** 8\
**Last updated:** [December 2, 2026, 1:53am UTC](https://discuss.pytorch.org/t/how-do-you-track-dataset-revisions-and-data-quality-in-pytorch-training/226048 "2026-12-02T01:53:54Z")

</div>

I am building a PyTorch training pipeline for embodied AI data. Each trajectory may go through decoding, temporal sampling, action conversion, annotation, deduplication, and dataset splitting before reaching the DataLoa…

---

## [Pytorch mobile for RAG applications](https://discuss.pytorch.org/t/pytorch-mobile-for-rag-applications/200342)

<div class="topic-metadata">

**Author:** [@Wimboj](https://discuss.pytorch.org/u/Wimboj)\
**Replies:** 4\
**Last updated:** [December 1, 2026, 9:17pm UTC](https://discuss.pytorch.org/t/pytorch-mobile-for-rag-applications/200342 "2026-12-01T21:17:37Z")

</div>

Looking to build a medical based offline RAG application for personal use on android or ios, would Pytorch mobile be feasible to use for this project

---

## [torch.save Stores More Than Weights. Almost Nobody Checks the Rest Before Publishing.](https://discuss.pytorch.org/t/torch-save-stores-more-than-weights-almost-nobody-checks-the-rest-before-publishing/226157)

<div class="topic-metadata">

**Author:** [@youssef\_ismail](https://discuss.pytorch.org/u/youssef_ismail)\
**Replies:** 4\
**Last updated:** [December 1, 2026, 9:05pm UTC](https://discuss.pytorch.org/t/torch-save-stores-more-than-weights-almost-nobody-checks-the-rest-before-publishing/226157 "2026-12-01T21:05:59Z")

</div>

A .pth checkpoint is rarely just a state\_dict. Most training scripts save a dict: the weights, the optimizer state, the epoch, and the config. Often the whole argparse Namespace or config object goes in with it. That co…

---

## [How to cast a tensor to another type?](https://discuss.pytorch.org/t/how-to-cast-a-tensor-to-another-type/2713)

<div class="topic-metadata">

**Author:** [@alan\_ayu](https://discuss.pytorch.org/u/alan_ayu)\
**Replies:** 36\
**Last updated:** [December 1, 2026, 4:12am UTC](https://discuss.pytorch.org/t/how-to-cast-a-tensor-to-another-type/2713 "2026-12-01T04:12:13Z")

</div>

if I got a float tensor,but the model needs a double tensor.what should I do to cast the float tensor to double tensor?

---

## [Issue report: PyTorch Inductor CUDA graph break bug (ref: GitHub issue #127975)](https://discuss.pytorch.org/t/issue-report-pytorch-inductor-cuda-graph-break-bug-ref-github-issue-127975/226053)

<div class="topic-metadata">

**Author:** [@10areto\_ab4exf7fuutz](https://discuss.pytorch.org/u/10areto_ab4exf7fuutz)\
**Replies:** 1\
**Last updated:** [November 30, 2026, 7:48pm UTC](https://discuss.pytorch.org/t/issue-report-pytorch-inductor-cuda-graph-break-bug-ref-github-issue-127975/226053 "2026-11-30T19:48:50Z")

</div>

I found an issue in PyTorch (Inductor backend) that I would like to report. GitHub issue: https://github.com/pytorch/pytorch/issues/127975 Summary: When using torch.compile with CUDA graphs in Inductor, graph breaks oc…

---

## [Use flash-linear-attention on sm\_70 GPU](https://discuss.pytorch.org/t/use-flash-linear-attention-on-sm-70-gpu/226039)

<div class="topic-metadata">

**Author:** [@hunter](https://discuss.pytorch.org/u/hunter)\
**Replies:** 3\
**Last updated:** [November 30, 2026, 7:36pm UTC](https://discuss.pytorch.org/t/use-flash-linear-attention-on-sm-70-gpu/226039 "2026-11-30T19:36:09Z")

</div>

Environment: OS : Linux Python : 3.13.6 PyTorch : 2.6.0+cu124 torchvision : 0.21.0+cu124 transformers : 5.19.0 CUDA : 12.4 (cuDNN 9.1) GPU : 8× Tesla V100-PCIE-32GB (compute capability 7.0) I am using Qwen3.5-9B …

---

## [Red light wand near a home server rack — any real interference risk?](https://discuss.pytorch.org/t/red-light-wand-near-a-home-server-rack-any-real-interference-risk/226140)

<div class="topic-metadata">

**Author:** [@griggpreslipsky6290](https://discuss.pytorch.org/u/griggpreslipsky6290)\
**Replies:** 0\
**Last updated:** [November 30, 2026, 6:15pm UTC](https://discuss.pytorch.org/t/red-light-wand-near-a-home-server-rack-any-real-interference-risk/226140 "2026-11-30T18:15:16Z")

</div>

I’ve been using a 4-in-1 red light therapy wand at home for a few months and recently moved my small hobby setup (a mini PC with a GPU for PyTorch experiments) onto the same desk. The wand is powered by a small adapter a…

---

## [Hiring: Software Developer Intern (Tech Internship, Python/AI/Data tracks) - Nestack Technologies, Hyderabad (on-site)](https://discuss.pytorch.org/t/hiring-software-developer-intern-tech-internship-python-ai-data-tracks-nestack-technologies-hyderabad-on-site/226138)

<div class="topic-metadata">

**Author:** [@nestack\_hr](https://discuss.pytorch.org/u/nestack_hr)\
**Replies:** 0\
**Last updated:** [November 30, 2026, 6:03pm UTC](https://discuss.pytorch.org/t/hiring-software-developer-intern-tech-internship-python-ai-data-tracks-nestack-technologies-hyderabad-on-site/226138 "2026-11-30T18:03:26Z")

</div>

We are looking for motivated and curious interns who want hands-on learning and practical exposure in modern technology domains. Selected interns undergo structured training in Full-Stack Development; MVP Design, Develop…

---

## [Why is the training is throttling after continuous training?](https://discuss.pytorch.org/t/why-is-the-training-is-throttling-after-continuous-training/223820)

<div class="topic-metadata">

**Author:** [@Evgeni\_Shurygin](https://discuss.pytorch.org/u/Evgeni_Shurygin)\
**Replies:** 7\
**Last updated:** [November 30, 2026, 5:38pm UTC](https://discuss.pytorch.org/t/why-is-the-training-is-throttling-after-continuous-training/223820 "2026-11-30T17:38:30Z")

</div>

I have an instance of quantized to int8 llama 3.1 model which is continuously fine-tuned on data (10 epochs around 1000-1500 instances of data). One cycle of fine-tune takes around 5-7 hours. after that it waits for suff…

---

## [Post-Training Quantization using test data?](https://discuss.pytorch.org/t/post-training-quantization-using-test-data/171518)

<div class="topic-metadata">

**Author:** [@afaso](https://discuss.pytorch.org/u/afaso)\
**Replies:** 3\
**Last updated:** [November 30, 2026, 7:03am UTC](https://discuss.pytorch.org/t/post-training-quantization-using-test-data/171518 "2026-11-30T07:03:35Z")

</div>

I am setting up a PTQ (static) workload and trying to understand what is the best practice to calibrate the quantizers. I am following the new FX Graph mode tutorial here. The Calibration section mentions that in order …

---

## [Removing background of image (pytorch, python)](https://discuss.pytorch.org/t/removing-background-of-image-pytorch-python/38024)

<div class="topic-metadata">

**Author:** [@XxaemaethxX](https://discuss.pytorch.org/u/XxaemaethxX)\
**Replies:** 2\
**Last updated:** [November 30, 2026, 3:57am UTC](https://discuss.pytorch.org/t/removing-background-of-image-pytorch-python/38024 "2026-11-30T03:57:56Z")

</div>

Link to the jupyter notebook containing my code is here: https://github.com/alpizano/machine-learning-neural-network/blob/master/image\_processing.ipynb So I am starting a DL neural network project and my Professor assig…

---

## [How do you handle model performance degradation in production with PyTorch?](https://discuss.pytorch.org/t/how-do-you-handle-model-performance-degradation-in-production-with-pytorch/226080)

<div class="topic-metadata">

**Author:** [@Ryan\_Williamson](https://discuss.pytorch.org/u/Ryan_Williamson)\
**Replies:** 3\
**Last updated:** [November 29, 2026, 5:36pm UTC](https://discuss.pytorch.org/t/how-do-you-handle-model-performance-degradation-in-production-with-pytorch/226080 "2026-11-29T17:36:13Z")

</div>

I’ve been exploring the challenges of maintaining PyTorch models in production, particularly when model performance gradually declines as real-world data changes. A few things I’m curious about: How do you monitor mo…

---

## [Small open tabular dataset of crypto trader leaderboards (CC BY 4.0) for regression/classification practice](https://discuss.pytorch.org/t/small-open-tabular-dataset-of-crypto-trader-leaderboards-cc-by-4-0-for-regression-classification-practice/226113)

<div class="topic-metadata">

**Author:** [@ana\_copy](https://discuss.pytorch.org/u/ana_copy)\
**Replies:** 0\
**Last updated:** [November 28, 2026, 8:43pm UTC](https://discuss.pytorch.org/t/small-open-tabular-dataset-of-crypto-trader-leaderboards-cc-by-4-0-for-regression-classification-practice/226113 "2026-11-28T20:43:10Z")

</div>

I am the founder of copy.top, which tracks the public on-chain results of traders on fomo, pumpfun and Hyperliquid. We publish daily snapshots as an open dataset on the Hugging Face Hub, in case it is useful for anyone w…

---

## [Build provenance and component/notice evidence for one exact Torch CPU wheel](https://discuss.pytorch.org/t/build-provenance-and-component-notice-evidence-for-one-exact-torch-cpu-wheel/225950)

<div class="topic-metadata">

**Author:** [@Sampath\_Gaura](https://discuss.pytorch.org/u/Sampath_Gaura)\
**Replies:** 1\
**Last updated:** [November 28, 2026, 8:42pm UTC](https://discuss.pytorch.org/t/build-provenance-and-component-notice-evidence-for-one-exact-torch-cpu-wheel/225950 "2026-11-28T20:42:43Z")

</div>

Could you point us to available publisher evidence for this exact distribution? Filename: torch-2.13.0+cpu-cp312-cp312-manylinux\_2\_28\_x86\_64.whl Publisher URL: https://download-r2.pytorch.org/whl/cpu/torch-2.13.0%2Bcpu…

---

## [HYSo 0.2.0 – Open-source PyTorch framework for CNN construction, analysis and benchmarking](https://discuss.pytorch.org/t/hyso-0-2-0-open-source-pytorch-framework-for-cnn-construction-analysis-and-benchmarking/226109)

<div class="topic-metadata">

**Author:** [@Huseyin\_Dogan](https://discuss.pytorch.org/u/Huseyin_Dogan)\
**Replies:** 0\
**Last updated:** [November 28, 2026, 8:41pm UTC](https://discuss.pytorch.org/t/hyso-0-2-0-open-source-pytorch-framework-for-cnn-construction-analysis-and-benchmarking/226109 "2026-11-28T20:41:54Z")

</div>

Hi everyone, I’ve released HYSo 0.2.0, an open-source Python framework built on PyTorch for CNN development and model engineering. The project brings several model development workflows into a single library: Modula…

---

## [Tiled inference for upscaling images larger than VRAM: a working pattern](https://discuss.pytorch.org/t/tiled-inference-for-upscaling-images-larger-than-vram-a-working-pattern/225886)

<div class="topic-metadata">

**Author:** [@upgolab](https://discuss.pytorch.org/u/upgolab)\
**Replies:** 3\
**Last updated:** [November 28, 2026, 6:15pm UTC](https://discuss.pytorch.org/t/tiled-inference-for-upscaling-images-larger-than-vram-a-working-pattern/225886 "2026-11-28T18:15:03Z")

</div>

Most upscaling models are trained on 256-512px crops but people want to run them on 4K photos. The model OOMs, so you tile. The naive tiling loop has two failure modes that are easy to miss. Failure mode 1: seam artifac…

---

## [Mitigating hallucination by decoupling extraction (deterministic scoring) from generation — architecture feedback?](https://discuss.pytorch.org/t/mitigating-hallucination-by-decoupling-extraction-deterministic-scoring-from-generation-architecture-feedback/225776)

<div class="topic-metadata">

**Author:** [@NKTgAI](https://discuss.pytorch.org/u/NKTgAI)\
**Replies:** 9\
**Last updated:** [November 28, 2026, 3:52pm UTC](https://discuss.pytorch.org/t/mitigating-hallucination-by-decoupling-extraction-deterministic-scoring-from-generation-architecture-feedback/225776 "2026-11-28T15:52:20Z")

</div>

Hi everyone, I’m building a document-analysis tool (a text “decoding” layer that scores sentences by semantic energy — actions/assertions vs conditions/exceptions — and extracts the core sentence verbatim, before any g…

---

## [How Do You Structure Evaluation Metrics for Closed-Loop VLA Policies?](https://discuss.pytorch.org/t/how-do-you-structure-evaluation-metrics-for-closed-loop-vla-policies/226036)

<div class="topic-metadata">

**Author:** [@floras](https://discuss.pytorch.org/u/floras)\
**Replies:** 2\
**Last updated:** [November 28, 2026, 3:10pm UTC](https://discuss.pytorch.org/t/how-do-you-structure-evaluation-metrics-for-closed-loop-vla-policies/226036 "2026-11-28T15:10:38Z")

</div>

I am implementing evaluation for a vision-language-action model in PyTorch. The current dataset contains observations, actions, task instructions, and episode outcomes. I want to report more than one success rate, inclu…

[Next page](https://discuss.pytorch.org/latest.md?page=1)
