Instructions to use EleutherAI/pythia-2.8b-modularaddition-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-modularaddition-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-modularaddition-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-2.8b-modularaddition-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-2.8b-modularaddition-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-2.8b-modularaddition-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-modularaddition-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-modularaddition-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-2.8b-modularaddition-first-ft
- SGLang
How to use EleutherAI/pythia-2.8b-modularaddition-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-modularaddition-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-modularaddition-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-modularaddition-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-modularaddition-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-2.8b-modularaddition-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-2.8b-modularaddition-first-ft
Commit History
-
Upload tokenizer
Verified signature20f4089 -
Upload GPTNeoXForCausalLM
Verified signature63730f9 -
Training in progress, step 131072
Verified signatureecb9096 -
Training in progress, step 65536
Verified signature59b10ae -
Training in progress, step 32768
Verified signature009a674 -
Training in progress, step 16384
Verified signature2ce10aa -
Training in progress, step 8192
Verified signature9a312a2 -
Training in progress, step 4096
Verified signature3f3e840 -
Training in progress, step 2048
Verified signature38c5650 -
Training in progress, step 1024
Verified signatureec350ae -
Training in progress, step 512
Verified signatureb22f016 -
Training in progress, step 256
Verified signaturefaba94a -
Training in progress, step 128
Verified signaturea7930ba -
Training in progress, step 64
Verified signatureb74eacb -
Training in progress, step 32
Verified signature64674d8 -
Training in progress, step 16
Verified signature9cb4a6f -
Training in progress, step 8
Verified signature0736e57 -
Training in progress, step 4
Verified signature7f6308d -
Training in progress, step 2
Verified signature31a9837 -
Training in progress, step 1
Verified signature06caae1
-
Upload tokenizer
Verified signaturede4dd30 -
Upload GPTNeoXForCausalLM
Verified signature047a802 -
Training in progress, step 131072
Verified signature64f0bd1 -
Training in progress, step 32768
Verified signatured638487 -
Training in progress, step 16384
Verified signature24bd11e -
Training in progress, step 8192
Verified signaturee2c6447 -
Training in progress, step 4096
Verified signature15414b0 -
Training in progress, step 2048
Verified signature6e94952 -
Training in progress, step 1024
Verified signature0ae3be8 -
Training in progress, step 512
Verified signaturea829a5f -
Training in progress, step 256
Verified signatureb4d910a -
Training in progress, step 128
Verified signature762751f -
Training in progress, step 64
Verified signature9a4a700 -
Training in progress, step 32
Verified signaturebc81957 -
Training in progress, step 16
Verified signature3f87696 -
Training in progress, step 8
Verified signatured929c33 -
Training in progress, step 4
Verified signaturef5c598e -
Training in progress, step 2
Verified signature9e12e78 -
Training in progress, step 1
Verified signaturebcdb351
-
initial commit
Verified signature6646857