mgorkemuz commited on
Commit
c77cd59
·
verified ·
1 Parent(s): 5fe8cc0

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +4 -1
  2. __pycache__/app.cpython-310.pyc +0 -0
  3. app.py +0 -1
README.md CHANGED
@@ -22,7 +22,10 @@ FastAPI service that serves the MiPLM ESM-2 8M variants as a small REST API.
22
  | POST | `/embed` | `{sequence, model}` | mean-pooled last-layer embedding |
23
  | POST | `/mutation` | `{sequence, model}` | wildtype-marginal Δlog-likelihood `[L, 20]` |
24
 
25
- `model` is one of `esm2`, `miplm-ce`, `miplm-blosum`. Sequences must be `[A-Za-z]+` and 1024 residues.
 
 
 
26
 
27
  ## Example
28
 
 
22
  | POST | `/embed` | `{sequence, model}` | mean-pooled last-layer embedding |
23
  | POST | `/mutation` | `{sequence, model}` | wildtype-marginal Δlog-likelihood `[L, 20]` |
24
 
25
+ `model` is one of `miplm-ce` (the cross-entropy 8M variant we trained, surfaced in the
26
+ demo as the "ESM-2" baseline) or `miplm-blosum` (BLOSUM soft-label 8M variant, surfaced
27
+ as "MiPLM"). The MSA variant is not trained yet. Sequences must be `[A-Za-z]+` and
28
+ ≤ 1024 residues.
29
 
30
  ## Example
31
 
__pycache__/app.cpython-310.pyc ADDED
Binary file (6.04 kB). View file
 
app.py CHANGED
@@ -21,7 +21,6 @@ from transformers import EsmForMaskedLM, EsmTokenizer
21
 
22
 
23
  MODEL_REGISTRY: Dict[str, str] = {
24
- "esm2": "facebook/esm2_t6_8M_UR50D",
25
  "miplm-ce": "HUBioDataLab/esm2-8m-ce",
26
  "miplm-blosum": "HUBioDataLab/esm2-8m-softce",
27
  }
 
21
 
22
 
23
  MODEL_REGISTRY: Dict[str, str] = {
 
24
  "miplm-ce": "HUBioDataLab/esm2-8m-ce",
25
  "miplm-blosum": "HUBioDataLab/esm2-8m-softce",
26
  }