Towards Data Science

How to Use Apple's fm CLI to Run On-Device LLMs From Python

The article titled "How to Use Apple's fm CLI to Run On-Device LLMs From Python" discusses the importance of grounding and validating a free, private model before moving beyond prototyping, illustrated by a Sate Padang vision test and a Malaysia capital question. It focuses on using Apple's fm CLI to execute large language models directly on devices via Python.

Towards Data Science
Jul 22

How To Build Your Own LLM Runtime From Scratch

If you have ever wanted to actually build an LLM inference runtime yourself — pack your own weights, own every barrier, capture your own CUDA graphs — this is what that journey looks like on an H100. A step-by-step tour of a small runtime called annotated-llm-runtime, and the three bugs that produced most of the annotations.

By Anubhab Banerjee
Towards Data Science
Aug 11

Can a Local LLM Run My AI Assistant?

I replayed the same 27 real production tasks through two local models, one hardware upgrade apart, to find out what it actually takes to replace Claude as the brain behind a 90-tool personal agent. The post Can a Local LLM Run My AI Assistant?

By Arsen Apostolov
arXiv AI
Aug 20

Flama: a Python framework for development and deployment of production-ready APIs, machine learning, and LLM services

Flama is an open‑source Python framework that unifies the development and deployment of production‑ready web APIs, machine‑learning services, and large‑language‑model (LLM) applications. Built on ASGI, it offers an async‑first, type‑driven programming model with seven subsystems—including dependency injection, a pluggable schema layer, automatic CRUD generation, a portable binary model format, a multi‑backend LLM server, a Rust‑accelerated core, and a Model Context Protocol module. The framework also provides built‑in JWT authentication, pagination, background tasks, WebSocket and streaming support, OpenAPI generation, and a CLI for running, packaging, and inspecting models.

By Jos\'e A. Perdiguero L\'opez, Miguel A. Dur\'an-Olivencia