Instructions to use EleutherAI/pythia-410m-sciq-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-410m-sciq-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-410m-sciq-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-410m-sciq-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-410m-sciq-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-410m-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-410m-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-410m-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-410m-sciq-first-ft
- SGLang
How to use EleutherAI/pythia-410m-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-410m-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-410m-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-410m-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-410m-sciq-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-410m-sciq-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-410m-sciq-first-ft
Commit History
-
Upload tokenizer
Verified signature906b106 -
Upload GPTNeoXForCausalLM
Verified signaturef102785 -
Upload tokenizer
Verified signature418f4dc -
Upload GPTNeoXForCausalLM
Verified signature53c9787
-
Training in progress, step 8192
Verified signaturee609489 -
Training in progress, step 4096
Verified signature0dd81c8 -
Training in progress, step 2048
Verified signatureab42a97 -
Training in progress, step 1024
Verified signature0f524cc -
Training in progress, step 512
Verified signature3c0106a -
Training in progress, step 256
Verified signaturea90d8d0 -
Training in progress, step 128
Verified signatureb8e6ccc -
Training in progress, step 64
Verified signature6f8f31d -
Training in progress, step 32
Verified signatureaa452f5 -
Training in progress, step 16
Verified signaturedf52b1b -
Training in progress, step 8
Verified signature9ddcd40 -
Training in progress, step 4
Verified signaturef8cb4a0 -
Training in progress, step 2
Verified signature1ba7273 -
Training in progress, step 1
Verified signaturee29ffe5 -
Training in progress, step 32
Verified signature165b30f -
Training in progress, step 16
Verified signature4b189d8 -
Training in progress, step 8
Verified signaturece0c9df -
Training in progress, step 4
Verified signature920f52c -
Training in progress, step 2
Verified signature46cb081 -
Training in progress, step 1
Verified signaturec2867ba -
Training in progress, step 4096
Verified signature3494999 -
Training in progress, step 2048
Verified signaturedcf1f89 -
Training in progress, step 1024
Verified signaturefafcc06 -
Training in progress, step 512
Verified signature5ff7e64 -
Training in progress, step 256
Verified signatureabeb223 -
Training in progress, step 128
Verified signature996a0a0 -
Training in progress, step 64
Verified signature7f8752e -
Training in progress, step 32
Verified signature01ada3e -
Training in progress, step 16
Verified signaturefca572c -
Training in progress, step 8
Verified signature71739e6 -
Training in progress, step 4
Verified signatured1c40a2 -
Training in progress, step 2
Verified signature3b0c445 -
Training in progress, step 1
Verified signature43959a5 -
initial commit
Verified signaturee3b918d