LASErMPNN browser inference weights
WebGPU browser inference weights for computational protein design
2 min readupdated
The repository contains inference exports for the LASErMPNN model (including a checkpoint with a pre-trained SPICE ligand encoder) formatted for a WebGPU runtime. The model is designed for computational protein design and sequence or side-chain prediction, optimized to run directly in the browser. Weights are available in three precision variants: FP32 (base quality), FP16, and quantized INT8. This tool will be useful for bioinformatics researchers and developers building web applications for molecular modeling.
Key features
- Support for WebGPU inference in browser applications using the dedicated
lasermpnn-webgpuruntime. - Availability of three precision options: FP32, FP16, and experimental INT8 to lower memory requirements.
- Presence of manifest files containing precise data types, tensor shapes, and SHA256 checksums.
- Retention of the original MIT license and high-fidelity reproduction of FP32 baseline results.
What you can do
- Integrate the weights into web applications for fast, in-browser protein sequence prediction.
- Test FP16 and INT8 quantized versions to evaluate performance on client devices.
- Use the manifests and shard files to configure a custom
baseUrlin a compatible WebGPU runtime.
Example
An example of configuring the path to the weights in the WebGPU runtime by specifying the repository base URL:
# Пример указания пути к весам для FP32, FP16 или INT8 прецизионности
baseUrl = "[https://huggingface.co/ramithuh/lasermpnn-webgpu/resolve/main/fp32](https://huggingface.co/ramithuh/lasermpnn-webgpu/resolve/main/fp32)"Read more
DetailsPrecision and quantization: FP32 serves as the baseline quality standard; for FP16, matrices are rounded to binary16 while geometry and norms are kept in FP32; INT8 uses row-wise symmetric quantization.
CPU tests (115 residues, 4jnj-1_prot.pdb) show an AA-logit relative error (relRMS) of 6.04605e-4 for FP16 and 3.45714e-2 for INT8.
Input data must contain the required ligand protonation state; the model does not add hydrogens automatically.
The weights are distributed under the MIT license.










Comments