Text Generation
Transformers
PyTorch
English
MAELM
feature-extraction
audio2text
music2text
musicllm
music foundation model
custom_code
Instructions to use UniMus/OpenJMLA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UniMus/OpenJMLA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="UniMus/OpenJMLA", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("UniMus/OpenJMLA", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use UniMus/OpenJMLA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "UniMus/OpenJMLA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "UniMus/OpenJMLA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/UniMus/OpenJMLA
- SGLang
How to use UniMus/OpenJMLA 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 "UniMus/OpenJMLA" \ --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": "UniMus/OpenJMLA", "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 "UniMus/OpenJMLA" \ --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": "UniMus/OpenJMLA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use UniMus/OpenJMLA with Docker Model Runner:
docker model run hf.co/UniMus/OpenJMLA
Commit History
-
Update README.md
acd84ee -
Update README.md
d190fe9 -
Update README.md
6a42acc
-
Update README.md
70c1315 -
Update README.md
57485ab -
Update README.md
a5ff11e -
Update README.md
9251da2 -
Update README.md
7d2c64a -
Update README.md
d33facd -
Update README.md
dba8eb5 -
Update README.md
a91e726 -
Delete 6774978832668559373.wav
898bc09 -
Upload UniMus_logo_0.png
6119702 -
Update README.md
8f5733d -
Update README.md
UniMusb119469
-
Update README.md
sino8bcfe60
-
Update config.json
sino0ab1e96 -
Update config.json
sino896e7f9 -
Update README.md
sino73e56d0 -
Update README.md
sinoc96ae54 -
Update README.md
sinoc458959 -
Update README.md
sinoac615eb -
Upload 6774978832668559373.wav
sino50aa24f
-
Update README.md
sino26f1032 -
Update README.md
sinobb3bb99 -
Update README.md
sino0c08cb0 -
Update README.md
sino9a4a887 -
Update README.md
sinoed14d60 -
Update README.md
sino99f673d -
Update README.md
sino8fb04ef -
Update README.md
sinoced1e40 -
Rename pytorch_model_20000steps.bin to pytorch_model.bin
sinoe9cd07a -
Rename pytorch_model.bin to epoch50.bin.pth
sino9c551a7 -
Upload pytorch_model_20000steps.bin
sinob02d5bb -
Upload README.md
sinod0ec5fd -
Rename epoch_50.bin.pth to pytorch_model.bin
sinoa6aa4e3 -
Rename pytorch_model.bin to epoch_50.bin.pth
sino44abeb7
-
Upload pytorch_model.bin
sino9b3df0a -
Delete pytorch_model.bin
sino95f1ea7
-
Delete Llama-2-7b-hf
sinofa704e9 -
Delete src
sinoa0358f5 -
Update README.md
sinob2222c9 -
Update README.md
sinoa357ba5 -
Update README.md
sino07bc64b -
Update README.md
sino0d1f840 -
Create README.md
sino5642997 -
Update LMdecoder.py
sino5fb0bcb -
Upload 4 files
sinoff4fdee -
Update modeling_maelm.py
sino354c8fa -
Update modeling_maelm.py
sinoa8381e0