Instructions to use Katpeeler/midi_model_3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Katpeeler/midi_model_3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Katpeeler/midi_model_3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Katpeeler/midi_model_3") model = AutoModelForCausalLM.from_pretrained("Katpeeler/midi_model_3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Katpeeler/midi_model_3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Katpeeler/midi_model_3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Katpeeler/midi_model_3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Katpeeler/midi_model_3
- SGLang
How to use Katpeeler/midi_model_3 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 "Katpeeler/midi_model_3" \ --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": "Katpeeler/midi_model_3", "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 "Katpeeler/midi_model_3" \ --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": "Katpeeler/midi_model_3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Katpeeler/midi_model_3 with Docker Model Runner:
docker model run hf.co/Katpeeler/midi_model_3
Commit History
-
Update README.md
5693f69 -
Update README.md
49634f3 -
Update README.md
bc30b56 -
Update README.md
9810feb -
Update README.md
29b3d14 -
Update README.md
925fac7 -
Update README.md
06fbee0 -
Update README.md
a9ade2d -
Update README.md
36dbc44 -
End of training
ee86502 -
Training in progress, step 9000
7bb8c96 -
Training in progress, step 8700
026adf9 -
Training in progress, step 8400
0e1a646 -
Training in progress, step 8100
01896ba -
Training in progress, step 7800
343e159 -
Training in progress, step 7500
a5f6385 -
Training in progress, step 7200
d271e0e -
Training in progress, step 6900
34d1e08 -
Training in progress, step 6600
04821c4 -
Training in progress, step 6300
e02a8df -
Training in progress, step 6000
ec0f265 -
Training in progress, step 5700
8fa229d -
Training in progress, step 5400
1a3eb72 -
Training in progress, step 5100
4417620 -
Training in progress, step 4800
1827618 -
Training in progress, step 4500
e6a9669 -
Training in progress, step 4200
21ec455 -
Training in progress, step 3900
c568516 -
Training in progress, step 3600
daf00f4 -
Training in progress, step 3300
3f2726d -
Training in progress, step 3000
d26def2 -
Training in progress, step 2700
66bbe6d -
Training in progress, step 2400
c3472cf -
Training in progress, step 2100
ff24e97 -
Training in progress, step 1800
b1c898e -
Training in progress, step 1500
f01a774 -
Training in progress, step 1200
b95b6fa -
Training in progress, step 900
f9a394c -
Training in progress, step 600
b49092d -
Training in progress, step 300
2c11080 -
initial commit
60d9356