Live data from Hacker News

What's up in the Python community? – April 2023

bitecode.substack.com

31–40 of 63 posts

Re: What's up in the Python community? – April 2023

#31
post #18

Earlier quoted context omitted.

That's absolutely not what they said. Let's keep hn better than that.

It's obviously tongue-in-cheek, but it's also not not what they said.

It is not what they said. That was an example of complicated work with dates, which easily hits the level of "more complicated than you need". Before that, and before the cut in the quote was an obvious use case easily explained. I don't know why you want to go down this route but I won't engage further.

Re: What's up in the Python community? – April 2023

#32
post #9
post #4

> Python 3.12 improves the language perf by 4% A bit shy of the original target of 50% improvement per release, totaling 5x speedup across four releases. Hope it catches up in the next couple releases.

Python 3.12 also does not exist, because it has not been finished and released yet. So there's time.

"my wife is pregnant but my kid doesn't exist yet"

hmmm

Re: What's up in the Python community? – April 2023

#33
post #14

I just tried some pre-trained models to classify images, using a CPU, it takes about 10s to 15s per image. I did not know it was so inefficient.

Would you share some details? This indeed sounds very slow, so I suppose there should be some easy ways to speed things up. Just to give you an idea of what's possible: A couple years ago I worked on live object recognition & classification (using Python and Tensorflow) and got to about ~30 FPS on an Nvidia Jetson Nano (i.e. using the GPU) and still ~12 FPS on an average laptop (using only the CPU).

https://replicate.com/pharmapsychotic/clip-interrogator

using:

cfg.apply_low_vram_defaults()

interrogate_fast()

I tried lighter models like vit32/laion400 and others etc all are very very slow to load or use (model list: https://github.com/mlfoundations/open_clip)

I'm desperately looking for something more modest and light.

Re: What's up in the Python community? – April 2023

#34
>Most new Python projects are still about AI

Are there any that allow a user to run an LLM with GPT-3-ish capabilities on a single pc w/ Where "reasonable" is something like no more than a few minutes to get the output. A little longer wouldn't be too bad either since you could script something that submits prompts automatically and let things run in the background or something.

Trying to search for such a thing-- if it exists-- is nearly impossible right now with so much being done & talked about. Some content talks about running something on only 16GB GPU ram (!!!) which is far beyond many discrete cards. a 3080 has up to 16, some only 8 (I think 16 is the max?) and fairly decent entry level+ cards top out at 4GB.

Any options out there?

Re: What's up in the Python community? – April 2023

#35
post #23

Earlier quoted context omitted.

Python has exploded in popularity over the past ~7 years because of AI. Python’s ever increasingly relevance is directly tied to AI.

And Flask, and FastAPI, and pandas, and pola.rs, and numba, and as glue code, and.... "AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it i̶s̶n̶'̶t̶ ̶a̶ ̶t̶y̶p̶e̶d̶ is a dynamically language, where sometimes placeholders like pandas `object` result in unexpected behavior, but it sure is simple to write something quick.

> "AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it isn't a typed language . . . .

Having used it for over 15 years, I assure you Python is a strongly typed language.

Re: What's up in the Python community? – April 2023

#36

>Most new Python projects are still about AI Are there any that allow a user to run an LLM with GPT-3-ish capabilities on a single pc w/ Where "reasonable" is something like no more than a few minutes to get the output. A little longer wouldn't be too bad either since you could script something that submits prompts automatically and let things run in the background or something. Trying to search for such a thing-- if…

If you're really alright with a few minutes delay, you might be able to run =<13b param. models on CPU

Re: What's up in the Python community? – April 2023

#37
post #23

Earlier quoted context omitted.

And Flask, and FastAPI, and pandas, and pola.rs, and numba, and as glue code, and.... "AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it i̶s̶n̶'̶t̶ ̶a̶ ̶t̶y̶p̶e̶d̶ is a dynamically language, where sometimes placeholders like pandas `object` result in unexpected behavior, but it sure is simple to write something quick.

> "AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it isn't a typed language . . . . Having used it for over 15 years, I assure you Python is a strongly typed language.

Fair, I was wrong. It's a dynamically typed language. I meant to say it is not a statically typed language.

Re: What's up in the Python community? – April 2023

#38

Earlier quoted context omitted.

So weird - you really think AI/ML is a flash in the pan when it comes to Python? You realize pytorch, tensorflow, pandas, numpy, scikit-learn are all approaching 10 years on pypi?

Yeah all the stuff I was seeing seemed to be variations and light wrappers around openai APIs and such. We don't need a million versions of those things, one or two clear 'winners' should emerge. You can see them here, expand it to 50 per page and start browsing down after the usual suspects: https://awesomepython.org/

I'm sorry but I think you don't know what you're looking at - of the NN things in the top 50 there I see 4 such wrappers. The remainder are the NN frameworks and various perf motivated implementations.

Also I don't know how this list is built but it seems to be literally measuring current popular things - so by definition no matter when i visit this list whatever is it at the top will probably wane in popularity shortly after I've visited.

Re: What's up in the Python community? – April 2023

#39
While the hyperbole around AI might calm down a bit, the broader 'data science' domain is unlikely to diminish in importance and may generate new hypes. And in the short to medium term Python will certaintly play a core role in these developmemts.

Yet what I am missing in the news is some hint of where Python is going longer term. What will 4.0 look like? Which of the know limitations will be addressed? Will it ever be performant on a standalone basis? Will it ever be native on mobile? Etc.

Post reply on HN