Instructions to use kavinilavan/pythia-2.8-array-100 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kavinilavan/pythia-2.8-array-100 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kavinilavan/pythia-2.8-array-100")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kavinilavan/pythia-2.8-array-100") model = AutoModelForCausalLM.from_pretrained("kavinilavan/pythia-2.8-array-100", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kavinilavan/pythia-2.8-array-100 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kavinilavan/pythia-2.8-array-100" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kavinilavan/pythia-2.8-array-100", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kavinilavan/pythia-2.8-array-100
- SGLang
How to use kavinilavan/pythia-2.8-array-100 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 "kavinilavan/pythia-2.8-array-100" \ --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": "kavinilavan/pythia-2.8-array-100", "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 "kavinilavan/pythia-2.8-array-100" \ --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": "kavinilavan/pythia-2.8-array-100", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kavinilavan/pythia-2.8-array-100 with Docker Model Runner:
docker model run hf.co/kavinilavan/pythia-2.8-array-100
- Xet hash:
- 0345f4043b2a67a8ffdfb666a4e9f3faddf4365ead2dc47523ad1a56242ba2c4
- Size of remote file:
- 5.55 GB
- SHA256:
- 630037d752e5e6a9e39915ebe5d0548450ca7bbdc70b15b0cf798c1488e3dcd0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.