Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

10 results for “python 3.13t”

Newest and most relevant first

skfolio: portfolio optimization and risk management built on scikit-learn

Data scientists who already use scikit-learn can now build, cross-validate and stress-test optimized portfolios without learning a separate finance API.

skfolio is a free, open-source Python library for portfolio optimization, deciding how much money to put into each investment, and risk management. It works the same way as scikit-learn, the popular machine-learning toolkit, so people already trained on scikit-learn can use the same commands to build portfolios, tune settings and test how allocations survive market shocks. It affects data scientists and quantitative analysts, though it handles only modeling, not live trading.

skfolio lowers the cost of turning return predictions into actual portfolios by making scikit-learn's workflow apply to portfolio construction. Firms whose data scientists already know scikit-learn can reuse that skill rather than training staff on specialized finance libraries, which most competitors lack cross-validation and tuning support in. It is free under a 3-Clause BSD license, with paid enterprise support via Skfolio Labs. It does not cover data collection, execution or live trading.

skfolio wraps portfolio optimization models in scikit-learn's estimator API (fit, predict, transform), so models plug into cross-validation, grid search and pipeline composition. Dependencies are numpy, scipy, pandas and cvxpy-base for convex optimization, supporting Python 3.10–3.13. It adds built-in stress-testing of allocations under adverse conditions. Limitations: it covers only modeling, no data collection, execution or live-market handling, and no benchmark numbers are given.

GitHub Opensource Projects →

Gemma 4 audio with MLX

Mac users can now run local audio transcription with a single uv command using Google's Gemma 4 E2B model via MLX, avoiding cloud speech-to-text APIs.

Simon Willison shares a one-line command for transcribing audio on a Mac using a model called Gemma 4 E2B, which is about 10 GB and runs locally with Apple's MLX software. He tested it on a 14-second voice memo and got an almost-perfect transcription with two small word errors. Anyone with a Mac can copy the command and use it today, with no cloud service or payment involved.

This post is a working recipe, not a product launch: a single command that runs Google's Gemma 4 E2B model locally on macOS for audio transcription. It matters because local speech-to-text can replace paid cloud transcription for short clips, with no data leaving the machine. The limitation shown is accuracy - the model made two word errors on a 14-second test clip. No pricing or benchmark comparisons are given.

The recipe uses uv with Python 3.13 and mlx-vlm to run google/gemma-4-e2b-it (10.28 GB) on macOS, passing a 14-second WAV file with the prompt 'Transcribe this audio', max-tokens 500, temperature 1.0. Output was near-correct, mishearing 'This right here' as 'This front here' and 'how well that works' as 'how that works'. No benchmarks or accuracy measurements are provided.

Simon Willison’s Weblog →

Running Pydantic's Monty Rust sandboxed Python subset in WebAssembly

Developers running LLM-generated Python can now sandbox it in microseconds via Pydantic's Monty, compiled to WebAssembly to run in browsers.

Simon Willison tried Pydantic's new tool called Monty, a small version of the Python programming language built for safely running code written by AI assistants. Normally this needs a slow virtual container; Monty starts in microseconds and blocks access to files and the network. It does not even support class definitions yet. Willison used an AI tool, Claude Code, to compile it into WebAssembly so it runs in a web browser.

Pydantic released Monty, a sandboxed Python subset in Rust for executing AI-generated code without container overhead, with startup in single-digit microseconds versus hundreds of milliseconds. Willison demonstrated it compiled to WebAssembly in two forms, with working browser demos. Teams building coding agents gain a fast, small alternative to container sandboxes; it is early, version 0.0.3, and lacks features like class declarations.

Monty is a Rust implementation of a Python subset from Pydantic, shipped as both a Rust library and Python package (pydantic-monty, tested at 0.0.3), blocking filesystem, environment and network access except via developer-controlled external calls. Willison compiled it to WebAssembly as a standalone .wasm bundle callable from JavaScript and as a CPython 3.13/emscripten wheel loadable in Pyodide, with two GitHub Pages demos. Execution was measured at 4.0ms in the browser. Class declarations are unsupported; agents are expected to adapt from error messages.

Simon Willison’s Weblog →

Python 3.14 Is Here. How Fast Is It?

Developers can expect roughly 27% faster Python 3.14 execution and a much better free-threading build, but the optional JIT shows little benefit in these basic benchmarks, so upgrades are worthwhile without JIT tuning.

Miguel Grinberg benchmarked Python 3.14, the latest version of the popular programming language, against version 3.13. He found it about 27% faster on Linux and macOS. A special build that lets Python programs use multiple processor cores at once gave a 3.09x speedup with four threads, up from 2.2x before. Anyone running Python programs benefits from the free upgrade.

