Instructions to use huggingtweets/pj_bud with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/pj_bud with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/pj_bud")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/pj_bud") model = AutoModelForCausalLM.from_pretrained("huggingtweets/pj_bud", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/pj_bud with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/pj_bud" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/pj_bud", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/pj_bud
- SGLang
How to use huggingtweets/pj_bud 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 "huggingtweets/pj_bud" \ --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": "huggingtweets/pj_bud", "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 "huggingtweets/pj_bud" \ --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": "huggingtweets/pj_bud", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/pj_bud with Docker Model Runner:
docker model run hf.co/huggingtweets/pj_bud
Commit History
-
Update model preview
7113c31 -
Update model preview
996ae7f -
Update model preview
349d4bd -
Update model preview
0a9ddc4 -
Update model preview
2ae484f -
Update model preview
5242812 -
Update model preview
55a2cc2 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3is62ecc
1b875c8
-
Update model preview
1076197 -
Update model preview
799641f -
Update model preview
021a431 -
Update model preview
2cfbb9b -
Update model preview
15557c0 -
Update model preview
4f7e5cc -
Update model preview
92ef80d -
Update model preview
c8c5e85 -
Update model preview
a37d2bf -
Update model preview
e087f83 -
Update model preview
2b8b35a -
Update model preview
f3ba197 -
Update model preview
6a6c797 -
Update model preview
e666508 -
Update model preview
0fb20b2 -
Update model preview
01904fd -
Update model preview
af1deff -
Update model preview
ed49092 -
Update model preview
6f1f271 -
Update model preview
ca71494 -
Update model preview
8f35b82 -
Update model preview
c5e1fee -
New model from https://wandb.ai/wandb/huggingtweets/runs/2ge1zlgj
21e7e15 -
Update model preview
6e1068b -
New model from https://wandb.ai/wandb/huggingtweets/runs/2y8hj8bc
e8cf42a -
initial commit
0065f45