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