Python 3.14 is out and independent benchmarks show around 27% faster execution than Python 3.13 on Linux and macOS. The free-threading build, which runs code across multiple processor cores, now reaches 3.09x speedup with four threads versus 2.2x previously, making multi-core Python work cheaper and more efficient. Teams still need to verify their own workloads, since the optional JIT compiler showed no meaningful gain here.

Miguel Grinberg ran basic benchmarks including fib(40) comparing Python 3.14 against 3.13 on Linux and macOS, measuring roughly 27% faster execution. The optional JIT compiler made no meaningful difference to his benchmark results. Using the free-threading build on a threaded benchmark, 3.14 delivered a 3.09x speedup with 4 threads, up from 2.2x in 3.13's free-threading build. Limitations: basic synthetic benchmarks only.

Simon Willison’s Weblog →

Static Sites with Python, uv, Caddy, and Docker

Gives developers a copyable 8-line Dockerfile plus a Caddyfile for deploying static sites with uv and Coolify, replacing bespoke build pipelines.

A developer named Nik Kantar wrote a detailed guide showing how he builds and hosts mostly-static websites using Docker, a packaging tool called uv, Python 3.13, and a web server called Caddy. His whole build setup is an 8-line Dockerfile, and he uses a self-hosting platform called Coolify instead of paid services like Heroku or Vercel. The guide explains every line of the configuration files. It is aimed at people who already run websites and want a simple, repeatable hosting recipe.

Kantar's guide shows how a small, 8-line Dockerfile plus a Caddyfile (which also proxies analytics to Plausible) can replace heavier build pipelines for static sites, deployed via self-hosted Coolify rather than paying Heroku or Vercel. Some Hacker News commenters called it over-engineering, but Willison argues it fits an existing Docker-based setup. Readers gain a reusable deployment template and exposure to Coolify as a lower-cost hosting alternative.

The Dockerfile uses a two-stage build: the ghcr.io/astral-sh/uv:debian image with uv running Python 3.13 to execute the 'sus' static site generator via 'uv run --no-dev sus', then the caddy:alpine image serving the /src/output directory from /srv/. The included Caddyfile proxies a subset of requests to Plausible analytics. Deployment is via Coolify across Docker hosts. The approach generalises to any static site generator invocable with uv run; the guide omits performance or cost benchmarks.

Simon Willison’s Weblog →

TIL: Running a gpt-oss eval suite against LM Studio on a Mac

Practitioners can now independently verify gpt-oss model quality on consumer Mac hardware rather than trusting OpenAI's published evals.

A programmer named Simon Willison figured out how to test the quality of OpenAI's free-to-download gpt-oss-20b AI model on his own MacBook. He used the app LM Studio to run the model locally, then ran a 30-question maths exam (each question asked eight times) against it. The whole test took about 3.5 hours on his laptop.

Simon Willison demonstrates that OpenAI's gpt-oss-20b can be rigorously evaluated on a consumer MacBook using LM Studio, running the AIME 2025 maths benchmark in roughly 3.5 hours. For teams weighing local vs cloud model deployments, this lowers the cost of independently verifying open-weight model quality before adoption, without needing datacentre hardware.

Willison ran OpenAI's official gpt-oss eval suite against gpt-oss-20b served from LM Studio on a MacBook Pro via its local OpenAI-compatible endpoint (localhost:1234/v1). The command uses uv with Python 3.13, the gpt_oss.evals module, chat_completions sampler, reasoning-effort low, and two threads. AIME 2025 poses 30 questions, each sampled eight times. The key gotcha: LM Studio's default context limit must be raised, and the run took ~3.5 hours.

Simon Willison’s Weblog →

Hypothesis is now thread-safe

Python teams running Hypothesis tests can now execute them in parallel threads, removing one blocker for testing packages against the free-threaded Python build.

Hypothesis is a popular Python testing tool that automatically invents thousands of odd test inputs, like strange lists of numbers, to catch bugs developers would miss. Until now it couldn't safely run multiple tests at the same time in parallel. Python is preparing to remove a long-standing bottleneck (its 'GIL') so programs can truly run in parallel, and packages now need parallel testing. Hypothesis contributor Liam DeVoe, funded by Quansight, made the tool safe for this.

Python's move to free threading (removing its global interpreter lock, per PEP 703) requires libraries to prove thread safety, but Hypothesis tests were being skipped in those runs, cutting test coverage across many packages. Quansight sponsored contributor Liam DeVoe to fix this, so that coverage gap is now closed. Any Python team planning free-threaded migration benefits immediately; there are no costs or benchmarks stated.

