Instructions to use EleutherAI/pythia-1.4b-sciq-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-1.4b-sciq-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-1.4b-sciq-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-1.4b-sciq-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-1.4b-sciq-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-1.4b-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-1.4b-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-1.4b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-1.4b-sciq-first-ft
- SGLang
How to use EleutherAI/pythia-1.4b-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-1.4b-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-1.4b-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-1.4b-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-1.4b-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-1.4b-sciq-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-1.4b-sciq-first-ft
Commit History
-
Update to best checkpoint (1024)
Verified signature503502c
-
Upload tokenizer
Verified signaturea19750f -
Upload GPTNeoXForCausalLM
Verified signatureb206579 -
Training in progress, step 16384
Verified signature8309e27 -
Training in progress, step 4096
Verified signaturef7e0092 -
Training in progress, step 2048
Verified signaturee0bc5dd -
Training in progress, step 1024
Verified signature81e080d -
Training in progress, step 512
Verified signature51a296a -
Training in progress, step 256
Verified signaturefa892cf -
Training in progress, step 128
Verified signature82571eb -
Training in progress, step 64
Verified signaturead2ab56 -
Training in progress, step 16
Verified signature4eac895 -
Training in progress, step 4
Verified signature8ba6694 -
Training in progress, step 1
Verified signature5630428
-
initial commit
Verified signature63dc770