Instructions to use EleutherAI/pythia-1b-sciq-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-1b-sciq-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-1b-sciq-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-1b-sciq-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-1b-sciq-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-1b-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-1b-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-1b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-1b-sciq-first-ft
- SGLang
How to use EleutherAI/pythia-1b-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-1b-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-1b-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-1b-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-1b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-1b-sciq-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-1b-sciq-first-ft
Commit History
-
Update to best checkpoint (2048)
Verified signature1ca72ec
-
Upload tokenizer
Verified signature0b85549 -
Upload GPTNeoXForCausalLM
Verified signature5a2e2a1 -
Training in progress, step 16384
Verified signatureac4f235 -
Training in progress, step 8192
Verified signature128864d -
Training in progress, step 4096
Verified signatured943532 -
Training in progress, step 2048
Verified signature7ce5e07 -
Training in progress, step 1024
Verified signaturedd1ef40 -
Training in progress, step 512
Verified signature62ebffa -
Training in progress, step 256
Verified signature1c01a2f -
Training in progress, step 128
Verified signatureb8cd98a -
Training in progress, step 64
Verified signaturea933420 -
Training in progress, step 32
Verified signature9cd159b -
Training in progress, step 16
Verified signatureba97891 -
Training in progress, step 8
Verified signature196a86b -
Training in progress, step 4
Verified signature4392b9e -
Training in progress, step 2
Verified signaturee200eae -
Training in progress, step 1
Verified signature1be102a -
Training in progress, step 16384
Verified signaturea2389f0
-
Training in progress, step 512
Verified signature81ddbb4 -
Training in progress, step 256
Verified signature5b8507a -
Training in progress, step 128
Verified signature946ef71 -
Training in progress, step 64
Verified signature14b4e2b -
Training in progress, step 16
Verified signatureeb7bf90 -
Training in progress, step 4
Verified signaturea7fa660 -
Training in progress, step 2
Verified signaturee79f9a1 -
Training in progress, step 1
Verified signature9f6369d -
Training in progress, step 8192
Verified signature2863717 -
Training in progress, step 4096
Verified signatureba82e3b -
Training in progress, step 2048
Verified signature9b80577 -
Training in progress, step 1024
Verified signature8721ff4 -
Training in progress, step 512
Verified signature1841c4a -
Training in progress, step 256
Verified signature97a1e35 -
Training in progress, step 128
Verified signature8a0af77 -
Training in progress, step 64
Verified signature95a8896 -
Training in progress, step 32
Verified signatureba10f9d -
Training in progress, step 8
Verified signature56fb745 -
Training in progress, step 2
Verified signature1791d4d -
Training in progress, step 1
Verified signature9c56906 -
Training in progress, step 1
Verified signature8fecd3a -
initial commit
Verified signature97ad727