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