<?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: FleetML</title>
    <description>The latest articles on DEV Community by FleetML (@fleetml).</description>
    <link>https://dev.to/fleetml</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%2F4257395%2F3dd7d242-8dd5-4fdf-9e76-6dde4132e6cb.png</url>
      <title>DEV Community: FleetML</title>
      <link>https://dev.to/fleetml</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fleetml"/>
    <language>en</language>
    <item>
      <title>SageMaker Edge Manager is gone. Greengrass won't catch a bad model</title>
      <dc:creator>FleetML</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:48:56 +0000</pubDate>
      <link>https://dev.to/fleetml/sagemaker-edge-manager-is-gone-greengrass-wont-catch-a-bad-model-gde</link>
      <guid>https://dev.to/fleetml/sagemaker-edge-manager-is-gone-greengrass-wont-catch-a-bad-model-gde</guid>
      <description>&lt;p&gt;Amazon SageMaker Edge Manager reached its end of life on April 26, 2024. AWS is blunt about it: "applications that call on the Edge Manager service APIs no longer work" (&lt;a href="https://docs.aws.amazon.com/sagemaker/latest/dg/edge-eol.html" rel="noopener noreferrer"&gt;SageMaker Edge Manager end of life&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;AWS's suggested path is ONNX Runtime on the device, plus AWS IoT Greengrass V2 for deployments, or MQTT and IoT Jobs as a "lightweight OTA mechanism" (same page). Good building blocks. But there's a gap between them that every team ends up filling by hand: &lt;strong&gt;which devices get the new model, how is it behaving there, and who takes it back when it's worse?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We built FleetML for that gap. It's open source (Apache-2.0), self-hosted, not tied to any cloud, with a Linux agent for Jetsons, Raspberry Pis and x86 boxes, plus Android and iOS SDKs. Here it is catching a model that loads fine but fails at inference, and rolling it back:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Ffleetml.dev%2Fdocs%2Fscreenshots%2Fdemo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Ffleetml.dev%2Fdocs%2Fscreenshots%2Fdemo.gif" alt="A real run: four edge agents, a canary of a broken version, and the gate rolling it back" width="760" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap in one line
&lt;/h2&gt;

&lt;p&gt;Greengrass V2 has real rollout controls: a rollout rate, abort criteria, and a &lt;code&gt;failureHandlingPolicy&lt;/code&gt; that defaults to &lt;code&gt;ROLLBACK&lt;/code&gt; "if the deployment fails on a core device" (&lt;a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html" rel="noopener noreferrer"&gt;Create deployments&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Read that last part again. A model that &lt;strong&gt;installs fine and then answers wrongly, or slowly, doesn't fail the deployment.&lt;/strong&gt; That's exactly the case a model rollout has to catch.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Greengrass V2 (AWS's path)&lt;/th&gt;
&lt;th&gt;FleetML&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Staged rollout&lt;/td&gt;
&lt;td&gt;Yes, rollout rate and abort criteria&lt;/td&gt;
&lt;td&gt;Canary stages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Roll back when the install fails&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes, plus signature and load checks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Roll back when the model installs fine but behaves worse&lt;/td&gt;
&lt;td&gt;Not in its docs&lt;/td&gt;
&lt;td&gt;Health gate on inference errors and p95 latency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drift monitoring&lt;/td&gt;
&lt;td&gt;Send telemetry to Model Monitor or S3 and wire it up&lt;/td&gt;
&lt;td&gt;Built in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A/B test two models&lt;/td&gt;
&lt;td&gt;Not in its docs&lt;/td&gt;
&lt;td&gt;Built in, Welch t-test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud&lt;/td&gt;
&lt;td&gt;AWS&lt;/td&gt;
&lt;td&gt;Any cloud or on-prem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device protocol&lt;/td&gt;
&lt;td&gt;MQTT&lt;/td&gt;
&lt;td&gt;gRPC and HTTPS, no MQTT&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  A gate on how the model behaves
&lt;/h2&gt;

&lt;p&gt;One request: half the depot's devices first, and roll back if more than 5% of their inferences fail.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST localhost:18080/api/v1/deployments -H &lt;span class="s2"&gt;"Authorization: Bearer $KEY"&lt;/span&gt; -d &lt;span class="s1"&gt;'{
  "project_id": "'&lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s1"&gt;'", "model_version_id": "'&lt;/span&gt;&lt;span class="nv"&gt;$V2&lt;/span&gt;&lt;span class="s1"&gt;'", "strategy": "CANARY",
  "target_selector": {"site": "depot"},
  "canary_stages": [{"percentage": 50, "min_duration": "5m"}, {"percentage": 100, "min_duration": "0s"}],
  "health_gate": {"max_error_rate": 0.05, "min_events": 20, "on_failure": "ROLLBACK"}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;deployment ROLLED_BACK: error rate 95.24% exceeds threshold 5.00% (20/21 events from 1 cohort device)
fleet: edge-a 1.0.0   edge-b 1.0.0   edge-c 1.0.0   edge-d 1.0.0
edge-a switched back without a download: 1.0.0 was still on disk as its last-known-good version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four real agents, and a model that loads fine but fails at inference. From first deployment to rollback took 15 seconds in that run and 25 in the next. The gate only looks at the canary's own telemetry, and can also compare its p95 latency with the previous version.&lt;/p&gt;

&lt;h2&gt;
  
  
  One binary, your runtime
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;fleetml-agent&lt;/code&gt; is a static Go binary for linux/amd64 and linux/arm64 with a systemd unit. It doesn't run your model. Your process does, with ONNX Runtime or whatever you already use. The agent handles the lifecycle around it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;checks the model's ed25519 signature and sha256;&lt;/li&gt;
&lt;li&gt;downloads with resume, and only the delta when a box already has the previous version (a synthetic 20 MB model with its last 2% replaced went over the wire as 440 KB);&lt;/li&gt;
&lt;li&gt;runs your validator, e.g. a script that loads the model and runs one inference;&lt;/li&gt;
&lt;li&gt;switches &lt;code&gt;models/&amp;lt;name&amp;gt;/current&lt;/code&gt; atomically, keeps the previous version as last-known-good, and runs your post-activate hook.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# /etc/fleetml-agent/config.yaml
&lt;/span&gt;&lt;span class="na"&gt;server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;fleet.example.com:19090&lt;/span&gt;
&lt;span class="na"&gt;tls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="na"&gt;enrollment_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;&amp;lt;project enrollment key&amp;gt;&lt;/span&gt;
&lt;span class="na"&gt;labels&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;site:&lt;/span&gt; &lt;span class="s"&gt;depot&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;validator&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;python3 /opt/inference/check.py {file}&lt;/span&gt;
&lt;span class="na"&gt;post_activate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;touch /var/lib/fleetml-agent/model-switched&lt;/span&gt;
&lt;span class="na"&gt;telemetry_listen&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;127.0.0.1:9601&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your inference process reports to the agent over local HTTP, no client library needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST localhost:9601/v1/events -d &lt;span class="s1"&gt;'{"model":"detector","latency_ms":12,"confidence":0.93}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From there the server compares each version's last 24 hours with the 7 days before (population stability index) on latency, confidence and input features, binned on the device so raw inputs stay there. A jump to CRITICAL sends one alert to a webhook, Slack or email.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fth6ru85f58ol1aaz6pfl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fth6ru85f58ol1aaz6pfl.png" alt="FleetML dashboard: drift per metric" width="799" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Already on Greengrass? Keep it
&lt;/h2&gt;

&lt;p&gt;FleetML can sit next to it: Greengrass keeps your inference application running, and FleetML decides which model version it loads.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it isn't
&lt;/h2&gt;

&lt;p&gt;No model compiler (nothing like SageMaker Neo), no device provisioning or certificate management, no MQTT, and it doesn't run inference. You operate it: the server, Postgres with TimescaleDB, NATS and S3-compatible storage, via Docker Compose or Helm, with TLS in front. The agent is Linux-only (amd64 and arm64). It's pre-1.0.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://fleetml.dev/docs/#get-started" rel="noopener noreferrer"&gt;Get started&lt;/a&gt; brings up the server and dashboard with one compose command, and the &lt;a href="https://fleetml.dev/docs/LINUX_AGENT/" rel="noopener noreferrer"&gt;Linux agent guide&lt;/a&gt; covers a Jetson, a Raspberry Pi or an x86 box. Code: &lt;a href="https://github.com/fleetml/fleetml" rel="noopener noreferrer"&gt;github.com/fleetml/fleetml&lt;/a&gt;. If you were on Edge Manager, we'd really like to hear what you replaced it with and what's still missing. And if it looks useful, a star on GitHub helps other people find it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We used AI tools to help write and check this post. The commands and outputs are from real runs.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>iot</category>
      <category>machinelearning</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Firebase ML shuts down in June 2027. Don't just move your models to a bucket</title>
      <dc:creator>FleetML</dc:creator>
      <pubDate>Mon, 23 Nov 2026 12:39:29 +0000</pubDate>
      <link>https://dev.to/fleetml/firebase-ml-shuts-down-in-june-2027-dont-just-move-your-models-to-a-bucket-11ee</link>
      <guid>https://dev.to/fleetml/firebase-ml-shuts-down-in-june-2027-dont-just-move-your-models-to-a-bucket-11ee</guid>
      <description>&lt;p&gt;Firebase's docs now say it plainly: "Firebase ML is deprecated and will be shut down on June 15, 2027". The suggested replacement for model hosting is Cloud Storage (&lt;a href="https://firebase.google.com/docs/ml/manage-hosted-models" rel="noopener noreferrer"&gt;Manage hosted models&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;A bucket moves the file. It doesn't answer the question that actually hurts: &lt;strong&gt;what happens when the new model is worse?&lt;/strong&gt; With a download channel, every phone that asks gets the latest model (&lt;a href="https://firebase.google.com/docs/ml/android/use-custom-models" rel="noopener noreferrer"&gt;Firebase's download types&lt;/a&gt;). You find out from your crash reports and reviews.&lt;/p&gt;

&lt;p&gt;We built FleetML for that moment. It's open source (Apache-2.0), self-hosted, with Android and iOS SDKs and a Linux agent. A new model goes to a few devices first, and if it's worse, it comes back by itself:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Ffleetml.dev%2Fdocs%2Fscreenshots%2Fdemo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Ffleetml.dev%2Fdocs%2Fscreenshots%2Fdemo.gif" alt="A real run: four edge agents, a canary of a broken version, and the gate rolling it back" width="760" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Firebase ML vs a bucket vs FleetML
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Firebase ML&lt;/th&gt;
&lt;th&gt;Cloud Storage&lt;/th&gt;
&lt;th&gt;FleetML&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ship to a % of devices first&lt;/td&gt;
&lt;td&gt;No, latest to everyone&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Canary stages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Roll back automatically when errors rise&lt;/td&gt;
&lt;td&gt;Not in its docs&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Health gate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Verify the model before it replaces the old one&lt;/td&gt;
&lt;td&gt;Not in its docs&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Signature, sha256, load check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A/B test two models&lt;/td&gt;
&lt;td&gt;Via Remote Config + A/B Testing&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Built in, Welch t-test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drift monitoring&lt;/td&gt;
&lt;td&gt;Not in its docs&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;PSI on latency, confidence, inputs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Download only on Wi-Fi or charging&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Build it yourself&lt;/td&gt;
&lt;td&gt;Yes, set from the server&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hosted for you&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No, you run it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  A canary that rolls itself back
&lt;/h2&gt;

&lt;p&gt;One request: 25% of devices first, and roll back if more than 5% of their inferences fail.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -X POST localhost:18080/api/v1/deployments -H &lt;span class="s2"&gt;"Authorization: Bearer $KEY"&lt;/span&gt; -d &lt;span class="s1"&gt;'{
  "project_id": "'&lt;/span&gt;&lt;span class="nv"&gt;$P&lt;/span&gt;&lt;span class="s1"&gt;'", "model_version_id": "'&lt;/span&gt;&lt;span class="nv"&gt;$V2&lt;/span&gt;&lt;span class="s1"&gt;'", "strategy": "CANARY",
  "target_selector": {"app": "demo"},
  "canary_stages": [{"percentage": 25, "min_duration": "2m"}, {"percentage": 100, "min_duration": "0s"}],
  "health_gate": {"max_error_rate": 0.05, "min_events": 30, "on_failure": "ROLLBACK"}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;deployment ROLLED_BACK: error rate 36.36% exceeds threshold 5.00% (16/44 events from 4 cohort devices)
fleet: iris 1.0.0 on 20, nobody outside the canary ever saw 2.0.0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's real output from a server and twenty simulated devices. The gate only looks at the canary's own telemetry, and the same devices stay in the cohort as the percentage grows.&lt;/p&gt;

&lt;h2&gt;
  
  
  A broken model never replaces a working one
&lt;/h2&gt;

&lt;p&gt;Before a new version goes live, the SDK checks its ed25519 signature and sha256, then loads it. If anything fails, the app keeps the previous model ("last-known-good"), even offline:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="nc"&gt;FleetML&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;init&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;FleetMLConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;serverHost&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"fleet.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;serverPort&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;443&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;useTls&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;enrollmentKey&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="k"&gt;object&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;FleetMLCallback&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onModelReady&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ActiveModel&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;classifier&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;file&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="k"&gt;override&lt;/span&gt; &lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;onModelLoadFailed&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;modelName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;reason&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"kept the previous $modelName: $reason"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A/B tests and drift, built in
&lt;/h2&gt;

&lt;p&gt;Run two models on sticky groups of devices and get a straight answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;control 1.0.0:   350 inferences, mean 34 ms
treatment 2.1.0: 350 inferences, mean 13 ms
Welch t-test p &amp;lt; 0.0001, recommendation: ADOPT_TREATMENT
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After it ships, the server compares the last 24 hours with the 7 days before (population stability index) on latency, confidence and input features. The features are binned on the device, so raw inputs never leave the phone. A jump to CRITICAL sends one alert to a webhook, Slack or email.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fth6ru85f58ol1aaz6pfl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fth6ru85f58ol1aaz6pfl.png" alt="FleetML dashboard: drift per metric" width="799" height="312"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving off Firebase ML
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Start the server and dashboard with one compose command: &lt;a href="https://fleetml.dev/docs/#get-started" rel="noopener noreferrer"&gt;Get started&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Upload your existing &lt;code&gt;.tflite&lt;/code&gt; as it is: &lt;code&gt;fleetml push model.tflite --project &amp;lt;id&amp;gt; --model &amp;lt;name&amp;gt; --version &amp;lt;x.y.z&amp;gt;&lt;/code&gt;. It's checked and signed on upload.&lt;/li&gt;
&lt;li&gt;In the app, swap the model downloader for the SDK callback above. The rest of your TensorFlow Lite code stays.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then ship your next model to a small group first. That's the whole point.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it isn't
&lt;/h2&gt;

&lt;p&gt;Not an inference runtime: your app still runs the model with TensorFlow Lite, Core ML or ONNX Runtime. Not hosted: you run it (Postgres, NATS and S3-compatible storage, via Docker Compose or Helm). It's pre-1.0, tested on an Android emulator, an iOS simulator and a physical phone of each kind, and the first production fleets will find what we didn't.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://fleetml.dev" rel="noopener noreferrer"&gt;fleetml.dev&lt;/a&gt;, the &lt;a href="https://fleetml.dev/docs/QUICKSTART/#tour" rel="noopener noreferrer"&gt;tour&lt;/a&gt;, and the code at &lt;a href="https://github.com/fleetml/fleetml" rel="noopener noreferrer"&gt;github.com/fleetml/fleetml&lt;/a&gt;. If you're moving off Firebase ML, we'd really like to hear what you use it for and what's missing. And if it looks useful, a star on GitHub helps other people find it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;We used AI tools to help write and check this post. The commands and outputs are from real runs.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>firebase</category>
      <category>android</category>
      <category>machinelearning</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
