Back to directory

ESMF — C++ Inference for ESMC Protein Language Models

A standalone C++ inference engine, built on the GGML tensor library, that runs ESMC protein language models on CPU with no Python, PyTorch or LibTorch at runtime.

ESMF — C++ Inference for ESMC Protein Language Models

ESMF runs ESMC (ESM Cambrian) protein language model variants on CPU using GGML, producing a portable compiled binary that drops into existing C, C++ or Rust pipelines for structural biology and sequence analysis without a Python or PyTorch dependency at runtime.

The goal is a small, auditable, hardware-efficient runner whose outputs match the reference PyTorch implementation, with optional integer quantization for memory-constrained machines. A graph planner computes activations in place in a small reusable buffer to keep peak memory bounded even for long sequences, and built-in 8-bit and 4-bit quantization shrink weight size on disk and in memory.

Correctness is checked by comparing per-layer activations and final logits against the reference ESMC-300M and ESMC-600M models on a fixed set of sequences, and a debug flag dumps layer-0 activation statistics for troubleshooting discrepancies. The project is in beta and is looking for contributors, particularly on numerical correctness and support for larger ESMC variants.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.