Instructions to use EleutherAI/pythia-1b-modularaddition-first-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EleutherAI/pythia-1b-modularaddition-first-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EleutherAI/pythia-1b-modularaddition-first-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EleutherAI/pythia-1b-modularaddition-first-ft") model = AutoModelForCausalLM.from_pretrained("EleutherAI/pythia-1b-modularaddition-first-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EleutherAI/pythia-1b-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-1b-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-1b-modularaddition-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EleutherAI/pythia-1b-modularaddition-first-ft
- SGLang
How to use EleutherAI/pythia-1b-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-1b-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-1b-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-1b-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-1b-modularaddition-first-ft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EleutherAI/pythia-1b-modularaddition-first-ft with Docker Model Runner:
docker model run hf.co/EleutherAI/pythia-1b-modularaddition-first-ft
Commit History
-
Update to best checkpoint (65536)
Verified signature0e326e1
-
Upload tokenizer
Verified signatureb24e537 -
Upload GPTNeoXForCausalLM
Verified signature715abb0 -
Training in progress, step 262144
Verified signature8e40b4e -
Training in progress, step 131072
Verified signatureac56172 -
Training in progress, step 65536
Verified signaturee89075d -
Training in progress, step 32768
Verified signature3031ece -
Training in progress, step 16384
Verified signatureec5d220 -
Training in progress, step 8192
Verified signature3f5ae23 -
Training in progress, step 4096
Verified signature03105f2 -
Training in progress, step 2048
Verified signature5bcecb7 -
Training in progress, step 1024
Verified signaturebac70e3 -
Training in progress, step 512
Verified signaturea15bdc1 -
Training in progress, step 128
Verified signature4cb9812 -
Training in progress, step 4
Verified signatured7a9c49 -
Training in progress, step 2
Verified signature4bbf111 -
Training in progress, step 1
Verified signature73caab8 -
Training in progress, step 1
Verified signatured19b8a0
-
Training in progress, step 1
Verified signature68a1b1b -
initial commit
Verified signature63dc770