Our inference stack is built using candle in Rust, how hard would it be to integrate?
Launch HN: Outerport (YC S24) – Instant hot-swapping for AI model weights
21–25 of 25 posts
Re: Launch HN: Outerport (YC S24) – Instant hot-swapping for AI model weights
#22Genuine question, whats the difference between your startup and just calling the below code with a different model on a cloud machine, other than some ML/Dev OP's engineer not knowing what they are doing...? model = get_model(\*model_config) state_dict = torch.load(model_path, weights_only=True) new_state_dict = {k.replace('_orig_mod.', ''): v for k, v in state_dict.items()} model.load_state_dict(new_state_dict) mode…
Loading from disk to VRAM can be super slow- so doing this every time you have a new process is wasteful. Instead, if you have a daemon process that keeps multiple model weights in pinned RAM, you can load them much quicker (~1.5 seconds for a 8B model like we show in the demo).
You _could_ also make a single mega router process, but then there are issues like all services needing to agree on dependency versioning. This has been a problem for me in the past (like LAVIS requiring a certain transformer version that was not compatible with some other diffusion libraries)
Re: Launch HN: Outerport (YC S24) – Instant hot-swapping for AI model weights
#23Is this tied to a specific framework like pytorch or an inference server like vLLM? Our inference stack is built using candle in Rust, how hard would it be to integrate?
Re: Launch HN: Outerport (YC S24) – Instant hot-swapping for AI model weights
#24Nice! Will this work for Triton instances ie can I swap the model loaded to the Triton instance? Or am I miss understanding the concept? EDIT: typo
Since we use pinned RAM memory for model loading and manage the cache hierarchy, the sever needs to at least make a call to our daemon. So we'd need to fork the Triton Server. But hopefully it'd only take a few lines of change!
I've actually never used Triton Server myself - curious how you have found it so far if you've used it. How does it compare to other alternatives in your opinion?
Re: Launch HN: Outerport (YC S24) – Instant hot-swapping for AI model weights
#25Yet to go through in detail but this is really powerful. Initiatives such as these are what we need to further democratize DL. Kudos team