Instructions to use breadlicker45/MusePy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use breadlicker45/MusePy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="breadlicker45/MusePy")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("breadlicker45/MusePy") model = AutoModelForMultimodalLM.from_pretrained("breadlicker45/MusePy") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use breadlicker45/MusePy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "breadlicker45/MusePy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "breadlicker45/MusePy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/breadlicker45/MusePy
- SGLang
How to use breadlicker45/MusePy 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 "breadlicker45/MusePy" \ --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": "breadlicker45/MusePy", "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 "breadlicker45/MusePy" \ --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": "breadlicker45/MusePy", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use breadlicker45/MusePy with Docker Model Runner:
docker model run hf.co/breadlicker45/MusePy
Commit ·
680e007
1
Parent(s): f34c08a
Upload 4 files
Browse files- config.json +2 -5
- special_tokens_map.json +2 -8
- tokenizer.json +0 -0
- tokenizer_config.json +6 -3
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "EleutherAI/pythia-19m",
|
| 3 |
"architectures": [
|
| 4 |
"GPTNeoXForCausalLM"
|
| 5 |
],
|
|
@@ -10,7 +9,6 @@
|
|
| 10 |
"initializer_range": 0.02,
|
| 11 |
"intermediate_size": 2048,
|
| 12 |
"layer_norm_eps": 1e-05,
|
| 13 |
-
"line_by_line": true,
|
| 14 |
"max_position_embeddings": 2048,
|
| 15 |
"model_type": "gpt_neox",
|
| 16 |
"num_attention_heads": 8,
|
|
@@ -18,9 +16,8 @@
|
|
| 18 |
"rotary_emb_base": 10000,
|
| 19 |
"rotary_pct": 0.25,
|
| 20 |
"tie_word_embeddings": false,
|
| 21 |
-
"torch_dtype": "
|
| 22 |
-
"transformers_version": "4.
|
| 23 |
"use_cache": true,
|
| 24 |
-
"use_parallel_residual": true,
|
| 25 |
"vocab_size": 50304
|
| 26 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"GPTNeoXForCausalLM"
|
| 4 |
],
|
|
|
|
| 9 |
"initializer_range": 0.02,
|
| 10 |
"intermediate_size": 2048,
|
| 11 |
"layer_norm_eps": 1e-05,
|
|
|
|
| 12 |
"max_position_embeddings": 2048,
|
| 13 |
"model_type": "gpt_neox",
|
| 14 |
"num_attention_heads": 8,
|
|
|
|
| 16 |
"rotary_emb_base": 10000,
|
| 17 |
"rotary_pct": 0.25,
|
| 18 |
"tie_word_embeddings": false,
|
| 19 |
+
"torch_dtype": "float16",
|
| 20 |
+
"transformers_version": "4.22.2",
|
| 21 |
"use_cache": true,
|
|
|
|
| 22 |
"vocab_size": 50304
|
| 23 |
}
|
special_tokens_map.json
CHANGED
|
@@ -1,11 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
"<|endoftext|>",
|
| 4 |
-
"<|sep|>",
|
| 5 |
-
"<|acc|>",
|
| 6 |
-
"<|tel|>",
|
| 7 |
-
"<|rrn|>"
|
| 8 |
-
],
|
| 9 |
"eos_token": "<|endoftext|>",
|
| 10 |
-
"
|
| 11 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"bos_token": "<|endoftext|>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"eos_token": "<|endoftext|>",
|
| 4 |
+
"unk_token": "<|endoftext|>"
|
| 5 |
}
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
|
|
|
| 3 |
"eos_token": "<|endoftext|>",
|
| 4 |
-
"
|
| 5 |
-
"
|
|
|
|
|
|
|
| 6 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"bos_token": "<|endoftext|>",
|
| 4 |
"eos_token": "<|endoftext|>",
|
| 5 |
+
"name_or_path": "EleutherAI/gpt-neox-20b",
|
| 6 |
+
"special_tokens_map_file": "/fsx/home-hailey/.cache/huggingface/hub/models--EleutherAI--gpt-neox-20b/snapshots/3523781c8df75f7741687a4284f6f70e1afa12f4/special_tokens_map.json",
|
| 7 |
+
"tokenizer_class": "GPTNeoXTokenizer",
|
| 8 |
+
"unk_token": "<|endoftext|>"
|
| 9 |
}
|