Instructions to use usvsnsp/pythia-2.8b-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usvsnsp/pythia-2.8b-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="usvsnsp/pythia-2.8b-sft")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("usvsnsp/pythia-2.8b-sft") model = AutoModelForCausalLM.from_pretrained("usvsnsp/pythia-2.8b-sft") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use usvsnsp/pythia-2.8b-sft 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-sft" # 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-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/usvsnsp/pythia-2.8b-sft
- SGLang
How to use usvsnsp/pythia-2.8b-sft 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-sft" \ --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-sft", "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-sft" \ --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-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use usvsnsp/pythia-2.8b-sft with Docker Model Runner:
docker model run hf.co/usvsnsp/pythia-2.8b-sft
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/0c0pmvz8
| Task | Version | Filter | Metric | Value | Stderr | |
|---|---|---|---|---|---|---|
| arc_challenge | Yaml | none | acc | 0.2961 | ± | 0.0133 |
| none | acc_norm | 0.3285 | ± | 0.0137 | ||
| arc_easy | Yaml | none | acc | 0.6452 | ± | 0.0098 |
| none | acc_norm | 0.5678 | ± | 0.0102 | ||
| logiqa | Yaml | none | acc | 0.2151 | ± | 0.0161 |
| none | acc_norm | 0.2857 | ± | 0.0177 | ||
| piqa | Yaml | none | acc | 0.7508 | ± | 0.0101 |
| none | acc_norm | 0.7503 | ± | 0.0101 | ||
| sciq | Yaml | none | acc | 0.8820 | ± | 0.0102 |
| none | acc_norm | 0.8140 | ± | 0.0123 | ||
| winogrande | Yaml | none | acc | 0.6038 | ± | 0.0137 |
- Downloads last month
- 5