Instructions to use EleutherAI/pythia-2.8b-sciq-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-2.8b-sciq-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-2.8b-sciq-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b-sciq-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-2.8b-sciq-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-2.8b-sciq-first-ft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EleutherAI/pythia-2.8b-sciq-first-ft" # 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-2.8b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-2.8b-sciq-first-ft
- SGLang
How to use EleutherAI/pythia-2.8b-sciq-first-ft 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-2.8b-sciq-first-ft" \ --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-2.8b-sciq-first-ft", "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-2.8b-sciq-first-ft" \ --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-2.8b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-2.8b-sciq-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-2.8b-sciq-first-ft
Commit History
-
Upload tokenizer
Verified signaturef3f6096 -
Upload GPTNeoXForCausalLM
Verified signature378edb4 -
Training in progress, step 2048
Verified signature60ff140 -
Training in progress, step 1024
Verified signature638f56c -
Training in progress, step 512
Verified signaturea992eb3 -
Training in progress, step 256
Verified signature544b482 -
Training in progress, step 128
Verified signature5c72bcd -
Training in progress, step 64
Verified signature3f8aaa4 -
Training in progress, step 32
Verified signatured1717c2 -
Training in progress, step 16
Verified signature88efbe6 -
Training in progress, step 8
Verified signatureac63149 -
Training in progress, step 4
Verified signaturef81a094 -
Training in progress, step 2
Verified signaturebb49278 -
Training in progress, step 1
Verified signaturefb4996c
-
Upload tokenizer
Verified signature5a1cb31 -
Upload GPTNeoXForCausalLM
Verified signature09b95b8
-
Training in progress, step 8192
Verified signature91be55c -
Training in progress, step 4096
Verified signature254f948 -
Training in progress, step 2048
Verified signaturec2efca1 -
Training in progress, step 1024
Verified signaturecf396f7 -
Training in progress, step 512
Verified signature0ee0e45 -
Training in progress, step 256
Verified signature034e61e -
Training in progress, step 128
Verified signature5319414 -
Training in progress, step 64
Verified signature58bafc3 -
Training in progress, step 32
Verified signature3e777bf -
Training in progress, step 16
Verified signature306c846 -
Training in progress, step 8
Verified signature956e147 -
Training in progress, step 4
Verified signaturecb14e51 -
Training in progress, step 2
Verified signature7f81243 -
Training in progress, step 1
Verified signature14c791c
-
initial commit
Verified signature100c7f9