Instructions to use cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr") model = AutoModelForCausalLM.from_pretrained("cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr
- SGLang
How to use cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr 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 "cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr" \ --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": "cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr", "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 "cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr" \ --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": "cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr with Docker Model Runner:
docker model run hf.co/cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr
Download pytorch_model.bin from cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr: direct link, hf CLI and curl.
- Browser
- Download file 3.84 GB
-
https://huggingface.co/cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr/resolve/main/pytorch_model.bin
- Command line
-
hf download hf://cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/cleanrl/EleutherAI_pythia-1b-deduped__ppo__tldr/resolve/main/pytorch_model.bin
3.84 GB
- Xet hash:
- 7a41849d1e0f68a077d52b3a757da68db7d33a2b2cb2506abce1a1a7fb78f2e7
- Size of remote file:
- 3.84 GB
- SHA256:
- f80808b2c3416626b4d721c215cc52abb9e0658fc4b5d9bc64a3c62f6dd0ecb3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.