kiln
A JavaScript library that reads original model weights and runs inference with WebGPU in the browser.
What does it do?
Developers can host original model files on Hugging Face Hub or their own server and load them in the browser. Supported files include safetensors, pytorch_model.bin, and GGUF. They can run chat with a pipeline API similar to transformers.js or stream responses with the Kiln API. It uses WebGPU kernels for different model families, and the repository description says the range of supported model architectures is limited.
Key features
- Run language, vision, and speech models with WebGPU in the browser
- Read original weights from Hugging Face Hub or a self-hosted server
- Use safetensors, pytorch_model.bin, and GGUF files
- Use a transformers.js-style pipeline API and stream responses