389 karma · joined Mar 22, 2022 (4y ago) · 89 submissions
comment 4y ago · link · parent
This is a fantastic insight into journalists. They need to fit their story into a narrative. If you match their stereotype, then they'll spin whatever tale they can imagine to convince themselves that it's really true. The level of self-deception that's needed is difficult to comprehend for me.
comment 4y ago · link · parent
def summ(i, v): return i + v
x = jax.lax.fori_loop(0, 100, summ, 5)
A for loop in TinyGrad or PyTorch looks like regular Python: x = 5
for i in range(0, 100):
x += 1
By the way, PyTorch also has JIT.comment 4y ago · link · parent
Wonder if anyone's turned Instagram's version of Blurhash into a library?
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
- Multiple formats were compared
Yes, but not a zero-copy or efficient format, like flatbuffer. It was mentioned as one of the highlights of postgresML:
> PostgresML does one in-memory copy of features from Postgres
> - Duckdb is not a production ready service
What issues did you have with duckdb? Could use some other in-memory store like Plasma if you don't like duckdb.
> - Pandas isn't used
that was responding to the point in the post:
> Since Python often uses Pandas to load and preprocess data, it is notably more memory hungry. Before even passing the data into XGBoost, we were already at 8GB RSS (resident set size); during actual fitting, memory utilization went to almost 12GB.
> You seem to be trolling.
By criticizing the blog post?
comment 4y ago · link · parent
- replace json (storing data as strings? really?) with a binary format like protobuf, or better yet parquet
- replace redis with duckdb for zero-copy reads
- replace pandas with polars for faster transformations
- use asynchronous, modern web framework for microservices like fastAPI
- Tune xgboost CPU resource usage with semaphores
comment 4y ago · link · parent
comment 4y ago · link · parent
> You tried to install “pytorch”. The package named for PyTorch is “torch”