Text Generation
Transformers
Safetensors
English
femtoscience_moe
mixture-of-experts
science
chemistry
biology
proteins
dna
galactica
base-model
conversational
custom_code
Instructions to use mokshjain/FemtoScience with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mokshjain/FemtoScience with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mokshjain/FemtoScience", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("mokshjain/FemtoScience", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use mokshjain/FemtoScience with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mokshjain/FemtoScience" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mokshjain/FemtoScience", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mokshjain/FemtoScience
- SGLang
How to use mokshjain/FemtoScience with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "mokshjain/FemtoScience" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mokshjain/FemtoScience", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "mokshjain/FemtoScience" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mokshjain/FemtoScience", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mokshjain/FemtoScience with Docker Model Runner:
docker model run hf.co/mokshjain/FemtoScience
Card: RDKit SMILES validity for all models
Browse files- README.md +8 -8
- checksums.sha256 +1 -1
README.md
CHANGED
|
@@ -156,14 +156,14 @@ code 0.6431 → 0.4640, STEM edu 0.8251 → 0.7411. With document masking, DNA 1
|
|
| 156 |
|
| 157 |
**Scientific probes** (vs Galactica):
|
| 158 |
|
| 159 |
-
| Model | Active | Protein bits ↑ | ProteinGym DMS ρ ↑ | DNA MCC ↑ | SMILES
|
| 160 |
-
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 161 |
-
| Galactica-125M | 125M | 0.0597 | -0.0029 | 0.4395 |
|
| 162 |
-
| Galactica-1.3B | 1,315M | 0.0762 | 0.0202 | 0.4621 | 0.
|
| 163 |
-
| FemtoScience Stage 1 | 229M | 0.2015 | 0.0814 | 0.4543 |
|
| 164 |
-
| FemtoScience Stage 3 | 229M | 0.2260 | 0.1031 | 0.4751 |
|
| 165 |
-
|
| 166 |
-
|
| 167 |
|
| 168 |
## Intended use
|
| 169 |
|
|
|
|
| 156 |
|
| 157 |
**Scientific probes** (vs Galactica):
|
| 158 |
|
| 159 |
+
| Model | Active | Protein bits ↑ | ProteinGym DMS ρ ↑ | DNA MCC ↑ | SMILES valid, tagged ↑ | SMILES valid, plain ↑ | ChemBench ↑ | LAB-Bench ↑ | PubMedQA ↑ | SciQ ↑ |
|
| 160 |
+
|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|
|
| 161 |
+
| Galactica-125M | 125M | 0.0597 | -0.0029 | 0.4395 | 41.25% | 8.75% | 0.2643 | 0.1850 | 0.5350 | 0.5900 |
|
| 162 |
+
| Galactica-1.3B | 1,315M | 0.0762 | 0.0202 | 0.4621 | 35.0% | 7.5% | 0.3240 | 0.2479 | 0.5550 | 0.7450 |
|
| 163 |
+
| FemtoScience Stage 1 | 229M | 0.2015 | 0.0814 | 0.4543 | 6.25% | 33.75% | 0.2812 | 0.2258 | 0.5600 | 0.7000 |
|
| 164 |
+
| FemtoScience Stage 3 | 229M | 0.2260 | 0.1031 | 0.4751 | 1.25% | 22.5% | 0.3094 | 0.2334 | 0.4050 | 0.7000 |
|
| 165 |
+
|
| 166 |
+
SMILES columns are RDKit validity of greedy completions of half-molecules from ChEBI-20, either inside `[START_SMILES]` tags or as plain text after "SMILES:". Galactica was trained with tagged SMILES and wins there; FemtoScience saw almost all of its chemistry as plain-text SMILES in prose and wins on plain prompts. An earlier version of this table reported bracket/ring balance instead (Galactica 0.79/0.84, FemtoScience 0.20/0.23).
|
| 167 |
|
| 168 |
## Intended use
|
| 169 |
|
checksums.sha256
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
0b6c74b824d98afe8c09502c6cfac6022d00a206d08b6622a98d8d5f4c94f32b config.json
|
| 3 |
6dd60f3dd4088466808c9dae6d281b7c37971d5c2c6570514ff540119e20a5d3 configuration_femtoscience.py
|
| 4 |
c9ef57d4b606061c14a908cc16e73da29db74569957aac329ffaae6757f6d50c femtoscience_meta.json
|
|
|
|
| 1 |
+
55a569156c3c2ad5fb9f5cca17546a725d75d1d83fea960124dc8b997d959b3c README.md
|
| 2 |
0b6c74b824d98afe8c09502c6cfac6022d00a206d08b6622a98d8d5f4c94f32b config.json
|
| 3 |
6dd60f3dd4088466808c9dae6d281b7c37971d5c2c6570514ff540119e20a5d3 configuration_femtoscience.py
|
| 4 |
c9ef57d4b606061c14a908cc16e73da29db74569957aac329ffaae6757f6d50c femtoscience_meta.json
|