Instructions to use EleutherAI/pythia-1b-squaring-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-1b-squaring-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-1b-squaring-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-1b-squaring-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-1b-squaring-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-1b-squaring-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-squaring-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-squaring-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-1b-squaring-first-ft
- SGLang
How to use EleutherAI/pythia-1b-squaring-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-squaring-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-squaring-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-squaring-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-squaring-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-1b-squaring-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-1b-squaring-first-ft
Commit History
-
Update to best checkpoint (16384)
Verified signaturec873bc3
-
Upload tokenizer
Verified signature2158cb5 -
Upload GPTNeoXForCausalLM
Verified signaturedc93811 -
Training in progress, step 65536
Verified signature874293d -
Training in progress, step 32768
Verified signaturee529bb5 -
Training in progress, step 16384
Verified signaturea92fba3 -
Training in progress, step 8192
Verified signature9147630 -
Training in progress, step 4096
Verified signature3f0516f -
Training in progress, step 2048
Verified signature2b46cbc -
Training in progress, step 1024
Verified signature92cf1c1 -
Training in progress, step 512
Verified signature154696b -
Training in progress, step 128
Verified signature54b221e -
Training in progress, step 4
Verified signatureedfcf07 -
Training in progress, step 2
Verified signaturee089f0e -
Training in progress, step 1
Verified signaturefa79755 -
Training in progress, step 1
Verified signatureb546c56
-
Training in progress, step 1
Verified signatureffd4a26 -
Training in progress, step 1
Verified signaturea773347 -
initial commit
Verified signature8350000