Instructions to use BreadAi/MuseCan with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BreadAi/MuseCan with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BreadAi/MuseCan")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BreadAi/MuseCan") model = AutoModelForCausalLM.from_pretrained("BreadAi/MuseCan", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BreadAi/MuseCan with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BreadAi/MuseCan" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BreadAi/MuseCan", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BreadAi/MuseCan
- SGLang
How to use BreadAi/MuseCan 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/MuseCan" \ --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/MuseCan", "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/MuseCan" \ --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/MuseCan", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BreadAi/MuseCan with Docker Model Runner:
docker model run hf.co/BreadAi/MuseCan
Commit History
-
Adding Evaluation Results
This is an automated PR created with https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr The purpose of this PR is to add evaluation results from the Open LLM Leaderboard to your model card. If you encounter any issues, please report them to https://huggingface.co/spaces/Weyaxi/open-llm-leaderboard-results-pr/discussions7782ab1
-
Update README.md
f441866 -
Update README.md
31dfed0
-
Upload tokenizer.json
016bc57 -
Rename aitextgen.tokenizer.json to tokenizer.json
c9b5d6f -
Delete tokenizer.json
6bd34b4 -
Upload aitextgen.tokenizer.json
0c0dca1
-
Upload 3 files
f10cb7d
-
Upload 3 files
243b1d9 -
Upload 3 files
1cb23a2 -
Upload 3 files
d027513 -
Upload 3 files
749e738
-
Upload 3 files
a302782 -
Upload 3 files
7be9f88
-
Upload 3 files
68debcd
-
Create README.md
cb12400
-
Rename aitextgen.tokenizer.json to tokenizer.json
84e5265 -
Upload 4 files
722577e -
initial commit
matthew nullaa2dd61