Instructions to use m-a-p/ChatMusician with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use m-a-p/ChatMusician with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="m-a-p/ChatMusician")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("m-a-p/ChatMusician") model = AutoModelForCausalLM.from_pretrained("m-a-p/ChatMusician", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use m-a-p/ChatMusician with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "m-a-p/ChatMusician" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "m-a-p/ChatMusician", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/m-a-p/ChatMusician
- SGLang
How to use m-a-p/ChatMusician 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 "m-a-p/ChatMusician" \ --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": "m-a-p/ChatMusician", "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 "m-a-p/ChatMusician" \ --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": "m-a-p/ChatMusician", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use m-a-p/ChatMusician with Docker Model Runner:
docker model run hf.co/m-a-p/ChatMusician
Commit History
-
Adding `safetensors` variant of this model (#5)
Verified signature- Adding `safetensors` variant of this model (38d9cde306d7bab33ae84ec0162e92bd74ebb9bd) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>cd80649
-
Update README.md
Verified signature45e1e12
-
Update README.md
Verified signature8de2b76 -
Update README.md
Verified signaturef13b4bc -
Update README.md
Verified signaturee2ea000 -
Update README.md
Verified signature6ea18d3 -
Update README.md
Verified signature827e85b -
Update README.md
Verified signaturefef4fad -
Update README.md
Verified signatured60de11 -
Update README.md
Verified signature875f229 -
Update README.md
Verified signatured603a22 -
Update README.md
Verified signature5ba1103 -
Update README.md
Verified signature6ebafbe -
Update README.md
Verified signature9d5eb41 -
Update README.md
Verified signatured697371 -
Update README.md
Verified signature6687926 -
Update README.md
Verified signature9593ca3 -
Update README.md
Verified signaturea82e3d6 -
Update README.md
Verified signatureb834836 -
Update README.md
Verified signature802e855 -
Update README.md
Verified signaturee2cdddc -
Update README.md
Verified signature11614ad -
Upload chatmusician_demo.png
Verified signaturec699723 -
Update README.md
Verified signature5a1c1d9 -
Update README.md
Verified signature90b9f35 -
Update README.md
Verified signature9afbea3 -
Update README.md
Verified signaturecc9a69b -
Update README.md
Verified signaturecc91ec2 -
Update README.md
Verified signature3db6f38 -
Update README.md
Verified signatureb8be370 -
Update README.md
Verified signaturefcc094a -
Update README.md
Verified signatured55b50f -
Update README.md
Verified signature3cfdf7d -
Upload MusicTheoryBench_result_plt.png
Verified signaturece7410d -
Delete MusicTheoryBench_result_plt.png
Verified signature1caa41c -
Upload MusicTheoryBench_result_plt.png
Verified signature8d43a10 -
Delete MusicTheoryBench_result_plt.png
Verified signatured46047b -
Update README.md
Verified signaturecee3904 -
Update README.md
Verified signature115fe99 -
Update README.md
Verified signature5b269f4 -
Update README.md
Verified signature93271e7 -
Update README.md
Verified signature9806255 -
Update README.md
Verified signature7064647
-
Update README.md
Verified signature0d4fc77 -
Update README.md
Verified signatureb8c2c2e -
Update README.md
Verified signaturee143cea -
Update README.md
Verified signature5cd92a8 -
Upload MusicTheoryBench_result_plt.png
Verified signatured9a159b -
Update README.md
Verified signature90be659 -
Update README.md
Verified signaturea8b376d