Hypothesis, the property-based Python testing library (e.g. @given(st.lists(st.integers()))), is now thread-safe, thanks to contributor Liam DeVoe with Quansight sponsorship. Previously tests had to run sequentially, and community packages skipped Hypothesis suites under the free-threaded build (PEP 703), losing substantial coverage. Running tests in two or more concurrent threads is now viable. The article gives no implementation details, version number or performance figures.

Simon Willison’s Weblog →

NVIDIA CUDA-Q 0.12 Expands Toolset for Developing Hardware-Performant Quantum Applications

Quantum researchers can now access raw per-shot simulation results and batch thousands of parameter sweeps on one GPU, cutting simulation runtime for hardware design.

NVIDIA released version 0.12 of CUDA-Q, its free open-source software for programming quantum computers. The update lets researchers see the result of every individual simulation run instead of just averages, which helps them study noise between quantum bits. Batching many simulations together on an H100 chip made one test run 18 times faster.

CUDA-Q 0.12 is NVIDIA's latest release of its open-source quantum programming toolkit, and it matters to anyone building quantum hardware or applications on NVIDIA's GPU stack. Batching 1,024 Hamiltonian simulations in one call on an H100 GPU cut runtime by 18x for a silicon spin qubit parameter sweep. Community contributions came from the Unitary Foundation's unitaryHACK hackathon. Competing quantum SDKs gain little from this; the benefit accrues to teams already on NVIDIA hardware.

CUDA-Q 0.12 adds a run/run_async API returning per-shot results (simulation backends only, not hardware) enabling noise correlation analysis and postselection, plus conditional measurements returning Python data classes. The dynamics backend supports generic super-operator equations beyond Lindblad, improved multidiagonal sparse matrix formats with automatic dense/multidiagonal selection, and GPU batching of states, operators, and collapse operators. Batching 1,024 Hamiltonians on an H100 gave an 18x speedup. Python 3.13 support and unitaryHACK contributions (trapped-ion GHZ example, MPS sequential encoding tutorial, kernel unitary extraction API) are included.

NVIDIA Developer Blog →

Liberating Performance with Immutable DataFrames in Free-Threaded Python

This is about making Python programs, especially those dealing with large amounts of data, run much faster. By using new features in Python and a tool called StaticFrame, computers can perform many tasks at once, which means analyzing big datasets or running complex calculations will be quicker and smoother.

For business leaders, leveraging advancements in Python's concurrency with tools like StaticFrame offers significant performance gains in data processing. This can accelerate analytical workflows, improve efficiency for data-intensive operations, and enable more scalable AI/ML solutions by overcoming traditional performance bottlenecks.

This article explores how StaticFrame utilizes Python 3.13t's 'free-threaded' architecture to achieve true thread-based concurrency. By employing immutable DataFrames, it aims to enhance performance for data-intensive tasks, addressing Global Interpreter Lock (GIL) limitations and enabling more efficient parallel processing in Python.

Towards Data Science Blog →

RAPIDS Adds GPU Polars Streaming, a Unified GNN API, and Zero-Code ML Speedups

RAPIDS 25.06 lets Python data scientists process larger-than-VRAM datasets on GPUs via Polars and accelerate scikit-learn SVMs with zero code changes, but CUDA 11 support ends after this release.

RAPIDS is NVIDIA's collection of free Python libraries that run data science on graphics processors instead of ordinary chips, making things faster. Version 25.06 adds a streaming mode to Polars, a popular data-analysis tool, so it can handle datasets too big to fit in a graphics card's memory by splitting the work across partitions and multiple cards. It also speeds up certain machine-learning algorithms called support vector machines with no code changes, and makes graph neural network training scripts work unchanged on one GPU, many GPUs, or many machines.

RAPIDS 25.06 is a routine but consequential release for teams running GPU-accelerated Python analytics. Polars users gain streaming execution that scales from hundreds of gigabytes to terabytes across multiple GPUs, and scikit-learn workflows using support vector machines get GPU speedups without code changes. Teams still on CUDA 11 must plan migration: 25.08 removes CUDA 11 support entirely, so pinning to 25.06 is the only way to stay on it.

RAPIDS 25.06 ships an experimental streaming executor for the Polars GPU engine: data partitioning with a shuffle mechanism for joins and groupbys, multi-GPU orchestration via the Dask distributed scheduler, and fallback to the in-memory executor for unsupported operations. cuGraph-PyG's Unified API integrates WholeGraph feature storage, so one GNN script runs on single-GPU, multi-GPU and multi-node setups via torchrun. cuML adds zero-code-change SVC and SVR, upgrades Random Forest with the Forest Inference Library (some API knobs deprecated in 25.08), and RMM supports Blackwell's hardware decompression engine. Python 3.13 is supported; CUDA 11 is removed in 25.08.

NVIDIA Developer Blog →