Apsi
โ† Community

Apsi 2.6.0 is here: faster everyday code and whole-project Python conversion

Hi everyone! ๐Ÿ‘‹

Apsi 2.6.0 is out. This release focuses on two things: making everyday code faster, and making Python-to-Apsi conversion work on real projects, not just single files.

Faster everyday code

  • range loops, whole-number counters and plain conditions now compile to much tighter code
  • Containers, f-strings and struct constructors take faster paths when Apsi can prove their types
  • GPU matrix products now handle sizes that aren't a multiple of 4 without slowing down

On a Ryzen 5 5500 + RTX 3060 12GB:

Comparison Result
2.6.0 vs 2.4.4, whole benchmark suite (geometric mean) 1.28ร— โ€“ 1.35ร— faster (two runs)
Modern GPT example on the GPU ~12% faster than before the matrix-size fix

Convert a whole Python project

  • Convert one file, a folder, or a whole project with all its connected files together
  • New options: --only, --project, --exclude, and --plan to preview everything first
  • Works on real libraries such as huggingface_hub, datasets, pydantic, fsspec and multiprocess
  • In VS Code: right-click โ†’ Convert to Apsi, then pick the scope
apsi convert my_project --plan    # see what will be converted
apsi convert my_project           # convert it

There's a short video on the home page showing a Python project being converted and run.

Honest numbers

Every result on the Benchmarks page comes with its raw log and the machine it ran on. Your hardware may give different numbers, so please measure your own workload. On my card, PyTorch training ran at 80โ€“86 ยฐC, while Apsi keeps the card steady by adjusting the power limit.

Get started

  1. Download Apsi 2.6.0 for Windows or Linux
  2. Run apsi convert my_project --plan on one of your Python projects
  3. Read What's new in 2.6.0 and the Python guide

How you can help

  • Convert something: try one of your own Python projects and post what happened, whether it worked or not
  • Show your speed: share your benchmark results with your CPU and GPU
  • Bugs: tell me your OS, GPU and the full error message

If you'd like to support Apsi, there's now a Sponsor button that goes to GitHub Sponsors. It's completely optional, and Apsi stays free for everyone. ๐Ÿ’™

Thanks for testing, reporting and building with Apsi. I read every post! ๐Ÿ™

GitHub: https://github.com/ATECTechnologies/apsi

2 0 Report

0 comments

Sign in to comment.