Text Generation
Transformers
PyTorch
Safetensors
English
gpt_neox
causal-lm
pythia
pythia_v0
text-generation-inference
Instructions to use EleutherAI/pythia-70m-deduped-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-70m-deduped-v0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-70m-deduped-v0")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-70m-deduped-v0") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-70m-deduped-v0") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-70m-deduped-v0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EleutherAI/pythia-70m-deduped-v0" # 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-70m-deduped-v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-70m-deduped-v0
- SGLang
How to use EleutherAI/pythia-70m-deduped-v0 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-70m-deduped-v0" \ --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-70m-deduped-v0", "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-70m-deduped-v0" \ --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-70m-deduped-v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-70m-deduped-v0 with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-70m-deduped-v0
fixed dataset tag
#3
by avi-skowron - opened
README.md
CHANGED
|
@@ -7,7 +7,7 @@ tags:
|
|
| 7 |
- pythia
|
| 8 |
license: apache-2.0
|
| 9 |
datasets:
|
| 10 |
-
- EleutherAI/
|
| 11 |
---
|
| 12 |
|
| 13 |
The *Pythia Scaling Suite* is a collection of models developed to facilitate
|
|
@@ -16,7 +16,7 @@ interpretability research. It contains two sets of eight models of sizes
|
|
| 16 |
models: one trained on the Pile, and one trained on the Pile after the dataset
|
| 17 |
has been globally deduplicated. All 8 model sizes are trained on the exact
|
| 18 |
same data, in the exact same order. All Pythia models are available
|
| 19 |
-
[on Hugging Face](https://huggingface.co/
|
| 20 |
|
| 21 |
The Pythia model suite was deliberately designed to promote scientific
|
| 22 |
research on large language models, especially interpretability research.
|
|
|
|
| 7 |
- pythia
|
| 8 |
license: apache-2.0
|
| 9 |
datasets:
|
| 10 |
+
- EleutherAI/the_pile_deduplicated
|
| 11 |
---
|
| 12 |
|
| 13 |
The *Pythia Scaling Suite* is a collection of models developed to facilitate
|
|
|
|
| 16 |
models: one trained on the Pile, and one trained on the Pile after the dataset
|
| 17 |
has been globally deduplicated. All 8 model sizes are trained on the exact
|
| 18 |
same data, in the exact same order. All Pythia models are available
|
| 19 |
+
[on Hugging Face](https://huggingface.co/models?other=pythia).
|
| 20 |
|
| 21 |
The Pythia model suite was deliberately designed to promote scientific
|
| 22 |
research on large language models, especially interpretability research.
|