Instructions to use usvsnsp/pythia-2.8b-ppo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usvsnsp/pythia-2.8b-ppo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="usvsnsp/pythia-2.8b-ppo")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("usvsnsp/pythia-2.8b-ppo") model = AutoModelForCausalLM.from_pretrained("usvsnsp/pythia-2.8b-ppo") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use usvsnsp/pythia-2.8b-ppo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "usvsnsp/pythia-2.8b-ppo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "usvsnsp/pythia-2.8b-ppo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/usvsnsp/pythia-2.8b-ppo
- SGLang
How to use usvsnsp/pythia-2.8b-ppo 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 "usvsnsp/pythia-2.8b-ppo" \ --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": "usvsnsp/pythia-2.8b-ppo", "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 "usvsnsp/pythia-2.8b-ppo" \ --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": "usvsnsp/pythia-2.8b-ppo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use usvsnsp/pythia-2.8b-ppo with Docker Model Runner:
docker model run hf.co/usvsnsp/pythia-2.8b-ppo
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Wandb run: https://wandb.ai/eleutherai/pythia-rlhf/runs/rh4mnzmr
Eval Results:
| Tasks | Version | Filter | Metric | Value | Stderr | |
|---|---|---|---|---|---|---|
| arc_challenge | Yaml | none | acc | 0.2884 | ± | 0.0132 |
| none | acc_norm | 0.3183 | ± | 0.0136 | ||
| arc_easy | Yaml | none | acc | 0.6124 | ± | 0.0100 |
| none | acc_norm | 0.5328 | ± | 0.0102 | ||
| lambada_openai | Yaml | none | perplexity | 8.7783 | ± | 0.2341 |
| none | acc | 0.5783 | ± | 0.0069 | ||
| logiqa | Yaml | none | acc | 0.2151 | ± | 0.0161 |
| none | acc_norm | 0.2826 | ± | 0.0177 | ||
| piqa | Yaml | none | acc | 0.7176 | ± | 0.0105 |
| none | acc_norm | 0.7176 | ± | 0.0105 | ||
| sciq | Yaml | none | acc | 0.8590 | ± | 0.0110 |
| none | acc_norm | 0.7790 | ± | 0.0131 | ||
| winogrande | Yaml | none | acc | 0.5959 | ± | 0.0138 |
| wsc | Yaml | none | acc | 0.3654 | ± | 0.0474 |
- Downloads last month
- 10