Better HN
topnewbestaskshowjobs
Log inSign up

urcyanide

69 karma · joined Oct 2, 2021 (5y ago) · 19 submissions

Submissions

1.

Why the code agents should run inside the containers(envd.tensorchord.ai ↗)

2 points · by urcyanide · 11mo ago · discuss

comment 1y ago · link · parent

Rewriting it in Rust not only brings high performance, but also adopts more feature requests from the community.

3.

Rewrite the pre-commit with features requested from the community(github.com ↗)

2 points · by urcyanide · 1y ago · 1 comment

4.

Earth Observability with the Help of Vectors(blog.vectorchord.ai ↗)

1 points · by urcyanide · 1y ago · discuss

comment 2y ago · link · parent

Thanks for pointing out. I have updated the post. I use the opposite shift since I store the binary in u64 with a different endian from the C++ version. Sorry for the confusion, my bad.

comment 2y ago · link · parent

Sorry for the confusing example. The bitwise one is correct since I store the binary in u64 with a different endian from the C++ version. (this happens because the C++ version is using a numpy script to do the preprocessing) My bad, I should explain it in a better way. Will update the post.

comment 2y ago · link · parent

Yes, i&32 is more readable.

comment 2y ago · link · parent

Not really, i \in (0..dim).step_by(32), shift \in {0, 32}, but for `i % 32` it's 0..32

comment 2y ago · link · parent

The end2end QPS is about 3x of the 1st Rust version on both SIFT & GIST datasets.

comment 2y ago · link · parent

I also see the profiling shows that the "iter::next" takes a large percentage in the flamegraph. Are they the same reason?

comment 2y ago · link · parent

Thanks for pointing out, this can be optimized by the compiler when enabling opt-level=3

comment 2y ago · link · parent

It has the same QPS as the C++ version for GIST dataset. While Rust has more SIMD, C++ has const generic. I guess there is still some space for future improvement.

13.

Lessons learned from profiling an algorithm in Rust(blog.mapotofu.org ↗)

155 points · by urcyanide · 2y ago · 38 comments

comment 3y ago · link · parent

Some potential issues about Python multiprocessing https://blog.mapotofu.org/blogs/python-multiprocessing/. COW is quite tricky. BTW, most of the related official Python docs doesn’t mention the usage under ‘spawn’.

comment 4y ago · link · parent

If you are trying to compare the performance as a ML service, maybe you should try to compare it with other ML model serving frameworks like https://github.com/mosecorg/mosec or https://github.com/bentoml/BentoML. Flask/FastAPI are not built for ML services.

16.

Python Machine Learning Service Can Run Way More Faster(github.com ↗)

1 points · by urcyanide · 4y ago · discuss

17.

Bridging the gap between infra and machine learning: start from envd(envd.tensorchord.ai ↗)

1 points · by urcyanide · 4y ago · discuss

comment 4y ago · link · parent

Recently, I found another tool built for machine learning environment: https://github.com/tensorchord/envd. It integrates with buildkit and can share the config like Python functions cross the team. This can reduce a lot complexity for data scientists.

19.

Show HN: Mosec makes the machine learning model serving flexible and efficient(github.com ↗)

4 points · by urcyanide · 5y ago · 1 comment