<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Minh Tuấn Lê</title>
    <description>The latest articles on DEV Community by Minh Tuấn Lê (@minh_tunl_bc7d94eca2e2).</description>
    <link>https://dev.to/minh_tunl_bc7d94eca2e2</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3657528%2F392a4103-6c68-49de-9f0f-ac95033961d5.jpg</url>
      <title>DEV Community: Minh Tuấn Lê</title>
      <link>https://dev.to/minh_tunl_bc7d94eca2e2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/minh_tunl_bc7d94eca2e2"/>
    <language>en</language>
    <item>
      <title>TouchGrass: an offline garden planner powered by TabPFN (open-weight tabular AI)</title>
      <dc:creator>Minh Tuấn Lê</dc:creator>
      <pubDate>Tue, 06 Oct 2026 15:26:29 +0000</pubDate>
      <link>https://dev.to/minh_tunl_bc7d94eca2e2/touchgrass-an-offline-garden-planner-powered-by-tabpfn-open-weight-tabular-ai-58lp</link>
      <guid>https://dev.to/minh_tunl_bc7d94eca2e2/touchgrass-an-offline-garden-planner-powered-by-tabpfn-open-weight-tabular-ai-58lp</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;TouchGrass&lt;/strong&gt; is an offline garden planner. You tell it your USDA hardiness zone and today's date; it tells you which crops will &lt;em&gt;thrive&lt;/em&gt; if you sow them &lt;strong&gt;this week&lt;/strong&gt; — and then you close the laptop and go outside.&lt;/p&gt;

&lt;p&gt;The entire decision core is &lt;strong&gt;TabPFN&lt;/strong&gt;, Prior Labs' open-weight tabular foundation model, running on my laptop's CPU with the Wi-Fi off. No API keys, no cloud endpoint, no per-request cost.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;🌱 TouchGrass — zone 5, week of 2026-04-20
   last spring frost Apr 15 · first fall frost Oct 15
   this week: 25.4 weeks before first fall frost

   ✅ spinach    thrive probability 84%
   ✅ radish     thrive probability 84%
   ✅ lettuce    thrive probability 83%
   ✅ zucchini   thrive probability 83%
   ✅ peas       thrive probability 83%

   Computed locally with TabPFN. Now go outside. 🍂
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And in the fall, asked five weeks before first frost, it correctly gets cautious:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;🌱 TouchGrass — zone 7, week of 2026-10-06
   this week: 5.0 weeks before first fall frost

   🤔 spinach    thrive probability 49%
   🤔 peas       thrive probability 49%
   ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Who is it for? Anyone with a garden bed and a terminal — the goal was to make the screen the shortest part of the experience: one command, five crops, go plant.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;uv &lt;span class="nb"&gt;sync
&lt;/span&gt;uv run touchgrass.py &lt;span class="nt"&gt;--zone&lt;/span&gt; 7 &lt;span class="nt"&gt;--date&lt;/span&gt; 2026-10-06
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That's the whole UX. The heavier demo is turning off networking first and watching it still answer — that's the point.&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/linhlban150612" rel="noopener noreferrer"&gt;
        linhlban150612
      &lt;/a&gt; / &lt;a href="https://github.com/linhlban150612/touchgrass-planner" rel="noopener noreferrer"&gt;
        touchgrass-planner
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Repo: &lt;a href="https://github.com/linhlban150612/touchgrass-planner" rel="noopener noreferrer"&gt;https://github.com/linhlban150612/touchgrass-planner&lt;/a&gt; (MIT).&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;Three small pieces:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;data/frost_dates.csv&lt;/code&gt;&lt;/strong&gt; — median last-spring / first-fall frost dates per hardiness zone (zones 3–10).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;data/plantings.csv&lt;/code&gt;&lt;/strong&gt; — a training set of historical planting outcomes: crop, weeks from last spring frost, weeks before first fall frost, soil temperature, daylight hours → outcome class (&lt;code&gt;thrived&lt;/code&gt; / &lt;code&gt;stunted&lt;/code&gt; / &lt;code&gt;failed&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TabPFN as the whole model.&lt;/strong&gt; For each candidate crop I build one probe row for this week's frost window and ask TabPFN to classify the outcome. There is &lt;strong&gt;no training loop, no hyperparameter tuning, no gradient descent&lt;/strong&gt; — a tabular foundation model doing few-shot classification over 55 rows and just working.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;clf&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;TabPFNClassifier&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;device&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cpu&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                       &lt;span class="n"&gt;categorical_features_indices&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;  &lt;span class="c1"&gt;# crop
&lt;/span&gt;&lt;span class="n"&gt;clf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_train&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y_train&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;proba&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;clf&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;predict_proba&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;X_probe&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# one row per candidate crop
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My first run had a fun bug: I forgot to include the crop as a feature, so every crop scored an identical 51% — TabPFN was correctly telling me all my probe rows were the same row. Adding the crop as a categorical feature gave it the signal it needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It runs on a laptop with no internet.&lt;/strong&gt; TabPFN's weights are downloaded once and run locally. A gardener standing in a field with zero signal gets the exact same answer as one on fibre. A closed API returns a DNS error.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It keeps your data off servers you don't control.&lt;/strong&gt; Your zone, your dates, your planting history never leave the machine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It costs nothing to run.&lt;/strong&gt; Every planting plan is $0.00. No key to rotate, no quota to watch, no endpoint to be deprecated under you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can swap it.&lt;/strong&gt; Because the model is a local artifact, swapping TabPFN for another open tabular model is a one-line change — the tool's value lives in the data and the idea, not in a vendor lock-in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Where the open approach &lt;strong&gt;worked better than a closed one&lt;/strong&gt;: latency and availability. Local inference returns in well under a second on CPU with zero network round-trips, and the failure mode of "airplane mode" simply doesn't exist. For a tool whose explicit goal is to get you &lt;em&gt;away&lt;/em&gt; from connectivity, closed inference would be self-defeating.&lt;/p&gt;

&lt;h2&gt;
  
  
  My Agent Session
&lt;/h2&gt;

&lt;p&gt;The whole project — code, data, debugging the identical-probabilities bug, git history — was built in a single agent session. The commit history in the repo (including the "crop as categorical feature" fix above) is the honest trace of that session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Prior Labs — Best Use of TabPFN&lt;/strong&gt;: TabPFN isn't bolted on; it &lt;em&gt;is&lt;/em&gt; the product. A tabular foundation model forecasting planting success from historical data, fully local, inside a CLI.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
