Text Generation
Transformers
PyTorch
TensorBoard
gpt2
Generated from Trainer
text-generation-inference
Instructions to use DancingIguana/music-generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DancingIguana/music-generation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DancingIguana/music-generation")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DancingIguana/music-generation") model = AutoModelForCausalLM.from_pretrained("DancingIguana/music-generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DancingIguana/music-generation with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DancingIguana/music-generation" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DancingIguana/music-generation", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DancingIguana/music-generation
- SGLang
How to use DancingIguana/music-generation 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 "DancingIguana/music-generation" \ --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": "DancingIguana/music-generation", "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 "DancingIguana/music-generation" \ --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": "DancingIguana/music-generation", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DancingIguana/music-generation with Docker Model Runner:
docker model run hf.co/DancingIguana/music-generation
Commit ·
caa8033
1
Parent(s): 12c8c20
End of training
Browse files- config.json +1 -1
- merges.txt +0 -0
- pytorch_model.bin +2 -2
- runs/Jun11_22-06-57_d017b90c914f/1654985222.484181/events.out.tfevents.1654985222.d017b90c914f.73.3 +3 -0
- runs/Jun11_22-06-57_d017b90c914f/events.out.tfevents.1654985222.d017b90c914f.73.2 +3 -0
- runs/Jun11_22-08-18_d017b90c914f/1654985304.146285/events.out.tfevents.1654985304.d017b90c914f.73.5 +3 -0
- runs/Jun11_22-08-18_d017b90c914f/events.out.tfevents.1654985304.d017b90c914f.73.4 +3 -0
- tokenizer.json +0 -0
- training_args.bin +1 -1
- vocab.json +0 -0
config.json
CHANGED
|
@@ -42,5 +42,5 @@
|
|
| 42 |
"torch_dtype": "float32",
|
| 43 |
"transformers_version": "4.19.4",
|
| 44 |
"use_cache": true,
|
| 45 |
-
"vocab_size":
|
| 46 |
}
|
|
|
|
| 42 |
"torch_dtype": "float32",
|
| 43 |
"transformers_version": "4.19.4",
|
| 44 |
"use_cache": true,
|
| 45 |
+
"vocab_size": 25000
|
| 46 |
}
|
merges.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99f27a5a364382d51c51c5b7931a326b67a3e16b8ea3d6e3039050478f2ba764
|
| 3 |
+
size 256379613
|
runs/Jun11_22-06-57_d017b90c914f/1654985222.484181/events.out.tfevents.1654985222.d017b90c914f.73.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fe176bd2644823a765763c5c473445a0dec05263afbda8cddd1c29456ff7016
|
| 3 |
+
size 5159
|
runs/Jun11_22-06-57_d017b90c914f/events.out.tfevents.1654985222.d017b90c914f.73.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b0aff68a29178539b87713666fcea19f2257934f3707b0694e02bd4d693328bb
|
| 3 |
+
size 3845
|
runs/Jun11_22-08-18_d017b90c914f/1654985304.146285/events.out.tfevents.1654985304.d017b90c914f.73.5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14dbe951958823f9300eddc61b401dca4c49b655066e9964a703550712508c5c
|
| 3 |
+
size 5159
|
runs/Jun11_22-08-18_d017b90c914f/events.out.tfevents.1654985304.d017b90c914f.73.4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5625eed6297396566abf334139e2a88a8fd8cf5a50a88e78dd5bc2b5f96306fb
|
| 3 |
+
size 4199
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3183
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe066a0cf50d5a7010c588f91b4e8f3129cf0b6aa833bc5de7ea5e6d3e8d58e9
|
| 3 |
size 3183
|
vocab.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|