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