<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Rust on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/rust/</link>
    <description>Recent content in Rust on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 24 Feb 2025 07:06:14 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/rust/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Strathweb Phi Engine - now with Phi-4 support</title>
      <link>https://www.strathweb.com/2025/02/strathweb-phi-engine-now-with-phi-4-support/</link>
      <pubDate>Mon, 24 Feb 2025 07:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2025/02/strathweb-phi-engine-now-with-phi-4-support/</guid>
      <description>&lt;p&gt;Last summer, I launched &lt;a href=&#34;https://www.strathweb.com/2024/07/announcing-strathweb-phi-engine-a-cross-platform-library-for-running-phi-3-anywhere&#34;&gt;Strathweb Phi Engine&lt;/a&gt; — a cross-platform library for running Phi model inference via a simple, high-level API, from a number of high-level languages: C#, Swift, Kotlin and Python.&lt;/p&gt;
&lt;p&gt;Today I am happy to announce support for Phi-4, the latest model in the Phi family, which Microsoft AI &lt;a href=&#34;https://techcommunity.microsoft.com/blog/aiplatformblog/introducing-phi-4-microsoft%E2%80%99s-newest-small-language-model-specializing-in-comple/4357090&#34;&gt;released&lt;/a&gt; in December 2024.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Strathweb Phi Engine - now with Safe Tensors support</title>
      <link>https://www.strathweb.com/2024/11/strathweb-phi-engine-now-with-safe-tensors-support/</link>
      <pubDate>Fri, 15 Nov 2024 07:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2024/11/strathweb-phi-engine-now-with-safe-tensors-support/</guid>
      <description>&lt;p&gt;This summer, I announced the &lt;a href=&#34;https://www.strathweb.com/2024/07/announcing-strathweb-phi-engine-a-cross-platform-library-for-running-phi-3-anywhere&#34;&gt;Strathweb Phi Engine&lt;/a&gt; — a cross-platform library for running Phi inference anywhere. Up until now, the library only supported models in the quantized GGUF format. Today, I&amp;rsquo;m excited to share that the library now also supports the Safe Tensor model format.&lt;/p&gt;
&lt;p&gt;This enhancement significantly expands the scope of use cases and interoperability for the Strathweb Phi Engine. With Safe Tensor support, you can now load and execute models in a format that is not only performant but also prioritizes security and memory safety. Notably, all the Phi models published by Microsoft use the Safe Tensor format by default.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Announcing Strathweb Phi Engine - a cross-platform library for running Phi-3 anywhere</title>
      <link>https://www.strathweb.com/2024/07/announcing-strathweb-phi-engine-a-cross-platform-library-for-running-phi-3-anywhere/</link>
      <pubDate>Thu, 25 Jul 2024 04:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2024/07/announcing-strathweb-phi-engine-a-cross-platform-library-for-running-phi-3-anywhere/</guid>
      <description>&lt;p&gt;I &lt;a href=&#34;https://www.strathweb.com/2024/05/running-microsoft-phi-3-model-in-an-ios-app-with-rust&#34;&gt;recently&lt;/a&gt; wrote a blog post about using Rust to run Phi-3 model on iOS. The post received an overwhelmingly positive response, and I got a lot of questions about running Phi-3 using similar approach on other platforms, such as Android, Windows, macOS or Linux. Today, I&amp;rsquo;m excited to announce the project I have been working on recently - Strathweb Phi Engine, a cross-platform library for running Phi-3 (almost) anywhere.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Running Microsoft&#39;s Phi-3 Model in an iOS app with Rust</title>
      <link>https://www.strathweb.com/2024/05/running-microsoft-phi-3-model-in-an-ios-app-with-rust/</link>
      <pubDate>Thu, 09 May 2024 07:06:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2024/05/running-microsoft-phi-3-model-in-an-ios-app-with-rust/</guid>
      <description>&lt;p&gt;Last month, &lt;a href=&#34;https://azure.microsoft.com/en-us/blog/introducing-phi-3-redefining-whats-possible-with-slms/&#34;&gt;Microsoft released&lt;/a&gt; the exciting new minimal AI model, Phi-3 mini. It&amp;rsquo;s a 3.8B model that can outperform many other larger models, while still being small enough to run on a phone. In this post, we&amp;rsquo;ll explore how to run the Phi-3 model inside a SwiftUI iOS application using the minimalist ML framework for Rust, called &lt;a href=&#34;https://github.com/huggingface/candle&#34;&gt;candle&lt;/a&gt;, and built by the nice folks at HuggingFace.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Calling Rust code from Swift on iOS and macOS</title>
      <link>https://www.strathweb.com/2023/07/calling-rust-code-from-swift/</link>
      <pubDate>Tue, 25 Jul 2023 08:00:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2023/07/calling-rust-code-from-swift/</guid>
      <description>&lt;p&gt;In the &lt;a href=&#34;https://www.strathweb.com/2023/06/calling-rust-code-from-csharp/&#34;&gt;last post&lt;/a&gt; we covered how &lt;a href=&#34;https://github.com/mozilla/uniffi-rs&#34;&gt;UniFFI&lt;/a&gt; can be used to elegantly create C bindings and generate bridge C# code that allows for calling native code written in Rust from a C# program. Today, we are going to build upon that, and we will show - in a true cross platform fashion - how the same core Rust library we used last time around, and the same toolchain that we have already set up, can be used to generate similar bindings for Swift. This will enable us to reuse our native Rust code in an iOS or macOS application.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Calling Rust code from C#</title>
      <link>https://www.strathweb.com/2023/06/calling-rust-code-from-csharp/</link>
      <pubDate>Thu, 22 Jun 2023 08:00:14 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2023/06/calling-rust-code-from-csharp/</guid>
      <description>&lt;p&gt;There are plenty of reasons to be excited about Rust. Rust provides cross-platform compatibility and can compile to nearly any platform, including Windows, iOS, Android, and many more. One of Rust&amp;rsquo;s core features is its focus on memory safety. It accomplishes this through its ownership model, which helps prevent common bugs such as null pointer dereferencing, dangling pointers, and data races.&lt;/p&gt;
&lt;p&gt;All of this makes Rust an excellent alternative to C++/C for implementing shared logic and algorithms, spanning many different platforms.&lt;/p&gt;
&lt;p&gt;In this post we shall see how we can integrate Rust into program written in C# - and how a native library built with Rust can be called into from a .NET application.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
