Instructions to use huggingtweets/vanpelt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/vanpelt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/vanpelt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/vanpelt") model = AutoModelForCausalLM.from_pretrained("huggingtweets/vanpelt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/vanpelt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/vanpelt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/vanpelt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/vanpelt
- SGLang
How to use huggingtweets/vanpelt 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/vanpelt" \ --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/vanpelt", "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/vanpelt" \ --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/vanpelt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/vanpelt with Docker Model Runner:
docker model run hf.co/huggingtweets/vanpelt
Commit History
-
upload flax model
cb88bde -
allow flax
f7a799f
-
Update model preview
1aeeed7 -
Update model preview
926e139 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2bfgtsxu
a432dd6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/286s6ya7
71d0378 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2bbb0r1k
addf99f
-
Update config.json
58474a0 -
Update pytorch_model.bin
790cb04 -
Update README.md
a171bf0 -
Update special_tokens_map.json
81c499a -
Update merges.txt
1ee8802 -
Update tokenizer_config.json
4758128 -
Update vocab.json
2b8f66c
-
Update special_tokens_map.json
cb459f9 -
Update README.md
724a9b1 -
Update vocab.json
7b2740b -
Update tokenizer_config.json
db2513a -
Update config.json
f9bd442 -
Update merges.txt
d1191f7
-
Update special_tokens_map.json
99ff128 -
Update README.md
c14a38d -
Update vocab.json
d509abb -
Update tokenizer_config.json
aaee064 -
Update config.json
4789bc4 -
Update merges.txt
a83ac67 -
initial commit
6d7c6a3