Better HN
topnewbestaskshowjobs
Log inSign up

kwazar90

160 karma · joined Apr 26, 2022 (4y ago) · 30 submissions

Creator of Reloadium - Hot reloader for Python https://github.com/reloadware/reloadium
Submissions

1.

MichiAI 530M parameters full-duplex speech LLM with ~80ms latency(ketsuilabs.io ↗)

4 points · by kwazar90 · 2mo ago · discuss

2.

MichiAI: A 530M Full-Duplex Speech LLM with ~75ms Latency Using Flow Matching(ketsuilabs.io ↗)

1 points · by kwazar90 · 9mo ago · discuss

comment 10mo ago · link · parent

IMHO, short text - not really. Longer - depends on the model quality but basically longer it gets it's easier to see the LLM patterns.

4.

Hot Profiling for Python(reloadium.io ↗)

1 points · by kwazar90 · 4y ago · discuss

comment 4y ago · link · parent

From the original function call.

It basically restarts the current frame.

comment 4y ago · link · parent

It's just me working on this project, and yeah I'm not super strong with marketing or business neither english is my first language.

Do you have any suggestions how to describe it better? Is "Edit and continue" more descriptive (I think this is what Microsoft calls it for .net).

comment 4y ago · link · parent

Reloadium executes a module in a sandbox environment until it reaches the modules top most frame location (to prevent getting into a loop or other entrypoint and being stuck) and looks for changes.

For code that should be executed only once you have to add # reloadium: no_reload (blocks of code can be ignored as well, more details here https://reloadium.io/documentation/decorators)

comment 4y ago · link · parent

It does print a message when something can't be hot reloaded. For example changing base classes dynamically is impossible to achive in Python so this is not supported and a full reload is needed.

You can go a long way without fully reloading though in many cases.

comment 4y ago · link · parent

It does update type hints as well!

comment 4y ago · link · parent

Github actions does not support M1 architecture yet so I could not build wheels for it. Support for self hosted runners is coming soon so I will buy an M1 machine and set up a runner myself.

comment 4y ago · link · parent

When re-running current function it passes the original arguments (it does not roll them back if changed in the function body - that will be added in the future).

comment 4y ago · link · parent

I have tried jurigged and I like how lightweight it is. It does not seem to reload changes that relate to other parts of code though. For a given code:

a = 1

b = a + 2

Changing a = 5 will not update b which will still be equal to 3. The same goes to relations between files. Whether it is a flaw or feature it depends on the situation and codebase I guess.

Also it seems like it is not possible to reload currently executing functions (re-entering the function is needed).

comment 4y ago · link · parent

True, the website needs some doing...

comment 4y ago · link · parent

Yes hot reloading also works when not suspended and without using debugger. Although you won't be able to reload the current function (currently executing on the call stack) until you suspend it with a breakpoint.

comment 4y ago · link · parent

How so? I might make this optional if it's misbehaving but so far it's been very useful.

comment 4y ago · link · parent

As long your code does not state that nothing will happen. About the SQL - the only thing it does is rolling back transaction if you make an error during reloading to recover the db state.

comment 4y ago · link · parent

As in whether it tracks IO file operations, to know to rollback a file deletion?

comment 4y ago · link · parent

Interesting, is it already supported?

comment 4y ago · link · parent

If you intruduce a circular dependency (or any Python execution error) it will rollback all already applied actions, highlight the issue and wait for you to fix it. Reloadium reloads modules across the whole project so it is possible.

comment 4y ago · link · parent

What limitations exactly do you have in mind? Reloadium does not cause issues with redefined objects ("is" operator issues)

comment 4y ago · link · parent

Yes it is very difficult, it took me one year and thousands of unit, integration, e2e tests for it to become usable. It is quite stable now although in some situations a full reload still might be needed.

22.

Reloadium – Advanced hot reloading for Python(github.com ↗)

214 points · by kwazar90 · 4y ago · 56 comments