
Habitual Pythonist. Experienced Yak shaver. Mastodon: @anentropic@fosstodon.org Bluesky: @anentropic.bsky.social
London, UK
Joined November 2009
- Tweets2.4K
- Following153
- Followers88
- Likes3.3K
I'm going to try actually leaving this time #TwitterX
83
@anentropic@fosstodon.org retweeted
Did you know that the backend of #MetaThreads is built with #Python 3.10?
It's running on Instagram's #Cinder fork that includes a JIT, lazy-loaded modules, pre-compiled static modules, and a bunch of other interesting tweaks against vanilla Python 3.10.
github.com/facebookincubator…
"we asked ChatGPT to provide a joke a thousand times. We applied a predefined list of ten differently worded prompts..."
... with this methodology I think they were lucky to even get 25 distinct jokes, each prompt is going to have one most likely response. Doesn't tell us much
arxiv.org/abs/2306.04563 A fun read. Over 90% of ChatGPT generated jokes were the same 25 Jokes. ChatGPT is also overfitted to a particular joke structure.
51
@anentropic@fosstodon.org retweeted
#Python tip: It is easy to forget that zip() has a useful corner case with only one input iterable:
>>> list(zip('abc'))
[('a',), ('b',), ('c',)]
This is nicer than a list comprehension that builds 1-tuples:
>>> [(x,) for x in 'abc']
[('a',), ('b',), ('c',)]
"Speakers positioned close to your ears deliver rich Spatial Audio while keeping you aware of your surroundings." ...and annoying anyone else in the room
but there is no one else in the room, it's clearly a device only usable when alone
2
35
@anentropic@fosstodon.org retweeted
Interesting, I'd missed that Python gets a whole new generic syntax in 3.12 via the `type` statement. Looks very TypeScript-y.
I think Ruff should be able to do automatic upgrades to this new syntax.
All of the innovative edge compute services using SQLite... how do you cope with db migrations in absence of transactional DDL? seems like a big mess waiting to happen (happening to me RN in low-stakes side-project)
1
48
will probably have to give this lib a go on a future project: jcristharif.com/msgspec/benc…
(e.g. vs Pydantic)
53
@anentropic@fosstodon.org retweeted
llm, ttok and strip-tags—CLI tools for working with ChatGPT and other LLMs
I've been putting together a fun suite of CLI tools for working with the OpenAI APIs - here's what I've got so far:
simonwillison.net/2023/May/1…
"It shows an approximate improvement of x10 over Node and x6 over Bun"
Here is `server-reason-react`, the OCaml implementation of React I have been working on:
sancho.dev/blog/server-side-…
41
@anentropic@fosstodon.org retweeted
ReLLM on GitHub: Exact structure out of any language model.
Works on any huggingface-transformers model, and more to come soon. Run the examples locally on GPT2. Pip install.
github.com/r2d4/rellm
@anentropic@fosstodon.org retweeted
AI interfaces should go beyond a chatbot: generative UI is next.
Here's a demo of a library for LLMs that I've been working on. It prompts models with a vocabulary of rich components described using natural language. Presented at @causalislands last week.
I had similar idea after playing with Langchain a bit, but they implemented & automated it!
"DSP can compile your program into a much cheaper version in which LM calls are transparently replaced with calls to a tiny LM created by the DSP runtime."
github.com/stanfordnlp/dsp
@anentropic@fosstodon.org retweeted
pgvector is now available on Amazon RDS 🔥
Power a personalized customer experience with #GenerativeAI. ☁️👩💻💡
With open-source extension pgvector, simply search & store embeddings on #AmazonRDS for PostgreSQL—efficiently querying large datasets to help build a better user experience. #AWS
👉 go.aws/422ZtBl
AWS - Amazon RDS for PostgreSQL
@anentropic@fosstodon.org retweeted
Leaked Internal Google Document Claims Open Source AI Will Outcompete Google and OpenAI: semianalysis.com/p/google-we…
@anentropic@fosstodon.org retweeted
Jsonformer supports a subset of JSON Schema, including number, boolean, string, array, and object types. It's built on top of the HuggingFace transformers library, making it compatible with any model that supports the HuggingFace interface.
Try it — github.com/1rgs/jsonformer





![# Non-generic type alias... type IntOrStr = int | str # Generic type alias... type ListOrSet[T] = list[T] | set[T] # Generic function... def func[T](a: T, b: T) -> T: ...](https://pbs.twimg.com/media/FxtczoqX0AAqCfr.jpg?name=small&format=webp)







