Better HN
topnewbestaskshowjobs
Log inSign up

zcbenz

686 karma · joined Feb 27, 2014 (12y ago) · 77 submissions

https://zcbenz.com
Submissions

comment 9mo ago · link · parent

It is a bug in MLX that has been fixed a few days ago: https://github.com/ml-explore/mlx/pull/3083

comment 1y ago · link · parent

In the absence of hardware unified memory, CUDA will automatically copy data between CPU/GPU when there are page faults.

comment 1y ago · link · parent

Most features are already supported on x86 CPUs, you can pip install mlx on Linux , and you can even use it on Windows (no official binary release yet but it is building and tests are passing).

comment 1y ago · link · parent

For learning internals of ML frameworks I recommend reading the source code of MLX: https://github.com/ml-explore/mlx .

It is a modern and clean codebase without legacies, and I could understand most things without seeking external articles.

comment 2y ago · link · parent

You can use any serialization that supports numbers, in the repo I used BSER (a binary format of JSON), you can even use raw JSON but it would be very inefficient for float numbers though.

6.

Show HN: You need a few lines of JS, not a vector database(github.com ↗)

5 points · by zcbenz · 2y ago · 3 comments

7.

Show HN: Chrohime – cross-platform C library wrapping Chromium's native UI code(github.com ↗)

2 points · by zcbenz · 2y ago · discuss

comment 2y ago · link · parent

No it is not normal, I only tested x64/arm64 macs, I will try on linux.

comment 2y ago · link · parent

That is sad, the name sisi comes from the sisi empress: https://en.m.wikipedia.org/wiki/Empress_Elisabeth_of_Austria

10.

Show HN: Sisi – Semantic Image Search CLI tool, locally without third party APIs(github.com ↗)

128 points · by zcbenz · 2y ago · 41 comments

11.

V8 is damn fast, faster than C++ when it comes to numerics(github.com ↗)

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

12.

V8 is damn fast, faster than C++ when it comes to numerics(twitter.com ↗)

8 points · by zcbenz · 2y ago · 1 comment

13.

Show HN: Train a language model from scratch with JavaScript(github.com ↗)

1 points · by zcbenz · 2y ago · discuss

comment 2y ago · link · parent

A few months ago I ported ~15k lines of python code (10k are tests) to typescript, using GPT4. It cost me ~$70.

The python project is https://github.com/ml-explore/mlx and the converted project is https://github.com/frost-beta/node-mlx

I wrote a long prompt: https://github.com/frost-beta/node-mlx/blob/main/tests/promp...

The first result was almost always bad, but after manually modifying the assistant's answer, following generation usually went much better.

15.

Show HN: node-mlx – Machine learning framework for Node.js(github.com ↗)

2 points · by zcbenz · 2y ago · discuss

16.

JavaScript's garbage collector is not very ready for machine learning(github.com ↗)

9 points · by zcbenz · 2y ago · 2 comments

17.

Show HN: Inference Llama2 with High-Level C++(github.com ↗)

1 points · by zcbenz · 2y ago · discuss

comment 2y ago · link · parent

I wrote a Node.js module that implemented similar feature years ago. https://github.com/atom-archive/node-runas (An updated fork can be found at https://www.npmjs.com/package/runas-redux)

comment 3y ago · link · parent

Shameless to insert my app here, also open source and provides quick access from menu bar.

https://chie.app/posts/minimalist-approach-to-using-chatgpt/

comment 3y ago · link · parent

I would argue it is not a large part a webview. The webview related code is 900 lines vs the whole project 10k lines.

comment 3y ago · link · parent

I actually asked ChatGPT what chie might mean in other languages, for multiple times, but it did not tell me this :(

22.

Show HN: Chie – a cross-platform, native, and extensible desktop client for LLMs(chie.app ↗)

67 points · by zcbenz · 3y ago · 23 comments

comment 3y ago · link · parent

Suppose one is writing a desktop app doing searches of embeddings, is there a lightweight vector database that runs on all major desktop platforms? I'm aware of redis and sqlite-vss, but none runs natively on Windows.

comment 3y ago · link · parent

Adding fields to context will break ABI compatibility.

To work around the problem, some libraries add padding fields, and some require passing the size of struct to determine ABI version.

comment 3y ago · link · parent

Will you provide APIs for this service? I'm writing an extensive desktop app for all ChatGPT alike services, and this service is definitely a thing I want to include.

comment 3y ago · link · parent

Since several years ago I was starting to have health issues that if I sat still for too long my eyes/arms/legs/waist would feel pain, sometimes fiercely. So I set a timer to remind me to stop staring at the monitor and stand up to do some light exercise, at first the timer was 40 minutes and in recent years it became 20 minutes as my body wears.

So now my work is interrupted every 20 minutes, at first the timer was annoying but after several months I got used to it completely and I don’t think it affects my productivity. And actually I wish I could do it from the begining so I wouldn’t have the health issues at all.

However my interruption is short and during it I was uaually just thinking about my work while stretching my body, so it is no compare to hard context switches like being dragged to a conversation.

comment 3y ago · link · parent

When I was teen I lent some high value items in online game, and of course they never got back.

I’m still thankful that I learnt the lesson online instead of in real life.

comment 3y ago · link · parent

I have no relationship with Apple, but from my experience, the usual way big corp contributes to open source is to have their engineers sending patches, instead of sponsoring money/hardware directly.

For example Apple sent patches to some open source projects to add support for Apple Silicon: https://twitter.com/markvillacampa/status/127520044676491264...

comment 4y ago · link · parent

From my memory GNOME 3 and Unity were created because there was a trend to make all interfaces both desktop and mobile friendly, Ubuntu tried to ship a phone using Unity, and GNOME 3 was advertised for its tablet friendly interface.

For Windows world there was Metro UI of Windows 8, Apple insisted on using different UIs for desktop and mobile and was laughed at.

30.

China uses Covid health code to restrict movement of financial scandal victims(scmp.com ↗)

4 points · by zcbenz · 4y ago · discuss

123