Instructions to use EleutherAI/pythia-2.8b-squaring-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-2.8b-squaring-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-2.8b-squaring-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b-squaring-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-2.8b-squaring-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-2.8b-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-2.8b-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-2.8b-squaring-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-2.8b-squaring-first-ft
- SGLang
How to use EleutherAI/pythia-2.8b-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-2.8b-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-2.8b-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-2.8b-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-2.8b-squaring-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-2.8b-squaring-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-2.8b-squaring-first-ft
Commit History
-
Upload tokenizer
Verified signaturec40684a -
Upload GPTNeoXForCausalLM
Verified signature00371c9 -
Upload tokenizer
Verified signaturedf35412 -
Upload GPTNeoXForCausalLM
Verified signaturec91c6b4 -
Training in progress, step 32768
Verified signature5a6b6fc -
Training in progress, step 16384
Verified signaturecde3602 -
Training in progress, step 8192
Verified signature9f6818b -
Training in progress, step 4096
Verified signature14b9d3b -
Training in progress, step 2048
Verified signaturecd35701 -
Training in progress, step 1024
Verified signatureff0a4db -
Training in progress, step 512
Verified signature580c674 -
Training in progress, step 256
Verified signature564dda2 -
Training in progress, step 128
Verified signature6ea04a2 -
Training in progress, step 64
Verified signature07d203f -
Training in progress, step 32
Verified signature1d21ec9 -
Training in progress, step 16
Verified signature1633f81 -
Training in progress, step 8
Verified signature01e9b60 -
Training in progress, step 4
Verified signatureadb65d5 -
Training in progress, step 2
Verified signature7834554 -
Training in progress, step 1
Verified signatured5b3f89
-
Upload tokenizer
Verified signature2e73811 -
Upload GPTNeoXForCausalLM
Verified signaturefe26dfa -
Training in progress, step 32768
Verified signatured845524 -
Training in progress, step 16384
Verified signaturec6a817b -
Training in progress, step 8192
Verified signatureffba850 -
Training in progress, step 4096
Verified signaturec1cffc8 -
Training in progress, step 2048
Verified signatureb5666d7 -
Training in progress, step 1024
Verified signature1238f77 -
Training in progress, step 512
Verified signature1a20dc9 -
Training in progress, step 256
Verified signaturefd24a1c -
Training in progress, step 128
Verified signatureeb96ac0 -
Training in progress, step 64
Verified signaturebe60316 -
Training in progress, step 32
Verified signatureff81077 -
Training in progress, step 16
Verified signature84b8214 -
Training in progress, step 8
Verified signature09d2c46 -
Training in progress, step 4
Verified signaturec3ff1c9 -
Training in progress, step 2
Verified signaturee66bfcb -
Training in progress, step 1
Verified signature00c539f
-
initial commit
Verified signature100c7f9