Image-Text-to-Text
Transformers
Safetensors
PyTorch
English
muse_spark
facebook
meta
muse
muse-spark
conversational
Eval Results
Instructions to use meta-models/Muse-Spark-Open-816B-A42B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use meta-models/Muse-Spark-Open-816B-A42B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="meta-models/Muse-Spark-Open-816B-A42B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("meta-models/Muse-Spark-Open-816B-A42B") model = AutoModelForMultimodalLM.from_pretrained("meta-models/Muse-Spark-Open-816B-A42B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use meta-models/Muse-Spark-Open-816B-A42B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meta-models/Muse-Spark-Open-816B-A42B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meta-models/Muse-Spark-Open-816B-A42B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/meta-models/Muse-Spark-Open-816B-A42B
- SGLang
How to use meta-models/Muse-Spark-Open-816B-A42B 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 "meta-models/Muse-Spark-Open-816B-A42B" \ --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": "meta-models/Muse-Spark-Open-816B-A42B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "meta-models/Muse-Spark-Open-816B-A42B" \ --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": "meta-models/Muse-Spark-Open-816B-A42B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use meta-models/Muse-Spark-Open-816B-A42B with Docker Model Runner:
docker model run hf.co/meta-models/Muse-Spark-Open-816B-A42B
Nerfing?
2
#25 opened 8 days ago
by
CoderX1997
Releasing Massive Open-Weight Models REALLY Matters
👍 5
5
#24 opened 8 days ago
by
nono2221
What is the point of this model weights?
👍 2
12
#23 opened 9 days ago
by
rekillkos
Good Model for World Knowledge
1
#21 opened 10 days ago
by
nono2221
Add evaluation results
#20 opened 10 days ago
by
SaylorTwift
Le Bûcher de Bohemian Grove: Meta’s 816B MoE Abattoir
🚀 1
1
#19 opened 10 days ago
by
AdrienneNoctis
Naif
2
#17 opened 11 days ago
by
alnaif2030
Training pipeline information
👍 2
#16 opened 11 days ago
by
Gattouz0
Feedback for Meta
😔🤗 10
4
#15 opened 11 days ago
by
CurbStomper
Models for the Community
👀👍 6
#14 opened 11 days ago
by
Duonglv
Giving a Muse Spark Open agent something to do
#13 opened 11 days ago
by
musedin
How to run?
👀 5
#11 opened 11 days ago
by
GCBQDevTeam