Instructions to use MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7") model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7
- SGLang
How to use MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7 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 "MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7" \ --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": "MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7", "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 "MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7" \ --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": "MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7 with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/MeliodasPercival_01_Multi_verse_modelM7
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- 927379ce5cda6904bfd474bf90c22860e08d88e59d42b97810a8a5bb5b98aa4a (be11e112aa0c50b2508191ce898ca7743f90418a) - af2cad98ff7642913361c6eca8b9c94277564f2bd405a5d483e8d64c64c25a08 (876cf5310d8654af62ce79ee76f1bb44ef5a1c08) - d075137df7854bdcdf08ce3b7422b259206007cf3f6cf442ec1121a149c3b04a (aa56a4553bea05efa13135752af6b7d59479b547)dc8605d
-
initial commit
Verified signaturec833b9d