Instructions to use BreadAi/MusePy-1-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BreadAi/MusePy-1-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BreadAi/MusePy-1-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BreadAi/MusePy-1-1") model = AutoModelForCausalLM.from_pretrained("BreadAi/MusePy-1-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BreadAi/MusePy-1-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BreadAi/MusePy-1-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BreadAi/MusePy-1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BreadAi/MusePy-1-1
- SGLang
How to use BreadAi/MusePy-1-1 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 "BreadAi/MusePy-1-1" \ --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": "BreadAi/MusePy-1-1", "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 "BreadAi/MusePy-1-1" \ --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": "BreadAi/MusePy-1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BreadAi/MusePy-1-1 with Docker Model Runner:
docker model run hf.co/BreadAi/MusePy-1-1
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.cb9ca43
-
Update README.md
7cd77a5 -
Update README.md
0c6f27b -
Upload 2 files
abdfe4d -
Upload pytorch_model.bin
41f9a5a -
Upload pytorch_model.bin
a741436
-
Update README.md
f30b420 -
Update README.md
1e1ed88 -
Update README.md
bebaacd -
Upload pytorch_model.bin
0729271 -
Upload pytorch_model.bin
53b2b98 -
Update README.md
ff8e202 -
Update README.md
b54f841 -
Update README.md
cb610cb -
Upload pytorch_model.bin
0c391f6 -
Upload pytorch_model.bin
a616e5c
-
Upload pytorch_model.bin
f0fcb09 -
Upload pytorch_model.bin
d517dda -
Update config.json
36f8922 -
Update config.json
33e805d -
Update config.json
99c737b -
Update README.md
ee81e0a -
Upload 2 files
4fc552f
-
Upload 2 files
456d52e -
Upload 2 files
dbaa7ca -
Upload pytorch_model.bin
2c89eda -
Upload 2 files
84b4817 -
Upload tokenizer.json
47c3a62 -
Upload tokenizer.json
985e8a0 -
Upload tokenizer.json
76d94b6 -
Rename aitextgen.tokenizer.json to tokenizer.json
fe699b5 -
Delete tokenizer.json
55c64d4 -
Upload 3 files
ffec5a6
-
Upload 2 files
c0dd934 -
Upload 2 files
cd03e0c
-
Upload 2 files
a615767 -
Upload 2 files
345e649 -
Upload 3 files
72bf550 -
Upload 3 files
e3c5d14 -
Upload 2 files
065b7fc -
Upload tokenizer.json
d1c0d7c -
Delete tokenizer_config.json
69e2590 -
Delete special_tokens_map.json
48f0766 -
Upload 2 files
2b123ae -
Upload 3 files
d0c4cc6 -
Upload 2 files
d0fdba1
-
Update README.md
ad5603a -
Create README.md
d86ee15 -
Rename aitextgen.tokenizer.json to tokenizer.json
5f07f62 -
Delete tokenizer.json
b34ba51