Image-Text-to-Text
Transformers
PyTorch
English
molmo
text-generation
multimodal
Mixture of Experts
olmo
olmoe
molmoe
custom_code
Instructions to use allenai/MolmoE-1B-0924 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/MolmoE-1B-0924 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="allenai/MolmoE-1B-0924", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("allenai/MolmoE-1B-0924", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use allenai/MolmoE-1B-0924 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "allenai/MolmoE-1B-0924" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/MolmoE-1B-0924", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/allenai/MolmoE-1B-0924
- SGLang
How to use allenai/MolmoE-1B-0924 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 "allenai/MolmoE-1B-0924" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/MolmoE-1B-0924", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "allenai/MolmoE-1B-0924" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "allenai/MolmoE-1B-0924", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use allenai/MolmoE-1B-0924 with Docker Model Runner:
docker model run hf.co/allenai/MolmoE-1B-0924
Issues with Quick Start in Google Collab
1
#28 opened 10 months ago
by
Maylaneg
add AIBOM
#27 opened 12 months ago
by
RiccardoDav
Possible bug in modeling_molmoe.py
#26 opened about 1 year ago
by
EthanLeoLYX
Can Molmo annotate bounding box?
#24 opened over 1 year ago
by
TikaToka
Error processing images: 'MolmoProcessor' object is not callable
😎 1
5
#23 opened over 1 year ago
by
PadmajaVaishnavi
Wasn't this model supposed to take around 3-4 GB given it's only 1B parameters?
3
#21 opened over 1 year ago
by
ahsannawazch
Multi-turn Chat History Management
#19 opened over 1 year ago
by
Jaykumaran17
What are the library dependencies?
🔥 1
1
#18 opened over 1 year ago
by
entchronology
vllm support
3
#16 opened over 1 year ago
by
gertrud
Does the model support Float16 and Bfloat16 precision?
4
#12 opened over 1 year ago
by
AoZhang
Model OS Error
3
#10 opened over 1 year ago
by
bshobhit67
is peft_model_id present for this model?
👍 1
#9 opened over 1 year ago
by
aniket1997
Examples of fine-tuning code?
❤️ 1
5
#7 opened over 1 year ago
by
gertrud
VRAM - how to run
2
#6 opened over 1 year ago
by
SinanAkkoyun
RTX 3090 24GB working with extra env var
❤️ 3
5
#4 opened over 1 year ago
by
cktlco
How to run it on a mobile device?
👀 1
3
#1 opened over 1 year ago
by
KoiSikhaDo