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