PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Beyond Self-Attention: How a Small Language Model Predicts the Next Token

A deep dive into the internals of a small transformer model to learn how it turns self-attention calculations into accurate predictions for the next token.

https://shyam.blog/posts/beyond-self-attention
Everything You Can Do with Python's textwrap Module

Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.

https://martinheinz.dev/blog/108
👍1
Not just NVIDIA: GPU programming that runs everywhere

If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.

https://pythonspeed.com/articles/gpu-without-cuda/
👍1
Engineering Practices for LLM Application Development

LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applicat...

https://martinfowler.com/articles/engineering-practices-llm.html
Adopt-ruff: find uncobfigured rules easily

Adopt ruff faster into your existing repo: find the easiest rules to start with

https://github.com/ScDor/adopt-ruff