Instructions to use MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26") model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26" # 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_NeuralExperiment26", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26
- SGLang
How to use MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26 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_NeuralExperiment26" \ --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_NeuralExperiment26", "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_NeuralExperiment26" \ --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_NeuralExperiment26", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26 with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/NeuralsirkrishnaShadow_NeuralExperiment26
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- 125767c630249330fe4e2005346523af82575c83f810211b6cff59967b1fa2d8 (67f86c22ebe37e3b1c9153540d772a7c4169bf2b) - e5f13fec7960ca4bd3898b0bb776f55477cc84969f8e63271f3e1340cb267fbc (4a43acefe434937eb44b960f1993f5f37b28b13a) - 6469631fdd234d43bb87c5440ad37e9fe0afb0a8a54b9a38b248f75799e13325 (41e0457cf7d5ab7cf0ff66a68d7f218e7e86bd68)ecebf6e