Instructions to use EleutherAI/pythia-12b-deduped with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-12b-deduped with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-12b-deduped")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-12b-deduped") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-12b-deduped") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use EleutherAI/pythia-12b-deduped with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EleutherAI/pythia-12b-deduped" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EleutherAI/pythia-12b-deduped", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-12b-deduped
- SGLang
How to use EleutherAI/pythia-12b-deduped 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 "EleutherAI/pythia-12b-deduped" \ --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": "EleutherAI/pythia-12b-deduped", "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 "EleutherAI/pythia-12b-deduped" \ --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": "EleutherAI/pythia-12b-deduped", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-12b-deduped with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-12b-deduped
Commit History
create updated readme 09d4eb7
Upload tokenizer.json 50e4193
Upload pytorch_model.bin.index.json d0b6bb6
Upload config.json 198a693
Upload pytorch_model-00002-of-00003.bin 2ffda2d
Upload pytorch_model-00003-of-00003.bin 6242543
Upload pytorch_model-00001-of-00003.bin 273042a
Upload tokenizer_config.json fb4b563
Upload special_tokens_map.json 6d3618a
Upload config.json 4b06cd9
Upload tokenizer_config.json 221fba5
Upload tokenizer.json cefd829
Upload pytorch_model-00001-of-00003.bin 390f168
Upload pytorch_model-00003-of-00003.bin d847f02
Upload pytorch_model-00002-of-00003.bin 418a938
Upload special_tokens_map.json c0a54ed
Upload pytorch_model.bin.index.json 2be9196
Upload config.json 324869a
Upload tokenizer_config.json 7ee811a
Upload tokenizer.json 336c86d
Upload special_tokens_map.json 748010b
Upload pytorch_model.bin.index.json 75e4156
Upload pytorch_model-00001-of-00003.bin 8b163cb
Upload pytorch_model-00003-of-00003.bin 37a7fdc
Upload pytorch_model-00002-of-00003.bin 763e6d0
Upload pytorch_model.bin.index.json 25ea5dd
Upload config.json f405852
Upload tokenizer_config.json 6ed4f4b
Upload pytorch_model-00001-of-00003.bin 0ed9204
Upload pytorch_model-00002-of-00003.bin aa19a4e
Upload special_tokens_map.json b1d627b
Upload pytorch_model-00003-of-00003.bin 47e3f25
Upload tokenizer.json 9fb079a
initial commit 64dcead
Hailey Schoelkopf commited on