<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Pytorch on Veritable Tech Blog</title>
    <link>https://blog.ceshine.net/tags/pytorch/</link>
    <description>Recent content in Pytorch on Veritable Tech Blog</description>
    <generator>Hugo -- 0.149.1</generator>
    <language>en</language>
    <copyright>2015-2026 Ceshine Lee · CC BY-NC-SA 4.0</copyright>
    <lastBuildDate>Tue, 28 Apr 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.ceshine.net/tags/pytorch/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using ArrayRecord with PyTorch</title>
      <link>https://blog.ceshine.net/post/ArrayRecord-PyTorch/</link>
      <pubDate>Tue, 28 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/ArrayRecord-PyTorch/</guid>
      <description>&lt;figure&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;cover.jpg&#34;
         alt=&#34;Cover image generated by ChatGPT&#34;/&gt; &lt;figcaption&gt;
            &lt;p&gt;Cover image generated by ChatGPT&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;ArrayRecord is a new file format developed by Google to &amp;ldquo;achieve a new frontier of I/O efficiency&amp;rdquo; [1]. It has been positioned [2] as the successor to TFRecord [3] for storing and feeding data in large-scale machine learning pipelines. It is designed to accommodate three primary access patterns: sequential, batch, and random access. It solves a significant issue in the TFRecord format: the lack of completely random data access, while still providing high I/O performance.&lt;/p&gt;</description>
    </item>
    <item>
      <title>[Notes] Uncovering the Hidden Preprocessing Logic of ColPali</title>
      <link>https://blog.ceshine.net/post/colpali-preprocessing/</link>
      <pubDate>Thu, 22 Jan 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/colpali-preprocessing/</guid>
      <description>&lt;figure&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;factory-inspection.jpg&#34;
         alt=&#34;Cover image generated by Nano Banana Pro&#34;/&gt; &lt;figcaption&gt;
            &lt;p&gt;Cover image generated by Nano Banana Pro&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I recently came across a course called &amp;ldquo;&lt;a href=&#34;https://www.deeplearning.ai/short-courses/multi-vector-image-retrieval/&#34;&gt;Multi-Vector Image Retrieval&lt;/a&gt;&amp;rdquo; by DeepLearning.ai. The course mainly introduces &lt;a href=&#34;https://arxiv.org/abs/2407.01449&#34;&gt;ColPali&lt;/a&gt; [1], a vision-language model that generalizes the late-interaction retrieval paradigm pioneered by &lt;a href=&#34;https://arxiv.org/abs/2004.12832&#34;&gt;ColBERT&lt;/a&gt; [2], extending it from covering only text tokens to covering both text and visual tokens. It also contains a few tutorials on performance optimization techniques using &lt;a href=&#34;https://qdrant.tech&#34;&gt;Qdrant&lt;/a&gt;&amp;rsquo;s Python SDK. It is a great introductory resource, and I recommend it to anyone interested in visual document understanding and retrieval.&lt;/p&gt;</description>
    </item>
    <item>
      <title>[Notes] MaxViT: Multi-Axis Vision Transformer</title>
      <link>https://blog.ceshine.net/post/MaxViT/</link>
      <pubDate>Sun, 16 Jul 2023 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/MaxViT/</guid>
      <description>Multi-axis attention to enable both local and global interactions efficiently</description>
    </item>
    <item>
      <title>[Notes] PolyLoss: A Polynomial Expansion Perspective of Classification Loss Functions</title>
      <link>https://blog.ceshine.net/post/polyloss/</link>
      <pubDate>Sun, 15 May 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/polyloss/</guid>
      <description>A simple tweak to make your loss function much more adaptable</description>
    </item>
    <item>
      <title>[Notes] Understanding Visual Attention Network</title>
      <link>https://blog.ceshine.net/post/van-notes/</link>
      <pubDate>Mon, 14 Mar 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/van-notes/</guid>
      <description>Decompose large kernel convolutions to get attention weights efficiently</description>
    </item>
    <item>
      <title>[Notes] Understanding ConvNeXt</title>
      <link>https://blog.ceshine.net/post/convnext-notes/</link>
      <pubDate>Fri, 28 Jan 2022 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/convnext-notes/</guid>
      <description>A ConvNet for the 2020s</description>
    </item>
    <item>
      <title>[Notes] Understanding XCiT - Part 2</title>
      <link>https://blog.ceshine.net/post/xcit-part-2/</link>
      <pubDate>Sun, 25 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/xcit-part-2/</guid>
      <description>Local Patch Interaction(LPI) and Class Attention Layer</description>
    </item>
    <item>
      <title>[Notes] Understanding XCiT - Part 1</title>
      <link>https://blog.ceshine.net/post/xcit-part-1/</link>
      <pubDate>Sat, 24 Jul 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/xcit-part-1/</guid>
      <description>Cross-Covariance Attention(XCA) Block</description>
    </item>
    <item>
      <title>[Notes] Gradient Checkpointing with BERT</title>
      <link>https://blog.ceshine.net/post/bert-gradient-checkpoint/</link>
      <pubDate>Sun, 04 Apr 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/bert-gradient-checkpoint/</guid>
      <description>A brief analysis of huggingface&amp;#39;s implementation</description>
    </item>
    <item>
      <title>[Paper] Adafactor: Adaptive Learning Rates with Sublinear Memory Cost</title>
      <link>https://blog.ceshine.net/post/adafactor/</link>
      <pubDate>Thu, 18 Mar 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/adafactor/</guid>
      <description>Essential for fine-tuning T5 v1.1 and mT5 models</description>
    </item>
    <item>
      <title>Mistake I Made that Crippled My Streamlit App</title>
      <link>https://blog.ceshine.net/post/streamlit-deployment/</link>
      <pubDate>Sun, 14 Mar 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/streamlit-deployment/</guid>
      <description>Not properly caching slows down the app and increases memory consumption</description>
    </item>
    <item>
      <title>A Case Study of fastcore @patch_to</title>
      <link>https://blog.ceshine.net/post/fastcore-patch-to-case-study/</link>
      <pubDate>Fri, 19 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/fastcore-patch-to-case-study/</guid>
      <description>Trying out SnapMix with minimal changes to the codebase</description>
    </item>
    <item>
      <title>[Paper] Rethinking Cooperative Rationalization: Introspective Extraction and Complement Control</title>
      <link>https://blog.ceshine.net/post/selective-rationalization/</link>
      <pubDate>Sun, 14 Feb 2021 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/selective-rationalization/</guid>
      <description>Building competitive self-explaining NLP models</description>
    </item>
    <item>
      <title>[Kaggle] Google Research Football 2020</title>
      <link>https://blog.ceshine.net/post/16th-place-google-research-football/</link>
      <pubDate>Mon, 28 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/16th-place-google-research-football/</guid>
      <description>Describing my 16th place solution and also reviewing some of the others&amp;#39;</description>
    </item>
    <item>
      <title>[PyTorch Lightning] Log Training Losses when Accumulating Gradients</title>
      <link>https://blog.ceshine.net/post/pytorch-lightning-grad-accu/</link>
      <pubDate>Tue, 22 Dec 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/pytorch-lightning-grad-accu/</guid>
      <description>The global step is not what you think it is</description>
    </item>
    <item>
      <title>[Tip] TorchScript Supports Half Precision</title>
      <link>https://blog.ceshine.net/post/torchscript-half-precision/</link>
      <pubDate>Sat, 11 Jul 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/torchscript-half-precision/</guid>
      <description>Speeding up inference for models trained with mixed precision</description>
    </item>
    <item>
      <title>Self-Supervised Domain Adaptation</title>
      <link>https://blog.ceshine.net/post/byol-domain-adaptation/</link>
      <pubDate>Mon, 06 Jul 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/byol-domain-adaptation/</guid>
      <description>Preliminary experiments show great promise</description>
    </item>
    <item>
      <title>[Failure Report] Distill Fine-tuned Transformers into Recurrent Neural Networks</title>
      <link>https://blog.ceshine.net/post/failed-to-distill-transformer-into-rnn/</link>
      <pubDate>Tue, 16 Jun 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/failed-to-distill-transformer-into-rnn/</guid>
      <description>Transferring knowledge for downstream tasks requires more efforts</description>
    </item>
    <item>
      <title>Deploying EfficientNet Model using TorchServe</title>
      <link>https://blog.ceshine.net/post/torchserve/</link>
      <pubDate>Mon, 04 May 2020 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/torchserve/</guid>
      <description>A Case Study</description>
    </item>
    <item>
      <title>Fine-tuning BERT for Similarity Search</title>
      <link>https://blog.ceshine.net/post/finetune-sentence-bert/</link>
      <pubDate>Thu, 28 Nov 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/finetune-sentence-bert/</guid>
      <description>BERT as Sentence Encoder is Surprisingly Sample-Efficient</description>
    </item>
    <item>
      <title>Zero Shot Cross-Lingual Transfer with Multilingual BERT</title>
      <link>https://blog.ceshine.net/post/zero-shot-bert-sent-emb/</link>
      <pubDate>Tue, 24 Sep 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/zero-shot-bert-sent-emb/</guid>
      <description>Fine-tuning BERT for Sentence Embeddings on English NLI Datasets</description>
    </item>
    <item>
      <title>More Memory-Efficient Swish Activation Function</title>
      <link>https://blog.ceshine.net/post/pytorch-memory-swish/</link>
      <pubDate>Thu, 22 Aug 2019 00:00:00 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/pytorch-memory-swish/</guid>
      <description>And How to Profile PyTorch GPU Memory Usage</description>
    </item>
    <item>
      <title>Smaller Docker Image using Multi-Stage Build</title>
      <link>https://blog.ceshine.net/post/docker-multi-stage-build/</link>
      <pubDate>Fri, 21 Jun 2019 00:07:25 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/docker-multi-stage-build/</guid>
      <description>Example: CUDA-enabled PyTorch &#43; Apex Image</description>
    </item>
    <item>
      <title>Mixed Precision Training on Tesla T4 and P100</title>
      <link>https://blog.ceshine.net/post/apex-t4-p100/</link>
      <pubDate>Thu, 13 Jun 2019 00:07:25 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/apex-t4-p100/</guid>
      <description>Training Wide-Resnet with Apex on Google Colab and Kaggle</description>
    </item>
    <item>
      <title>Use NVIDIA Apex for Easy Mixed Precision Training in PyTorch</title>
      <link>https://blog.ceshine.net/post/2019/20190326-nvidia-apex/</link>
      <pubDate>Tue, 26 Mar 2019 19:54:30 +0800</pubDate>
      <guid>https://blog.ceshine.net/post/2019/20190326-nvidia-apex/</guid>
      <description>Does it benefits those who still use Pascal consumer cards?</description>
    </item>
    <item>
      <title>Multilingual Similarity Search Using Pretrained Bidirectional LSTM Encoder</title>
      <link>https://blog.ceshine.net/post/multilingual-similarity-search/</link>
      <pubDate>Fri, 15 Feb 2019 04:20:35 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/multilingual-similarity-search/</guid>
      <description>Evaluating LASER (Language-Agnostic SEntence Representations)</description>
    </item>
    <item>
      <title>News Topic Similarity Measure using Pretrained BERT Model</title>
      <link>https://blog.ceshine.net/post/news-topic-similarity-measure/</link>
      <pubDate>Sun, 10 Feb 2019 04:46:11 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/news-topic-similarity-measure/</guid>
      <description>Utilizing Next Sentence Predictions. No Fine-tuning Required.</description>
    </item>
    <item>
      <title>[Notes] Neural Language Models with PyTorch</title>
      <link>https://blog.ceshine.net/post/neural-language-models/</link>
      <pubDate>Sat, 13 Oct 2018 02:17:58 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/neural-language-models/</guid>
      <description>With Notebook Examples Runnable on Google Colab</description>
    </item>
    <item>
      <title>[Learning Note] Single Shot MultiBox Detector with Pytorch — Part 3</title>
      <link>https://blog.ceshine.net/post/20170727-SSD-PyTorch-Part3/</link>
      <pubDate>Thu, 27 Jul 2017 05:45:21 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/20170727-SSD-PyTorch-Part3/</guid>
      <description>Training Objective and Inference</description>
    </item>
    <item>
      <title>[Learning Note] Single Shot MultiBox Detector with Pytorch — Part 2</title>
      <link>https://blog.ceshine.net/post/20170726-SSD-PyTorch-Part2/</link>
      <pubDate>Wed, 26 Jul 2017 01:16:40 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/20170726-SSD-PyTorch-Part2/</guid>
      <description>Tiling and Matching Strategy</description>
    </item>
    <item>
      <title>[Learning Note] Single Shot MultiBox Detector with PyTorch — Part 1</title>
      <link>https://blog.ceshine.net/post/20170724-SSD-PyTorch-Part1/</link>
      <pubDate>Mon, 24 Jul 2017 06:03:30 +0000</pubDate>
      <guid>https://blog.ceshine.net/post/20170724-SSD-PyTorch-Part1/</guid>
      <description>An introduction to the Single Shot MultiBox Detector (SSD) with PyTorch, covering its network structure and prediction scheme.</description>
    </item>
  </channel>
</rss>
