🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🎥 Künstliche Intelligenz Videos 🕛 kürzlich 14 Min Lesezeit
0

JAX on the Web with TensorFlow.js

↗ Quelle (blog.tensorflow.org)
🗣️ Stimme:
📑 Inhaltsübersicht
and functions and . We have produced three examples of JAX-to-TensorFlow.js conversion each with increasing complexity: 

  1. A simple JAX function 
  2. An image classification Flax model trained on the MNIST dataset 
  3. A full image/text  (a preview of the demo is shown in Figure 1 below)

For each example, there are Google Colab notebooks you can use to try the JAX-to-TensorFlow.js conversion yourself.

). See  to compile programs optimized for GPUs and for language understanding and generation, or and ), data visualization (), and devices running on a web browser or any device capable of executing JavaScript ( format, and then using the same tooling as if they had been developed in TensorFlow natively.

This is now made even easier for TensorFlow.js through the new Python API — In this introductory example, you’ll convert a few simple JAX functions using format, which contains a complete TensorFlow program, including trained parameters (i.e., tf.Variables) and computation.
  • Then, it constructs a TensorFlow.js model from that SavedModel (refer to Figure 2 for more details).
  • Figure 2. High-level visualization of the conversion steps inside is a term coming from type theory, but here we use it to mean that the function works for multiple related shapes, e.g., for multiple batch sizes. This is necessary for shape checking in the JAX function (see Colab for more examples, and
    Let's use the same conversion code snippet from before, but this time we'll use TensorFlow.js to run a real ML model. Flax provides a function that takes params and images as inputs and returns logits:

    tfjs.converters.convert_jax(

        state.apply_fn,

        {'params': state.params},

        input_signatures=[tf.TensorSpec((1, 28, 28, 1), tf.float32)],

        model_dir=tfjs_model_dir,

    )


    On the JavaScript side, you load the model asynchronously, showing a simple progress update in the status text, making sure to give some feedback while the model weights are transferred:

    tf.loadGraphModel(modelDir + '/model.json', {

        onProgress: p => status.innerText = `loading model: ${Math.round(p*100)}%`

    })


    A minimal UI is loaded from . Refer to that post for technical details on the implementation of the ML model. Also make sure to check out the final or ) can serve hundreds or thousands of users simultaneously free of charge. And running a powerful model on server-side infrastructure at this scale would be very expensive (massive compute is not cheap).
    The model you use for the demo consists of two parts: an image encoder, and a text encoder (see Figure 4).

    For computing image embeddings you use a large model, and for text embeddings—a small model. To make the demo run faster and produce better results, the expensive image embeddings are pre-computed, so the Tensorflow.js model only needs to compute the text embeddings and then compare the image and text embeddings to compute similarities.
    (or :


    Image encoder

    Text encoder

    Zeroshot performance

    Model

    Params

    FLOPs

    Params

    FLOPs

    CIFAR-100

    ImageNet

    LiT-B16B

    86M (344 MB)

    36B

    109M (436 MB)

    2.7B

    79.2%

    71.7%

    LiT-L16S  ("small" text encoder)

    303M (1.2 GB)

    123B

    28M (111 MB)

    0.7B

    75.8%

    60.7%

    LiT-L16Ti ("tiny" text encoder)

    303M (1.2 GB)

    123B

    9M (36 MB)

    0.2B

    73.2%

    53.4%


    Note though that the "zeroshot performance" should only be taken as a proxy. In the end, the model performance needs to be good enough for the demo, and in this case our manual testing showed that even the tiny text transformer was able to compute similarities good enough for the demo. Next, we tested the performance of the tiny and small text encoders using this TensorFlow.js backend):

    LiT-L16T ("tiny" text encoder) -


    Load time

    Warmup

    Average/10

    Peak memory

    Load time

    Warmup

    Average/10

    Peak memory

    MacBook Pro (Intel i7 2.6GHz / Radeon Pro 5300M)

    1.1s

    0.15s

    0.12s

    33.9 MB

    3.9s

    0.8s

    0.8s

    122 MB

    iPad Air (4th gen)

    1.3s

    0.6s

    0.5s

    33.9 MB

    2.7s

    2.4s

    2.5s

    141 MB

    Samsung S21 G5 (cell phone)

    2.0s

    1.3s

    1.1s

    33.9 MB

    -

    -

    -

    -


    Note that the results for the model with the "small" text encoder are missing for "Samsung S21 G5" in the above table because the model did not fit into memory. In terms of performance, the model with the "tiny" text encoder produces results within approximately 0.1-1 seconds, which still feels quite responsive, even on the smallest platform tested.

    The Lit-LiT web app 

    ).

    The code for the entire client-side application is available on Github: . The main index.html declares the demo application:

    <lit-demo-app></lit-demo-app>


    This web component is defined in lit-demo-app.ts in the .

    In addition to the complete application, it's also possible to export the functional parts without the UI as a single JavaScript file that can be linked statically. See the file playground.html as an example, and refer to the instructions in README.md for how to compile the entire application or the functional part before deploying the application.

    <!-- Loads global symbol `lit`. -->

    <script src="exports_bin.js"></script>

    <script>

    async function demo() {

      lit.setBaseUrl('https://google-research.github.io/vision_transformer/lit');

      const model = new lit.Model('tiny');

      await model.load();

      console.log(model.computeProbabilities(['a dog', 'a cat'], /*imgIdx=*/1);

    }

    demo();

    </script>

    Conclusion

    In this article you learned how to convert JAX functions and Flax models into the TensorFlow.js format that can be executed in a browser or on devices capable of running JavaScript.

    The first example demonstrated how to convert a JAX function to a TensorFlow.js model, which can then be loaded in Colab for verification, or run on any device with a modern web browser – this is an exactly the same conversion that can be applied to more complex Flax models. The second example showed how to train an ML model in Colab, and test it interactively on a mobile phone.The third example provided a ). We hope that this application can serve you as a good starting point for your own client-side demos using JAX models with TensorFlow.js.
    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf blog.tensorflow.org.
    ↗ Original-Artikel auf blog.tensorflow.org lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    1 Quelle
    Hackers Just Poisoned the Rust Supply Chain | Threat Wire
    1 Quelle
    Hackers Found a Way Into Humanoid Robots | Threat Wire
    1 Quelle
    Bits und so #1021 (Passwort für Laufwerk)
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten JAX on the Web with TensorFlow.js

    Thematisch verwandte Begriffe: with, TensorFlowjs · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    🔖 Gespeicherte Artikel
    📂 Keine gespeicherten Artikel vorhanden.
    📂 News ⏱️ 3 Min vor 10 Min
    Artikeldaten werden geladen...

    ↗ Original-Quelle
    Zum Aktualisieren ziehen
    ZERO-DAY Kritische Sicherheitsmeldung
    Advisory →
    TTS Reader • tsecurity.de Voice
    tsecurity.de Icon
    tsecurity.de App
    Offline-Lesen, Eilmeldungen & 0ms Ladezeit

    Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

    Nächster Beitrag
    🤖
    Community Radar & Live Chat
    Sentinel Bot online • Live-Stream
    Dein Cluster: Security Explorer
    👥 Match:
    lädt…
    Verbindung zum Community-Stream wird aufgebaut...
    📡 Aktivitäten deiner Analysten
    lädt…
    💡 Neues Thema oder Eilmeldung einreichen

    Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

    🔥 Heiß diskutierte Einreichungen