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