Instructions to use EleutherAI/pythia-6.9b-sciq-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-6.9b-sciq-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-6.9b-sciq-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-6.9b-sciq-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-6.9b-sciq-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-6.9b-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-6.9b-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-6.9b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-6.9b-sciq-first-ft
- SGLang
How to use EleutherAI/pythia-6.9b-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-6.9b-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-6.9b-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-6.9b-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-6.9b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-6.9b-sciq-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-6.9b-sciq-first-ft
Commit History
-
Upload tokenizer
Verified signaturecd7089a -
Upload GPTNeoXForCausalLM
Verified signature5ecb5d2 -
Upload tokenizer
Verified signaturef5b9e1d -
Upload GPTNeoXForCausalLM
Verified signature591bc9f -
Training in progress, step 8192
Verified signaturec2c4407 -
Training in progress, step 4096
Verified signature3759474
-
Training in progress, step 2048
Verified signaturebd2f6dd -
Training in progress, step 1024
Verified signatureb81b45b -
Training in progress, step 512
Verified signatureddfc7b8 -
Training in progress, step 256
Verified signature54f6f19 -
Training in progress, step 128
Verified signature93336a5 -
Training in progress, step 64
Verified signature6c78d61 -
Training in progress, step 32
Verified signature9525cee -
Training in progress, step 16
Verified signature70bc0a7 -
Training in progress, step 8
Verified signature6960044 -
Training in progress, step 4
Verified signaturedcd92c7 -
Training in progress, step 2
Verified signaturecda6c31 -
Training in progress, step 1
Verified signature5039f36 -
initial commit
Verified signatureb0e0bf1